pdft.viz.plot_circuit

Contents

pdft.viz.plot_circuit#

pdft.viz.plot_circuit(basis, *, output_path=None, title=None)[source]#

Render basis’s circuit: one column per gate, in the order the gates act.

Horizontal wires for each qubit, a box for a one-qubit gate, a vertical link for a two-qubit gate (round ends for a diagonal controlled phase, square ends for a dense or controlled-rotation gate). Deliberately simple; full-fidelity rendering with gate labels is upstream’s domain.

Parameters:
  • output_path (str | Path | None)

  • title (str | None)