Skip to content

Commit

Permalink
Reno
Browse files Browse the repository at this point in the history
  • Loading branch information
enavarro51 committed Oct 31, 2023
1 parent 6610fb7 commit 53381b3
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
features:
- |
The :func:`.dag_drawer` has been updated for the :class:`.DAGDependency`. These
drawings have a new color scheme, and the nodes now indicate the ``Qubits`` and
``Clbits`` that are used by the node. If the node has a ``condition`` the drawings
will indicate that as well.
.. code-block:: python
from qiskit.circuit import QuantumCircuit
from qiskit.converters import circuit_to_dagdependency
qc = QuantumCircuit(3, 2)
qc.h(0)
qc.cx(0, 1)
qc.cx(0, 2)
qc.x(1)
qc.barrier()
qc.measure(0, 0)
dagdep = circuit_to_dagdependency(qc)
dagdep.draw()

0 comments on commit 53381b3

Please sign in to comment.