-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
instruction_durations
, timing_constraints
and `backend_…
…properties` (#13338) * Deprecate instruction_durations, timing_constraints and backend_properties * test_scheduling_instruction_constraints * Fix test/python/transpiler/test_preset_passmanagers.py * Fix test/python/visualization/timeline/test_core.py * Fix test/python/compiler/test_transpiler.py * Fix test/python/circuit/test_scheduled_circuit.py * single line * test.python.circuit.test_scheduled_circuit.TestScheduledCircuit * Apply suggestions from code review Co-authored-by: Elena Peña Tapia <[email protected]> * reno * Update reno example * tests --------- Co-authored-by: Elena Peña Tapia <[email protected]> Co-authored-by: Elena Peña Tapia <[email protected]>
- Loading branch information
1 parent
91ceee5
commit 2d0e28f
Showing
7 changed files
with
336 additions
and
122 deletions.
There are no files selected for viewing
This file contains 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 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 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,14 @@ | ||
--- | ||
deprecations_transpiler: | ||
- | | ||
The following :func:`.transpile` and :func:`.generate_preset_pass_manager` arguments are deprecated in favor of | ||
defining a custom :class:`.Target`: ``instruction_durations``, ``timing_constraints``, and ``backend_properties``. | ||
These arguments can be used to build a target with :meth:`.Target.from_configuration`:: | ||
Target.from_configuration( | ||
... | ||
backend_properties = backend_properties, | ||
instruction_durations = instruction_durations, | ||
timing_constraints = timing_constraints | ||
) | ||
This file contains 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.