Debian Codegraph @

texmf-dist/doc/latex/quantumcubemodel/examples/cnot-on-three-qubits.tex

raw
1 \documentclass[preview, border=40px]{standalone}
2 \usepackage{../quantumcubemodel}
3 \begin{document}
4 \begin{qcmx}
5 \node at (24, 18, 0) {\Huge \textbf{
6 CNot on x (controll), y (target) in a system of three qubits
7 }};
8 \qcmxOOO{0.71}
9 \qcmxIOO[90]{0.5}
10 \qcmxIII[135]{0.5}
11 \qcmxRenderQQQ
12 \qcmxClearQQQ
13
14 \def\qcmxOffsetX{20}
15 \def\qcmxOffsetY{4}
16 \qcmxRenderCNotQQQ{xy} % x is the controll, y is the target
17
18 \def\qcmxOffsetX{33}
19 \def\qcmxOffsetY{0}
20 \qcmxOOO{0.71}
21 \qcmxIIO[90]{0.5}
22 \qcmxIOI[135]{0.5}
23 \qcmxRenderQQQ
24 \end{qcmx}
25 \end{document}