Static
analyzeAnalyzes a circuit and computes its layout for visualization. This method determines the position of each gate in a 2D grid.
The circuit to analyze.
A CircuitLayout
object describing the arrangement of gates.
Static
renderRenders a quantum circuit as an ASCII art string.
The circuit to render.
Options to customize the ASCII output.
A string containing the ASCII representation of the circuit.
Static
generateGenerates a structured data object representing the circuit for SVG rendering.
The circuit to represent.
An SVGCircuitData
object that can be used to render an SVG diagram.
Static
exportExports the circuit to a LaTeX string using the Qcircuit package format.
The circuit to export.
A string containing the LaTeX code for the circuit diagram.
Provides static methods for visualizing quantum circuits.
This class supports rendering circuits into multiple formats, including ASCII art for console output, SVG data for web rendering, and LaTeX for high-quality typesetting in documents.