Debian Codegraph @

texmf-dist/doc/latex/quantumcubemodel/examples/orientation-of-qubits.tex

raw
1 \documentclass[preview, border=40px]{standalone}
2 \usepackage{../quantumcubemodel}
3 \begin{document}
4 \begin{qcmx}
5 \node at (5, 3, 0) {\Huge \textbf{X-Axis}};
6 \def\qcmxOrientationQ{x} % this is the default
7 \qcmxO{1}
8 \qcmxRenderQ
9
10 \node at (15, 7, 0) {\Huge \textbf{Y-Axis}};
11 \def\qcmxOffsetX{15} % <--- this moves the Y-Axis qubit to the right
12 \def\qcmxOffsetY{-5} % and a bit down, relative to the origin (0, 0, 0)
13
14 \def\qcmxOrientationQ{y} % <--- this sets the orientation to the y axis
15 \qcmxRenderQ
16
17 \node at (23,4, 0) {\Huge \textbf{Z-Axis}};
18 \def\qcmxOffsetX{20}
19 \def\qcmxOffsetY{-3}
20
21 \def\qcmxOrientationQ{z}
22 \qcmxRenderQ
23 \end{qcmx}
24 \end{document}