Debian Codegraph @

texmf-dist/doc/latex/quantumcubemodel/examples/multi-qubit-transformation-hadamard.tex

raw
1 \documentclass[preview, border=40px]{standalone}
2 \usepackage{../quantumcubemodel}
3 \begin{document}
4 \begin{qcmx}
5 \node at (18, 13, 0) {\Huge \textbf{Hadamard on first of two qubits in xy plane}};
6 \qcmxOO{1}
7 \qcmxRenderQQ
8 \qcmxClearQQ
9
10 \def\qcmxOffsetX{15}
11 \def\qcmxOffsetY{3}
12 \qcmxRenderHadamardQQ{x}
13
14 \def\qcmxOffsetX{25}
15 \def\qcmxOffsetY{0}
16 \qcmxOO{0.71}
17 \qcmxIO{0.71}
18 \qcmxRenderQQ
19 \qcmxClearQQ
20
21 \node at (18, -7, 0) {\Huge \textbf{Hadamard on second of two qubits in xy plane}};
22 \def\qcmxOffsetX{0}
23 \def\qcmxOffsetY{-20}
24 \qcmxOO{1}
25 \qcmxRenderQQ
26 \qcmxClearQQ
27
28 \def\qcmxOffsetX{15}
29 \def\qcmxOffsetY{-17}
30 \qcmxRenderHadamardQQ{y}
31
32
33 \def\qcmxOffsetX{25}
34 \def\qcmxOffsetY{-20}
35 \qcmxOO{0.71}
36 \qcmxOI{0.71}
37 \qcmxRenderQQ
38 \qcmxClearQQ
39
40 \node at (18, -27, 0) {\Huge \textbf{Hadamard on first of two qubits in yz plane}};
41 \def\qcmxOrientationQQ{yz}
42 \def\qcmxOffsetX{5}
43 \def\qcmxOffsetY{-45}
44 \qcmxOO{1}
45 \qcmxRenderQQ
46 \qcmxClearQQ
47
48 \def\qcmxOffsetX{17}
49 \def\qcmxOffsetY{-40}
50 \qcmxRenderHadamardQQ{y}
51
52 \def\qcmxOffsetX{27}
53 \def\qcmxOffsetY{-45}
54 \qcmxOO{0.71}
55 \qcmxIO{0.71}
56 \qcmxRenderQQ
57 \end{qcmx}
58 \end{document}