-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework handling of instruction durations in preset pass managers (#12183
) * Rework use of instruction durations, move logic from transpile function to individual passes. * Apply review feedback on reno
- Loading branch information
Showing
5 changed files
with
103 additions
and
75 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
15 changes: 15 additions & 0 deletions
15
releasenotes/notes/rework-inst-durations-passes-28c78401682e22c0.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,15 @@ | ||
--- | ||
fixes: | ||
- | | ||
The internal handling of custom circuit calibrations and :class:`.InstructionDurations` | ||
has been offloaded from the :func:`.transpile` function to the individual transpiler passes: | ||
:class:`qiskit.transpiler.passes.scheduling.DynamicalDecoupling`, | ||
:class:`qiskit.transpiler.passes.scheduling.padding.DynamicalDecoupling`. Before, | ||
instruction durations from circuit calibrations would not be taken into account unless | ||
they were manually incorporated into `instruction_durations` input argument, but the passes | ||
that need it now analyze the circuit and pick the most relevant duration value according | ||
to the following priority order: target > custom input > circuit calibrations. | ||
- | | ||
Fixed a bug in :func:`.transpile` where the ``num_processes`` argument would only be used | ||
if ``dt`` or ``instruction_durations`` were provided. |