visualization
extra:

Currently, only the
mpl
(matplotlib) output format is supported.Input Formats
All draw methods accepts either astr
(QASM source) or a pyqasm.QasmModule object. The following are equivalent:
Exclude Idle Wires
Use theidle_wires=False
option to exclude idle qubits (i.e. wires with no circuit elements) in the output circuit diagram:

Save Diagram
Save the circuit diagram to a file by specifyingoutput='mpl'
and a filename
: