-
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.
Cleanup timeline and add schedule info to scheduled circuit.
- Loading branch information
1 parent
d9a6f0b
commit a8ddcdf
Showing
7 changed files
with
90 additions
and
388 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 was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
releasenotes/notes/cleanup-timeline-drawer-a6287bdab4459e6e.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,27 @@ | ||
--- | ||
upgrade: | ||
- | | ||
A protected attribute :attr:`_node_start_time` is silently added to | ||
:class:`~QuantumCircuit` when one of scheduling analysis passes is run on the circuit. | ||
This information can be used to obtain circuit instruction with instruction time. | ||
.. code-block:: python | ||
from qiskit import QuantumCircuit, transpile | ||
from qiskit.test.mock import FakeMontreal | ||
backend = FakeMontreal() | ||
qc = QuantumCircuit(2) | ||
qc.h(0) | ||
qc.cx(0, 1) | ||
qct = transpile( | ||
qc, backend, initial_layout=[0, 1], coupling_map=[[0, 1]], scheduling_method="alap" | ||
) | ||
scheduled_insts = list(zip(qct._node_start_time, qct.data)) | ||
fixes: | ||
- | | ||
Time misalignment bug of drawing classical register with :func:`~timeline_drawer` | ||
has been fixed. Now classical register slots are drawn at correct position. |
Oops, something went wrong.