-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Update remaining unit tests to use FakeGeneric
#10918
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d0a9647
Update V2 tests to use FakeGeneric or GenericTarget
ElePT f227917
Add missing tests and fixes
ElePT 07f4213
Fix calibrations and adjust tests
ElePT 548d084
Fix remaining tests
ElePT 6569f29
Merge branch 'main' into fake-backends
ElePT bee2a2d
Add test_backend_v2 test
ElePT 96fe781
Add Aer check to sparse_pauli_op test
ElePT a2ceed7
Fix noise defaults
ElePT ec4180a
Fix value
ElePT 0d9509c
Merge branch 'main' into fake-backends
ElePT d1d98f9
Fix lint
ElePT 56f4fba
Delete spurious files
ElePT fd7ac1a
Merge from main
ElePT 518f2a2
Update class names, fix conflicts post-merge.
ElePT 23a3d4d
Extract coupling maps, improve style
ElePT 8b705fb
Fix passmanager test
ElePT a0e8d5b
More test fixes
ElePT 2768e27
New attempt at fixing tests
ElePT 5e57a10
Please, mr. backend_estimator test, give me a break and reproduce my …
ElePT 724a6c5
Trying again
ElePT 0f903e4
Apply suggestions from Kevin's code review
ElePT b21961c
Move cmaps to new file, fix black
ElePT 31d5fc1
Merge branch 'main' of https://github.com/Qiskit/qiskit into fake-bac…
ElePT 54ebd80
Fix tests
ElePT a68a293
Replace FakeBackendSimple with BasicSimulator
ElePT 5a38910
Merge branch 'main' of https://github.com/Qiskit/qiskit into fake-bac…
ElePT 9f7775b
Fix passmanager config test
ElePT 025a11d
Fix seed for vf2 layout tests
ElePT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,194 @@ | ||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2024. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| """Coupling maps for fake backend generation and transpiler testing.""" | ||
|
|
||
| # 5 qubits | ||
| # bidirectional | ||
| BOGOTA_CMAP = [[0, 1], [1, 0], [1, 2], [2, 1], [2, 3], [3, 2], [3, 4], [4, 3]] | ||
| LIMA_CMAP = [[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]] | ||
| YORKTOWN_CMAP = [ | ||
| [0, 1], | ||
| [0, 2], | ||
| [1, 0], | ||
| [1, 2], | ||
| [2, 0], | ||
| [2, 1], | ||
| [2, 3], | ||
| [2, 4], | ||
| [3, 2], | ||
| [3, 4], | ||
| [4, 2], | ||
| [4, 3], | ||
| ] | ||
| # directional | ||
| TENERIFE_CMAP = [[1, 0], [2, 0], [2, 1], [3, 2], [3, 4], [4, 2]] | ||
|
|
||
| # 16 qubits | ||
| RUESCHLIKON_CMAP = [ | ||
| [1, 0], | ||
| [1, 2], | ||
| [2, 3], | ||
| [3, 4], | ||
| [3, 14], | ||
| [5, 4], | ||
| [6, 5], | ||
| [6, 7], | ||
| [6, 11], | ||
| [7, 10], | ||
| [8, 7], | ||
| [9, 8], | ||
| [9, 10], | ||
| [11, 10], | ||
| [12, 5], | ||
| [12, 11], | ||
| [12, 13], | ||
| [13, 4], | ||
| [13, 14], | ||
| [15, 0], | ||
| [15, 2], | ||
| [15, 14], | ||
| ] | ||
|
|
||
| # 20 qubits | ||
| TOKYO_CMAP = [ | ||
| [0, 1], | ||
| [0, 5], | ||
| [1, 0], | ||
| [1, 2], | ||
| [1, 6], | ||
| [1, 7], | ||
| [2, 1], | ||
| [2, 6], | ||
| [3, 8], | ||
| [4, 8], | ||
| [4, 9], | ||
| [5, 0], | ||
| [5, 6], | ||
| [5, 10], | ||
| [5, 11], | ||
| [6, 1], | ||
| [6, 2], | ||
| [6, 5], | ||
| [6, 7], | ||
| [6, 10], | ||
| [6, 11], | ||
| [7, 1], | ||
| [7, 6], | ||
| [7, 8], | ||
| [7, 12], | ||
| [8, 3], | ||
| [8, 4], | ||
| [8, 7], | ||
| [8, 9], | ||
| [8, 12], | ||
| [8, 13], | ||
| [9, 4], | ||
| [9, 8], | ||
| [10, 5], | ||
| [10, 6], | ||
| [10, 11], | ||
| [10, 15], | ||
| [11, 5], | ||
| [11, 6], | ||
| [11, 10], | ||
| [11, 12], | ||
| [11, 16], | ||
| [11, 17], | ||
| [12, 7], | ||
| [12, 8], | ||
| [12, 11], | ||
| [12, 13], | ||
| [12, 16], | ||
| [13, 8], | ||
| [13, 12], | ||
| [13, 14], | ||
| [13, 18], | ||
| [13, 19], | ||
| [14, 13], | ||
| [14, 18], | ||
| [14, 19], | ||
| [15, 10], | ||
| [15, 16], | ||
| [16, 11], | ||
| [16, 12], | ||
| [16, 15], | ||
| [16, 17], | ||
| [17, 11], | ||
| [17, 16], | ||
| [17, 18], | ||
| [18, 13], | ||
| [18, 14], | ||
| [18, 17], | ||
| [19, 13], | ||
| [19, 14], | ||
| ] | ||
|
|
||
| # 27 qubits | ||
| MUMBAI_CMAP = [ | ||
| [0, 1], | ||
| [1, 0], | ||
| [1, 2], | ||
| [1, 4], | ||
| [2, 1], | ||
| [2, 3], | ||
| [3, 2], | ||
| [3, 5], | ||
| [4, 1], | ||
| [4, 7], | ||
| [5, 3], | ||
| [5, 8], | ||
| [6, 7], | ||
| [7, 4], | ||
| [7, 6], | ||
| [7, 10], | ||
| [8, 5], | ||
| [8, 9], | ||
| [8, 11], | ||
| [9, 8], | ||
| [10, 7], | ||
| [10, 12], | ||
| [11, 8], | ||
| [11, 14], | ||
| [12, 10], | ||
| [12, 13], | ||
| [12, 15], | ||
| [13, 12], | ||
| [13, 14], | ||
| [14, 11], | ||
| [14, 13], | ||
| [14, 16], | ||
| [15, 12], | ||
| [15, 18], | ||
| [16, 14], | ||
| [16, 19], | ||
| [17, 18], | ||
| [18, 15], | ||
| [18, 17], | ||
| [18, 21], | ||
| [19, 16], | ||
| [19, 20], | ||
| [19, 22], | ||
| [20, 19], | ||
| [21, 18], | ||
| [21, 23], | ||
| [22, 19], | ||
| [22, 25], | ||
| [23, 21], | ||
| [23, 24], | ||
| [24, 23], | ||
| [24, 25], | ||
| [25, 22], | ||
| [25, 24], | ||
| [25, 26], | ||
| [26, 25], | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.