-
Notifications
You must be signed in to change notification settings - Fork 0
/
circuit.tex
25 lines (23 loc) · 1.03 KB
/
circuit.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
% \documentclass[preview]{standalone}
% If the image is too large to fit on this documentclass use
\documentclass[draft]{beamer}
% img_width = 3, img_depth = 7
\usepackage[size=custom,height=10,width=16,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} : } \barrier[0em]{1} & \qw & \gate{\mathrm{H}} & \meter & \qw & \qw & \qw & \qw\\
\lstick{ {q}_{1} : } & \qw & \gate{\mathrm{S}^\dagger} & \qw & \gate{\mathrm{H}} & \meter & \qw & \qw\\
\lstick{c:} & \lstick{/_{_{2}}} \cw & \cw & \dstick{_{_{0}}} \cw \cwx[-2] & \cw & \dstick{_{_{1}}} \cw \cwx[-1] & \cw & \cw\\
}
\end{equation*}
\end{document}