-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Tidy up unnecessary all-to-all tests #14484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
One or more of the following people are relevant to this code:
|
`GenericBackendV2` defaults to explicit all-to-all connectivity. Many old test cases were somewhat mechanically changed to use `GenericBackendV2` without fixing the coupling map, resulting in many tests using large-scale all-to-all connectivity with an inefficient representation, for tests that do not require it. This commit changes all test-suite uses of `GenericBackendV2` with more than 10 qubits and all-to-all connectivity to restrict the connectivity. There is one exception - a VF2Layout scaling test with 27q all-to-all, where the large number of possibilities is a deliberate part of the test. Several tests that previously had `BackendV1` and `BackendV2` versions have one of the pair deleted, since `BackendV1` no longer exists, and all those tests had already been changed to use `BackendV2`. A further regression test that was dependent on the particulars of various randomisation seeds that are _long_ since out-of-date is also deleted, rather than blindly fixing its connectivity.
fb65ebc
to
52d14b4
Compare
Pull Request Test Coverage Report for Build 15309283798Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
if optimization_level == 3 and sys.platform == "win32": | ||
self.skipTest( | ||
"This test case triggers a bug in the eigensolver routine on windows. " | ||
"See #10345 for more details." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh we should close this issue we're not using scipy or LAPACK for the weyl decomposition anymore. So if we have flakiness on Windows it's a different root cause and would warrant a new issue.
seed_transpiler=2023_07_26, | ||
backend = GenericBackendV2( | ||
num_qubits=27, | ||
coupling_map=CouplingMap.from_line(27), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bit confusing at first, because the "v1" test had 16 qubits, while the v2 has 27. We're just running with the v2 version now which makes sense.
`GenericBackendV2` defaults to explicit all-to-all connectivity. Many old test cases were somewhat mechanically changed to use `GenericBackendV2` without fixing the coupling map, resulting in many tests using large-scale all-to-all connectivity with an inefficient representation, for tests that do not require it. This commit changes all test-suite uses of `GenericBackendV2` with more than 10 qubits and all-to-all connectivity to restrict the connectivity. There is one exception - a VF2Layout scaling test with 27q all-to-all, where the large number of possibilities is a deliberate part of the test. Several tests that previously had `BackendV1` and `BackendV2` versions have one of the pair deleted, since `BackendV1` no longer exists, and all those tests had already been changed to use `BackendV2`. A further regression test that was dependent on the particulars of various randomisation seeds that are _long_ since out-of-date is also deleted, rather than blindly fixing its connectivity.
GenericBackendV2
defaults to explicit all-to-all connectivity. Many old test cases were somewhat mechanically changed to useGenericBackendV2
without fixing the coupling map, resulting in many tests using large-scale all-to-all connectivity with an inefficient representation, for tests that do not require it.This commit changes all test-suite uses of
GenericBackendV2
with more than 10 qubits and all-to-all connectivity to restrict the connectivity. There is one exception - a VF2Layout scaling test with 27q all-to-all, where the large number of possibilities is a deliberate part of the test.Several tests that previously had
BackendV1
andBackendV2
versions have one of the pair deleted, sinceBackendV1
no longer exists, and all those tests had already been changed to useBackendV2
. A further regression test that was dependent on the particulars of various randomisation seeds that are long since out-of-date is also deleted, rather than blindly fixing its connectivity.Summary
Details and comments
This finishes the job of #14483.