qiskit/test/python/visualization/references/test_latex_wire_order.tex

20 lines
1.0 KiB
TeX

\documentclass[border=2px]{standalone}
\usepackage[braket, qm]{qcircuit}
\usepackage{graphicx}
\begin{document}
\scalebox{1.0}{
\Qcircuit @C=1.0em @R=0.2em @!R { \\
\nghost{{q}_{2} : } & \lstick{{q}_{2} : } & \qw & \qw & \qw & \qw\\
\nghost{{q}_{1} : } & \lstick{{q}_{1} : } & \gate{\mathrm{X}} & \qw & \qw & \qw\\
\nghost{{q}_{3} : } & \lstick{{q}_{3} : } & \gate{\mathrm{H}} & \gate{\mathrm{X}} & \qw & \qw\\
\nghost{{q}_{0} : } & \lstick{{q}_{0} : } & \gate{\mathrm{H}} & \qw & \qw & \qw\\
\nghost{{c}_{2} : } & \lstick{{c}_{2} : } & \cw & \control \cw \cwx[-2] & \cw & \cw\\
\nghost{{ca}_{0} : } & \lstick{{ca}_{0} : } & \cw & \cw & \cw & \cw\\
\nghost{{ca}_{1} : } & \lstick{{ca}_{1} : } & \cw & \cw & \cw & \cw\\
\nghost{{c}_{1} : } & \lstick{{c}_{1} : } & \cw & \controlo \cw \cwx[-3] & \cw & \cw\\
\nghost{{c}_{0} : } & \lstick{{c}_{0} : } & \cw & \controlo \cw \cwx[-1] & \cw & \cw\\
\nghost{{c}_{3} : } & \lstick{{c}_{3} : } & \cw & \control \cw^(0.0){^{\mathtt{0xc}}} \cwx[-1] & \cw & \cw\\
\\ }}
\end{document}