uniqc.visualization.circuit_render.latex module

quantikz LaTeX export for circuit rendering.

Emits source for the quantikz package (tikzlibrary quantikz2), the de-facto standard for quantum-circuit figures in papers. Constructs that quantikz cannot express (classical instructions, QIF/QWHILE control flow, channel semantics) degrade to comments plus placeholder gates — the output always compiles.

Verified syntax (TeX Live quantikz2): \gate[wires=N,style={...}]{...}, \ctrl{Δ} / \targ{} / \control{}, \swap{Δ} / \targX{}, \meter{}, \slice{} for barriers.

uniqc.visualization.circuit_render.latex.render_latex(draw, opts)[source]

Render a circuit as quantikz LaTeX source (compilable standalone block).