forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_iqx.tex
29 lines (27 loc) · 2.49 KB
/
test_iqx.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% \documentclass[preview]{standalone}
% If the image is too large to fit on this documentclass use
\documentclass[draft]{beamer}
% img_width = 7, img_depth = 18
\usepackage[size=custom,height=10,width=39,scale=0.7]{beamerposter}
% instead and customize the height and width (in cm) to fit.
% Large images may run out of memory quickly.
% To fix this use the LuaLaTeX compiler, which dynamically
% allocates memory.
\usepackage[braket, qm]{qcircuit}
\usepackage{amsmath}
\pdfmapfile{+sansmathaccent.map}
% \usepackage[landscape]{geometry}
% Comment out the above line if using the beamer documentclass.
\begin{document}
\begin{equation*}
\Qcircuit @C=1.0em @R=0.2em @!R {
\lstick{ {q}_{0} : } & \gate{\mathrm{H}} & \gate{\mathrm{X}} & \qw & \qw & \qw & \ctrl{1} & \qw & \qw & \qw & \ctrl{1} & \qswap & \ctrl{1} & \ctrl{1} & \multigate{1}{\mathrm{Dcx}}_<<<{0} & \ctrl{1} & \ctrl{1} & \qw & \qw\\
\lstick{ {q}_{1} : } & \qw & \qw & \qw & \qw & \qw & \targ & \qw & \qw & \qw & \ctrl{1} & \qswap \qwx[-1] & \qswap & \ctrl{1} & \ghost{\mathrm{Dcx}}_<<<{1} & \multigate{1}{\mathrm{Dcx}}_<<<{0} & \ctrl{1} & \qw & \qw\\
\lstick{ {q}_{2} : } & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \targ & \qw & \qswap \qwx[-1] & \qswap & \qw & \ghost{\mathrm{Dcx}}_<<<{1} & \multigate{1}{\mathrm{Dcx}}_<<<{0} & \qw & \qw\\
\lstick{ {q}_{3} : } & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qswap \qwx[-1] & \qw & \qw & \ghost{\mathrm{Dcx}}_<<<{1} & \qw & \qw\\
\lstick{ {q}_{4} : } & \gate{\mathrm{Z}} & \gate{\mathrm{S}} & \qw & \qw & \qw & \gate{\mathrm{S^\dagger}} & \qw & \qw & \qw & \gate{\mathrm{T}} & \gate{\mathrm{T^\dagger}} & \gate{\mathrm{P}\,(\mathrm{\frac{\pi}{2}})} & \gate{\mathrm{U_1}\,(\mathrm{\frac{\pi}{2}})} & \qw & \qw & \qw & \qw & \qw\\
\lstick{ {q}_{5} : } & \ctrl{1} & \ctrl{1} & \dstick{\hspace{2.0em}\mathrm{U_1}\,(\mathrm{\frac{\pi}{2}})} \qw & \qw & \qw & \ctrl{1} & \dstick{\hspace{2.0em}\mathrm{P}\,(\mathrm{\frac{\pi}{2}})} \qw & \qw & \qw & \gate{\mathrm{Y}} & \gate{\mathrm{R_X}\,(\mathrm{\frac{\pi}{3}})} & \multigate{1}{\mathrm{R_{ZX}}\,(\mathrm{\frac{\pi}{2}})}_<<<{0} & \gate{\mathrm{U_2}\,(\mathrm{\frac{\pi}{2},\frac{\pi}{2}})} \barrier[0em]{1} & \qw & \gate{\mathrm{\left|0\right\rangle}} & \qw & \qw & \qw\\
\lstick{ {q}_{6} : } & \control\qw & \control \qw & \qw & \qw & \qw & \control \qw & \qw & \qw & \qw & \qw & \qw & \ghost{\mathrm{R_{ZX}}\,(\mathrm{\frac{\pi}{2}})}_<<<{1} & \qw & \qw & \qw & \qw & \qw & \qw\\
}
\end{equation*}
\end{document}