| 1 |
\documentclass[preview, border=40px]{standalone} |
| 2 |
\usepackage{../quantumcubemodel} |
| 3 |
\begin{document} |
| 4 |
\begin{qcmx} |
| 5 |
\node at (25,8,0) {\Huge \textbf{State Preparation}}; |
| 6 |
|
| 7 |
\node at (-4,2,0) {\Huge$\ket{\phi}$}; |
| 8 |
\node at (-4,-10,0) {\Huge$\ket{00}$}; |
| 9 |
|
| 10 |
\node[rotate=45] at (5,3,1.5) {\Huge $\Leftrightarrow$ Alice}; |
| 11 |
|
| 12 |
\def\qcmxOrientationQ{z} |
| 13 |
\def\qcmxOffsetX{3} |
| 14 |
\def\qcmxOffsetY{0} |
| 15 |
\qcmxO{0.81} |
| 16 |
\qcmxI[35]{0.57} |
| 17 |
\qcmxRenderQ |
| 18 |
\qcmxClearQ |
| 19 |
\node at (6,-2,0) {\Huge$\otimes$}; |
| 20 |
|
| 21 |
\node at (5,-14,0) {\Huge $\Leftrightarrow$ Alice}; |
| 22 |
\node[rotate=-90] at (1,-10,0) {\Huge $\Leftrightarrow$ Bob}; |
| 23 |
\def\qcmxOffsetX{0} |
| 24 |
\def\qcmxOffsetY{-15} |
| 25 |
\qcmxOO{1} |
| 26 |
\qcmxRenderQQ |
| 27 |
\qcmxClearQQ |
| 28 |
|
| 29 |
\def\qcmxOffsetX{15} |
| 30 |
\def\qcmxOffsetY{-9} |
| 31 |
\qcmxRenderHadamardQQ{x} |
| 32 |
\def\qcmxOffsetY{-16} |
| 33 |
\qcmxRenderCNotQQ{xy} |
| 34 |
|
| 35 |
\def\qcmxOffsetX{28} |
| 36 |
\def\qcmxOffsetY{0} |
| 37 |
\qcmxO{0.81} |
| 38 |
\qcmxI[35]{0.57} |
| 39 |
\qcmxRenderQ |
| 40 |
\qcmxClearQ |
| 41 |
\node at (31,-2,0) {\Huge$\otimes$}; |
| 42 |
|
| 43 |
\def\qcmxOffsetX{25} |
| 44 |
\def\qcmxOffsetY{-15} |
| 45 |
\qcmxOO{0.71} |
| 46 |
\qcmxII{0.71} |
| 47 |
\qcmxRenderQQ |
| 48 |
\qcmxClearQQ |
| 49 |
|
| 50 |
\node at (40,-7,0) {\Huge$=$}; |
| 51 |
\def\qcmxOffsetX{45} |
| 52 |
\def\qcmxOffsetY{-12} |
| 53 |
\qcmxOOO{0.58} |
| 54 |
\qcmxOOI[35]{0.4} |
| 55 |
\qcmxIIO{0.58} |
| 56 |
\qcmxIII[35]{0.4} |
| 57 |
\qcmxRenderQQQ |
| 58 |
\qcmxClearQQQ |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
\def\qcmxOffsetX{0} |
| 63 |
\def\qcmxOffsetY{-41} |
| 64 |
\qcmxOOO{0.58} |
| 65 |
\qcmxOOI[35]{0.4} |
| 66 |
\qcmxIIO{0.58} |
| 67 |
\qcmxIII[35]{0.4} |
| 68 |
\qcmxRenderQQQ |
| 69 |
\qcmxClearQQQ |
| 70 |
|
| 71 |
\node at (22,-23,0) {\Huge \textbf{Entangeling $\ket{\phi}$ with EPR}}; |
| 72 |
\def\qcmxOffsetX{18} |
| 73 |
\def\qcmxOffsetY{-38} |
| 74 |
\qcmxRenderCNotQQQ{zy} |
| 75 |
|
| 76 |
\def\qcmxOffsetX{30} |
| 77 |
\def\qcmxOffsetY{-41} |
| 78 |
\qcmxOOO{0.58} |
| 79 |
\qcmxOII[35]{0.4} |
| 80 |
\qcmxIIO{0.58} |
| 81 |
\qcmxIOI[35]{0.4} |
| 82 |
\qcmxRenderQQQ |
| 83 |
\qcmxClearQQQ |
| 84 |
|
| 85 |
\node at (51,-23,0) {\Huge \textbf{Hadamard transform $z$}}; |
| 86 |
\def\qcmxOffsetX{48} |
| 87 |
\def\qcmxOffsetY{-38} |
| 88 |
\qcmxRenderHadamardQQQ{z} |
| 89 |
|
| 90 |
\def\qcmxOffsetX{59} |
| 91 |
\def\qcmxOffsetY{-41} |
| 92 |
\qcmxOOO{0.41} |
| 93 |
\qcmxOOI{0.41} |
| 94 |
\qcmxOIO[35]{0.28} |
| 95 |
\qcmxOII[180+35]{0.28} |
| 96 |
\qcmxIOO[35]{0.28} |
| 97 |
\qcmxIOI[180+35]{0.28} |
| 98 |
\qcmxIIO{0.41} |
| 99 |
\qcmxIII{0.41} |
| 100 |
\qcmxRenderQQQ |
| 101 |
\qcmxClearQQQ |
| 102 |
|
| 103 |
|
| 104 |
\node at (22,-50,0) {\Huge \textbf{Measureing x and z}}; |
| 105 |
\def\qcmxOffsetX{0} |
| 106 |
\def\qcmxOffsetY{-68} |
| 107 |
\qcmxOOO{0.41} |
| 108 |
\qcmxOOI{0.41} |
| 109 |
\qcmxOIO[35]{0.28} |
| 110 |
\qcmxOII[180+35]{0.28} |
| 111 |
\qcmxIOO[35]{0.28} |
| 112 |
\qcmxIOI[180+35]{0.28} |
| 113 |
\qcmxIIO{0.41} |
| 114 |
\qcmxIII{0.41} |
| 115 |
\qcmxRenderQQQ |
| 116 |
\qcmxClearQQQ |
| 117 |
|
| 118 |
\def\qcmxOffsetX{20} |
| 119 |
\def\qcmxOffsetY{-65} |
| 120 |
\qcmxRenderMeasureQQQ{xz} |
| 121 |
|
| 122 |
\def\qcmxOffsetX{32} |
| 123 |
\def\qcmxOffsetY{-68} |
| 124 |
\def\qcmxOffsetZ{0} |
| 125 |
\def\qcmxOrientationQ{y} |
| 126 |
\qcmxO{0.81} |
| 127 |
\qcmxI[35]{0.57} |
| 128 |
\qcmxRenderQ |
| 129 |
\qcmxClearQ |
| 130 |
|
| 131 |
\def\qcmxOffsetX{42} |
| 132 |
\def\qcmxOffsetY{-68} |
| 133 |
\def\qcmxOffsetZ{0} |
| 134 |
\def\qcmxOrientationQ{y} |
| 135 |
|
| 136 |
\qcmxI{0.81} |
| 137 |
\qcmxO[35]{0.57} |
| 138 |
\qcmxRenderQ |
| 139 |
\qcmxClearQ |
| 140 |
|
| 141 |
\def\qcmxOffsetX{32} |
| 142 |
\def\qcmxOffsetY{-68} |
| 143 |
\def\qcmxOffsetZ{-10} |
| 144 |
\def\qcmxOrientationQ{y} |
| 145 |
|
| 146 |
\qcmxO{0.81} |
| 147 |
\qcmxI[180+35]{0.57} |
| 148 |
\qcmxRenderQ |
| 149 |
\qcmxClearQ |
| 150 |
|
| 151 |
\def\qcmxOffsetX{42} |
| 152 |
\def\qcmxOffsetY{-68} |
| 153 |
\def\qcmxOffsetZ{-10} |
| 154 |
\def\qcmxOrientationQ{y} |
| 155 |
|
| 156 |
\qcmxI{0.81} |
| 157 |
\qcmxO[180+35]{0.57} |
| 158 |
\qcmxRenderQ |
| 159 |
\qcmxClearQ |
| 160 |
|
| 161 |
\draw[black, ->, thick, >=Stealth] (32,-70,0) -- (10,-75,0) |
| 162 |
node[midway, above, sloped] {\Huge Result: $\ket{00}$}; |
| 163 |
|
| 164 |
\draw[black, ->, thick, >=Stealth] (32,-70,-10) -- (30,-75,0) |
| 165 |
node[midway, below, sloped] {\Huge Result: $\ket{10}$}; |
| 166 |
|
| 167 |
\draw[black, ->, thick, >=Stealth] (42,-70,0) -- (50,-75,0) |
| 168 |
node[midway, above, sloped] {\Huge Result: $\ket{01}$}; |
| 169 |
|
| 170 |
\draw[black, ->, thick, >=Stealth] (42,-70,-10) -- (70,-75,0) |
| 171 |
node[midway, above, sloped] {\Huge Result: $\ket{11}$}; |
| 172 |
|
| 173 |
\node[rotate=90] at (0,-95,0) {\Huge \textbf{Fixing Error}}; |
| 174 |
|
| 175 |
\def\qcmxOffsetX{10} |
| 176 |
\def\qcmxOffsetY{-88} |
| 177 |
\def\qcmxOffsetZ{0} |
| 178 |
\def\qcmxOrientationQ{y} |
| 179 |
\qcmxO{0.81} |
| 180 |
\qcmxI[35]{0.57} |
| 181 |
\qcmxRenderQ |
| 182 |
\qcmxClearQ |
| 183 |
|
| 184 |
\def\qcmxOffsetX{30} |
| 185 |
\def\qcmxOffsetY{-88} |
| 186 |
\def\qcmxOffsetZ{0} |
| 187 |
\def\qcmxOrientationQ{y} |
| 188 |
\qcmxO{0.81} |
| 189 |
\qcmxI[180+35]{0.57} |
| 190 |
\qcmxRenderQ |
| 191 |
\qcmxClearQ |
| 192 |
|
| 193 |
\def\qcmxOffsetX{30} |
| 194 |
\def\qcmxOffsetY{-98} |
| 195 |
\qcmxRenderPauliZQ{y} |
| 196 |
|
| 197 |
\def\qcmxOffsetX{50} |
| 198 |
\def\qcmxOffsetY{-88} |
| 199 |
\def\qcmxOffsetZ{0} |
| 200 |
\def\qcmxOrientationQ{y} |
| 201 |
\qcmxI{0.81} |
| 202 |
\qcmxO[35]{0.57} |
| 203 |
\qcmxRenderQ |
| 204 |
\qcmxClearQ |
| 205 |
|
| 206 |
\def\qcmxOffsetX{50} |
| 207 |
\def\qcmxOffsetY{-98} |
| 208 |
\qcmxRenderPauliXQ{y} |
| 209 |
|
| 210 |
\def\qcmxOffsetX{70} |
| 211 |
\def\qcmxOffsetY{-88} |
| 212 |
\def\qcmxOffsetZ{0} |
| 213 |
\def\qcmxOrientationQ{y} |
| 214 |
\qcmxI{0.81} |
| 215 |
\qcmxO[180+35]{0.57} |
| 216 |
\qcmxRenderQ |
| 217 |
\qcmxClearQ |
| 218 |
|
| 219 |
\def\qcmxOffsetX{69} |
| 220 |
\def\qcmxOffsetY{-98} |
| 221 |
\qcmxRenderPauliXQ{y} |
| 222 |
\def\qcmxOffsetX{71} |
| 223 |
\def\qcmxOffsetY{-98} |
| 224 |
\qcmxRenderPauliZQ{y} |
| 225 |
|
| 226 |
|
| 227 |
\def\qcmxOffsetX{10} |
| 228 |
\def\qcmxOffsetY{-113} |
| 229 |
\def\qcmxOffsetZ{0} |
| 230 |
\def\qcmxOrientationQ{y} |
| 231 |
\qcmxO{0.81} |
| 232 |
\qcmxI[35]{0.57} |
| 233 |
\qcmxRenderQ |
| 234 |
\qcmxClearQ |
| 235 |
|
| 236 |
\node at (20,-108,0) {\Huge$=$}; |
| 237 |
|
| 238 |
\def\qcmxOffsetX{30} |
| 239 |
\def\qcmxOffsetY{-113} |
| 240 |
\def\qcmxOffsetZ{0} |
| 241 |
\def\qcmxOrientationQ{y} |
| 242 |
\qcmxO{0.81} |
| 243 |
\qcmxI[35]{0.57} |
| 244 |
\qcmxRenderQ |
| 245 |
\qcmxClearQ |
| 246 |
|
| 247 |
\node at (40,-108,0) {\Huge$=$}; |
| 248 |
|
| 249 |
\def\qcmxOffsetX{50} |
| 250 |
\def\qcmxOffsetY{-113} |
| 251 |
\def\qcmxOffsetZ{0} |
| 252 |
\def\qcmxOrientationQ{y} |
| 253 |
\qcmxO{0.81} |
| 254 |
\qcmxI[35]{0.57} |
| 255 |
\qcmxRenderQ |
| 256 |
\qcmxClearQ |
| 257 |
|
| 258 |
\node at (60,-108,0) {\Huge$=$}; |
| 259 |
|
| 260 |
\def\qcmxOffsetX{70} |
| 261 |
\def\qcmxOffsetY{-113} |
| 262 |
\def\qcmxOffsetZ{0} |
| 263 |
\def\qcmxOrientationQ{y} |
| 264 |
\qcmxO{0.81} |
| 265 |
\qcmxI[35]{0.57} |
| 266 |
\qcmxRenderQ |
| 267 |
\qcmxClearQ |
| 268 |
\end{qcmx} |
| 269 |
\end{document} |