-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add BackendV2 mocked backend #7643
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 106 commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
66ecf25
Add backend converter script from Matthew
HuangJunye 9a9ef3e
FakeBackendV2, FakeQasmBeckendV2, FakeJakartaV2 in progress
HuangJunye 61069f1
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 6046706
Temporary fix for circular import
HuangJunye 667d039
First try of implementing FakeJakartaV2 based on FakeQasmBackendV2/Fa…
HuangJunye c04bf29
Implement FakeQasmBackend methods into FakeBackendV2
HuangJunye fa7ebd9
Implement FakePulseBackend methods into FakeBackendV2
HuangJunye 619e5de
Import missing PulseDefaults and adjust _get_conf_from_json method po…
HuangJunye df20b0f
Adjust _get_config_from_dict method position
HuangJunye 9480d76
Fix target property
HuangJunye b1c422e
Fix _default_options method
HuangJunye d75e3c0
Add FakeProviderV2 for V2 fake backends
HuangJunye d48bf0a
Remove FakeQasmBackendV2 class
HuangJunye 77dd9e2
Copy run method from FakeBackendV1
HuangJunye 806cdd3
change configuration to self._configuration
HuangJunye 2438935
Update backend_converter.py
HuangJunye eec4a49
@rathishcholarajan Use BackendConfiguration, BackendProperties and P…
HuangJunye 12ed0a4
Add dtm
HuangJunye 842a18a
Add qubit properties
HuangJunye 1b73006
Add drive, measure and acquire channels.
HuangJunye f75c24e
Fix test_fake_backends
HuangJunye ccc5a9f
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye ba29e4e
Fix ConfigurableFakeBackend circular import problem
HuangJunye 7fddb5e
Fix configurable_backend circular import problem
HuangJunye 774caf9
FakeAlmadenV2
HuangJunye 896b93a
FakeArmonkV2
HuangJunye fbf9007
FakeAthensV2
HuangJunye 8cef341
FakeBelemV2
HuangJunye fafe038
FakeBoeblingenV2
HuangJunye 19bf018
Add fake backends (except rueschlikon, tenerife and tokyo)
HuangJunye b5aa3a0
import fake v2 backends in __init__.py
HuangJunye 18d2074
add fake backends to mock.backend.__init__ and fake provider
HuangJunye 62aeb08
Fix typos
HuangJunye 0d781e5
Add defs files to manila, poughkeepsie, rome and santiago
HuangJunye a02abb9
Fix FakeCambridgeV2
HuangJunye ccf6a55
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye ac3c237
Add Hanoi and Kolkata to FakeProviderV2
HuangJunye 59ceb3e
Handle no pulse backends in V2
HuangJunye fd31f13
Fix getting qubit properties from properties bug
HuangJunye 4a35e5d
Fix _parse_inst_map for BackendV2 with no pulse support
HuangJunye 61609e6
Revert "Update backend_converter.py"
HuangJunye 3a2421a
Revert " @rathishcholarajan Use BackendConfiguration, BackendProperti…
HuangJunye a5d4462
Use dicts instead of conf, props, defs objects
HuangJunye 023b459
remove channels
HuangJunye 8571e84
add type hints
HuangJunye 54cead1
Use dict.get instead of brackets
HuangJunye a814fa7
clean up backend_converter.py
HuangJunye 72df114
construct target using defs files if it exist
HuangJunye fcedd6b
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye f01e8db
Fix typo in target.acquire_alignment
HuangJunye fa4f142
Handle BackendV2 in transpiler._parse_inst_map
HuangJunye 2127b34
Comment out backends in fake provider and Aer run method for testing
HuangJunye e80abda
undo typo fix for target.acquire_alignment
HuangJunye 6e7875f
Revert "Comment out backends in fake provider and Aer run method for …
HuangJunye 2fe67a2
Copy NoiseModel.from_backend() method from Aer
HuangJunye a29d58e
modify NoiseModel.from_backend method to support V2 backend
HuangJunye 8927092
Build V2 backend noise model from self._props_dict
HuangJunye 308d22a
black reformatting
HuangJunye 58c69dd
Move V2 backend code to above V1 and Legacy
HuangJunye a5585ff
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 9ed2016
Clean up FakeBackendV2 for testing
HuangJunye 754d12b
Merge branch 'add-v2-mocked-backend-7391' of https://github.com/Huang…
HuangJunye 33a53a6
Order FakeBackendV2 to match BackendV2
HuangJunye b4107c7
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye ab22b2b
Merge branch 'add-v2-mocked-backend-7391' of https://github.com/Huang…
HuangJunye 474e529
Uncomment out fake backends from fake provider v1 and fake legacy pro…
HuangJunye 8bab11e
Remove unused imports
HuangJunye 0d1ddcd
Remove FakeTokyoV2 import
HuangJunye 2d45c2b
Remove warnings for missing conf, props and defs files
HuangJunye a11f462
Remove lazy loading of target
HuangJunye 9c68b8a
Remove lazy loading of qubit properties
HuangJunye b4747fa
Remove deprecation warning for standard_gates option in noise model
HuangJunye 21e567e
linting for fake_backend.py
HuangJunye f077a6a
linting for backend_converter.py
HuangJunye 735c6d3
fix `Redefining name 'warnings' from outer scope` error
HuangJunye 90036fb
lint: rename qubit_props_dict_from_props_dict
HuangJunye 29a7386
Raise error for pulse simulation
HuangJunye 6047a5d
remove warnings flag
HuangJunye 6cdaecd
Move V2 to in front of V1
HuangJunye 87fb07b
revert changes in transpiler._parse_inst_map
HuangJunye 3a04830
remove warnings flag
HuangJunye 9d23877
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 7d027c8
fix 'no-else-raise' error
HuangJunye 8551086
Add docstring to FakeBackendV2
HuangJunye 48ca29f
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 50c12ac
rename `kwargs` to `options` in .run method
HuangJunye be27c4d
Update qiskit/test/mock/fake_backend.py
HuangJunye a418755
Update qiskit/test/mock/fake_backend.py
HuangJunye a749dda
Update qiskit/test/mock/fake_backend.py
HuangJunye 68fef20
rearrange raising error for pulse job
HuangJunye 164c889
Merge branch 'add-v2-mocked-backend-7391' of https://github.com/Huang…
HuangJunye bbf53f2
Add a TODO comment for removing PulseDefaults
HuangJunye 965452f
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 764bb05
fix typo
HuangJunye dcb8a55
black reformat
HuangJunye 67abfcc
Add release note.
HuangJunye 90c8520
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye ce51f51
Fix no else raise error
HuangJunye caab6ea
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye 8f4cb20
Add blank new line in release note
HuangJunye 4838fbe
black formatting
HuangJunye 40e6aa0
fix release note missing black tick
HuangJunye 7800472
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye b5d6144
Rename FakeProviderV2 to FakeProviderForBackendV2
HuangJunye 62402c3
Re-export FakeProviderForBackendV2 to qiskit.providers.fake_provider
HuangJunye 088c128
Merge branch 'main' into add-v2-mocked-backend-7391
HuangJunye ed0417a
black reformatting
HuangJunye 032c530
Merge branch 'add-v2-mocked-backend-7391' of https://github.com/Huang…
HuangJunye f94452d
Merge branch 'main' into add-v2-mocked-backend-7391
mergify[bot] 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
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
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
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
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
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
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
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 |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ | |
|
|
||
| """Mock brooklyn backend""" | ||
|
|
||
| from .fake_brooklyn import FakeBrooklynV2 | ||
| from .fake_brooklyn import FakeBrooklyn | ||
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
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 |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ | |
|
|
||
| """Mock cairo backend""" | ||
|
|
||
| from .fake_cairo import FakeCairoV2 | ||
| from .fake_cairo import FakeCairo | ||
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
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
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
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.