Skip to content
Hiroya-W edited this page Jul 27, 2023 · 6 revisions

Welcome to the qulacs-visualizer wiki!

Architecture

qulacsvis-Architecture

CircuitParser

qulacsvis-CircuitParser

MPLCircuitDrawer

Debug view

MPLCircuitDrawer.draw() method takes debug argument.

    def draw(
        self, *, debug: bool = False, filename: Optional[str] = None
    ) -> matplotlib.figure.Figure:

If debug is True, the axis can be displayed. This will help you in your debugging.

qubit, layer

qulacsvis-MPLCircuitDrawer (3)

GATE_DEFAULT_{WIDTH, HEIGHT}

qulacsvis-MPLCircuitDrawer (1)

GATE_MARGIN_{TOP, BOTTOM, LEFT, RIGHT}

qulacsvis-MPLCircuitDrawer (4)