qiskit/releasenotes/notes/0.12/add-couplingmap-draw-45b875...

16 lines
428 B
YAML

---
features:
- |
A new method :meth:`qiskit.transpiler.CouplingMap.draw` was added to
:class:`qiskit.transpiler.CouplingMap` to generate a graphviz images from
the coupling map graph. For example:
.. code-block::
from qiskit.transpiler import CouplingMap
coupling_map = CouplingMap(
[[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]])
coupling_map.draw()