-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add BackendV2 abstract class #5885
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
130 commits
Select commit
Hold shift + click to select a range
adbd651
Add BackendV2 abstract class
mtreinish fac5a5b
Adjust GateMap to be a dict instead of a graph
mtreinish 39e5750
Add fields from properties to v2 backend interface
mtreinish 267a8bd
Adjust GateMap structure
mtreinish e61abcd
Rename GateMap -> Target and drop readout error (as it'll be per inst…
mtreinish 9e9c778
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 1278c8e
Add instruction durations method to target
mtreinish 1d4c151
Add optional dt properties to backend object
mtreinish b34d242
Add instruction durations method to backendv2
mtreinish d92e6cb
Fix lint
mtreinish 31eedbc
Rename max_experiments -> max_circuits
mtreinish fd57146
Add two_q_gate option to Target.coupling_map()
mtreinish 282a511
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish ad7bbf5
Add option for a list of qubits to t1, t2, and frequency
mtreinish 4e22110
Change list return to numpy array for t1 and t2
mtreinish 154eee7
Drop qubit frequency
mtreinish 1dc54d7
Add pulse to instruction durations
mtreinish 28d8faa
Update units for dt and dtm
mtreinish 4bc34af
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 8c57845
Update qiskit/transpiler/target.py
mtreinish 8a33fcf
Fix type hints for t1 and t2
mtreinish 4a76c0b
Fix transpile() to actually use BackendV2 correctly
mtreinish 79884eb
Merge branch 'backends-v2' of github.com:mtreinish/qiskit-core into b…
mtreinish 46b3807
Add transpile() test case with BackendV2
mtreinish 3eaeaeb
Merge branch 'main' into backends-v2
mtreinish 0572572
Add repr for InstructionProperties
mtreinish 519c579
Tweak docs
mtreinish d10fce1
Replace get_qargs_from_name with get_instructions_for_qarg
mtreinish d0454b7
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 979a17b
Add tests for target
mtreinish f881140
Fix black's insane formatting choice
mtreinish 87ca4dd
Add more target tests
mtreinish 0dbdbaf
Cleanup debug prints
mtreinish 2048ce9
Make Target a mapping
mtreinish 4e8ad6b
Rename get_gate_from_name to get_instruction_from_name
mtreinish 5d94c0b
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish ea74429
Fix test issue with rename of get_gate_from_name
mtreinish a34481e
Add support for running schedule() with a backend v2
mtreinish 9802c58
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 9f290d0
Add method to update instruction properties in target
mtreinish 8011cb8
Fix caching
mtreinish 0f00322
Add tests for new target methods
mtreinish dfdf79a
Fix lint
mtreinish 26398ad
Add support for qargs being None in ideal simulator case
mtreinish ce068be
Add test for ideal sim target instruction_schedule_map() method
mtreinish d3155c9
Add release note
mtreinish 80d11af
Add BackendV2 to autodoc
mtreinish f40c7fe
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 9c46637
Drop distance() and distance() matrix from Target
mtreinish f93ed28
Fix leftovers in doc strings
mtreinish 26a179d
Add __str__ for target
mtreinish 43955ad
Add logging when instruction_names includes instructions not on all q…
mtreinish 639a190
Documentation fixes from code review
mtreinish 89af78a
Use seconds everywhere
mtreinish 3302041
Fixes from recent changes
mtreinish b13e127
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 3e8930a
Add update_from_instruction_schedule_map() method
mtreinish 6e63dd8
Merge branch 'main' into backends-v2
mtreinish a7c0317
Use defaultdict for _qarg_gate_map in target
mtreinish 4228df2
Merge branch 'main' into backends-v2
mtreinish 60de926
Explicitly add ScheduleBlock to backend.run()
mtreinish dad88f3
Tweak docs for target
mtreinish 6792586
Add pulse channel abstract methods to BackendV2 class
mtreinish 282002f
Merge branch 'main' into backends-v2
mtreinish 8cac343
Fix lint
mtreinish e3ac45f
Improve target's update_from_instruction_schedule_map
mtreinish 171b40c
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 16ea95b
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 3e7f45b
Add timing constraints to the target
mtreinish f9a2a2d
Fix typos in release note
mtreinish bffb477
Merge branch 'main' into backends-v2
mtreinish 95a5e65
Re-export FakeBackendV2 in qiskit.test.mock
mtreinish b2511e0
Update target docstring example
mtreinish 31ad33a
Make properties optional on Target.add_instruction()
mtreinish 62f36bd
Add docstring type to BackendV2.target attribute
mtreinish 5c252d4
Make Target.instructions property return tuple and add operations
mtreinish fe2e903
Rename instruction property schedule -> calibration
mtreinish 7552406
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish d457229
Add optional backend metadata as constructor kwargs
mtreinish be403b8
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 6334bc0
More instruction->Operation renames
mtreinish 0b5a539
Remove conditional and max_shots abstract properties
mtreinish 5440ee5
Add optional validators to Options object
mtreinish 1150fe0
Include dt in output InstructionDurations from Target
mtreinish 598f513
Add QubitProperties class and qubits() backend method
mtreinish b07fedd
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish debae29
Add instruction_properties() method
mtreinish 4d43414
Fix lint in mock backend
mtreinish 836efb8
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 099a77b
Make provider backref optional and fix docstring
mtreinish 0d1b2dc
Rename BackendV2.qubits() BackendV2.qubit_properties()
mtreinish 2031f7f
Add note to QubitProperties docstring on subclassing
mtreinish 6078d09
Fix Options.set_validator() docstring
mtreinish 13c4f89
Add missing **fields docstring to BackendV2 init
mtreinish 0ec5e6d
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish d2c2796
Remove t1/t2 methods from BackendV2 class
mtreinish 43a1ca5
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 8e9ffa4
Remove unused imports
mtreinish 2942118
Remove properties field from Properties classes
mtreinish 076e815
Apply suggestions from code review
mtreinish d27df8c
Rename InstructionProperties.length -> duration
mtreinish 7d4b90d
Merge branch 'main' into backends-v2
mtreinish 2d02871
Docstring improvements and more instruction->operation
mtreinish 9e1d544
Merge branch 'main' into backends-v2
mtreinish efaccb9
Merge branch 'main' into backends-v2
mtreinish 4a9ccfa
Update releasenotes/notes/add-backend-v2-ce84c976fb13b038.yaml
mtreinish 7e78e68
Merge remote-tracking branch 'origin/main' into backends-v2
mtreinish 16475f2
Rename and fix incomplete basis computation
mtreinish da767e4
Tweak release note wording on custom attributes of backend
mtreinish 071e7d8
Finish set_validator docstring on options class
mtreinish d638209
Update qiskit/providers/backend.py
mtreinish 0619df8
Merge branch 'main' into backends-v2
mtreinish 6a3e914
Apply suggestions from code review
mtreinish 4839d4d
Merge branch 'main' into backends-v2
mtreinish 9d2532c
Return dict .keys() directly for Target properties
mtreinish b1fb1b3
Fix stray use of properties attr in QubitProperties
mtreinish e125578
Update stray set() return for property
mtreinish d602568
Apply suggestions from code review
mtreinish 814dc91
Merge branch 'main' into backends-v2
mtreinish 65c3e71
Rename Target.get_qargs() -> qargs_for_operation_name()
mtreinish 4bf8885
Fix lint
mtreinish 24b6078
Rename Target.coupling_map() -> build_coupling_map()
mtreinish a94be6c
Fix test name for discovery
mtreinish 599d2fd
qarg -> qargs in target method arguments
mtreinish 1159856
Add target to docs build
mtreinish aa734af
Fix target docs
mtreinish 2739221
Fix lint
mtreinish 316c9e0
Tweak documentation for target to make intent and future clear
mtreinish 1ecc09c
Fix typo in QubitProperties docstring
mtreinish 5c2549a
Merge branch 'main' into backends-v2
mtreinish 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
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.