qilisdk.utils.visualization.circuit_renderers
Classes
Render a |
Module Contents
- class MatplotlibCircuitRenderer(circuit: qilisdk.digital.Circuit, ax: matplotlib.axes.Axes | None = None, *, style: qilisdk.utils.visualization.style.CircuitStyle = CircuitStyle())[fuente]
Render a
Circuitusing matplotlib.- circuit[fuente]
- style[fuente]
- property axes: matplotlib.axes.Axes[fuente]
- plot() None[fuente]
Render the circuit on the current axes and show the figure.
Traverses the circuit gates once, placing and drawing each element, deferring final-column measurements as needed, draws wires and finalizes the figure.
- save(filename: str) None[fuente]
Save current figure to disk.
- Parámetros:
filename – Path to save the figure (e.g., “circuit.png”).