-
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.
* Give priority over backend target to custom constraints when using transpile and BackendV2. * Add reno * Add backend_properties to skip_target * Add target to pulse analysis passes * Add tests * Update reno * Fix lint * Add table to docs * Update qiskit/compiler/transpiler.py Co-authored-by: Matthew Treinish <[email protected]> * Update explanation --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
Showing
7 changed files
with
232 additions
and
14 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
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
21 changes: 21 additions & 0 deletions
21
releasenotes/notes/fix-custom-transpile-constraints-5defa36d540d1608.yaml
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,21 @@ | ||
--- | ||
fixes: | ||
- | | ||
A bug in :func:`.transpile` has been fixed where custom ``instruction_durations``, ``dt`` and ``backend_properties`` | ||
constraints would be ignored when provided at the same time as a backend of type :class:`.BackendV2`. The behavior | ||
after the fix is now independent of whether the provided backend is of type :class:`.BackendV1` or | ||
type :class:`.BackendV2`. Similarly, custom ``timing_constraints`` are now overridden by ``target`` inputs | ||
but take precedence over :class:`.BackendV1` and :class:`.BackendV2` inputs. | ||
features_transpiler: | ||
- | | ||
The following analysis passes now accept constraints encoded in a :class:`.Target` thanks to a new ``target`` | ||
input argument: | ||
* :class:`.InstructionDurationCheck` | ||
* :class:`.ConstrainedReschedule` | ||
* :class:`.ValidatePulseGates` | ||
The target constraints will have priority over user-provided constraints, for coherence with the rest of | ||
the transpiler pipeline. | ||
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