-
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.
Fix delay padding to respect target's constraints (#10007)
* Add and update tests * Fix padding passes to respect target's constraints * Fix transpile with scheduling to respect target's constraints * Add release note * fix reno * use target.instruction_supported * simplify * Add check if all DD gates are supported on each qubit * Add logging * Update DD tests * Make DD gates check target-aware * Fix legacy DD pass (cherry picked from commit 117d188)
- Loading branch information
1 parent
c2a1362
commit 633bab7
Showing
13 changed files
with
343 additions
and
27 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
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
13 changes: 13 additions & 0 deletions
13
releasenotes/notes/fix-delay-padding-75937bda37ebc3fd.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,13 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue in tranpiler passes for padding delays, which did not respect target's constraints | ||
and inserted delays even for qubits not supporting :class:`~.circuit.Delay` instruction. | ||
:class:`~.PadDelay` and :class:`~.PadDynamicalDecoupling` are fixed | ||
so that they do not pad any idle time of qubits such that the target does not support | ||
``Delay`` instructions for the qubits. | ||
Also legacy scheduling passes ``ASAPSchedule`` and ``ALAPSchedule``, | ||
which pad delays internally, are fixed in the same way. | ||
In addition, :func:`transpile` is fixed to call ``PadDelay`` with a ``target`` object | ||
so that it works correctly when called with ``scheduling_method`` option. | ||
Fixed `#9993 <https://github.com/Qiskit/qiskit-terra/issues/9993>`__ |
Oops, something went wrong.