mirror of https://github.com/openqasm/openqasm.git
54 lines
2.3 KiB
TeX
54 lines
2.3 KiB
TeX
\documentclass{standalone}
|
|
\usepackage{tikz}
|
|
\usetikzlibrary{decorations.pathreplacing,decorations.pathmorphing}
|
|
\usetikzlibrary{fit,quotes}
|
|
\usepackage{yquant, braket}
|
|
|
|
\begin{document}
|
|
\begin{tikzpicture}[scale=1.000000,x=1pt,y=1pt]
|
|
\filldraw[color=white] (0.000000, -7.500000) rectangle (64.000000, 22.500000);
|
|
% Drawing wires
|
|
% Line 2: q W q[0]
|
|
\draw[color=black] (0.000000,15.000000) -- (32.000000,15.000000);
|
|
\draw[color=black] (32.000000,15.00000) -- (64.000000,15.00000);
|
|
% \draw[color=black] (32.000000,15.500000) -- (64.000000,15.500000);
|
|
\draw[color=black] (0.000000,15.000000) node[left] {$q[0]$};
|
|
% Line 3: c W c[0]
|
|
\draw[color=black] (0.000000,0.000000) -- (64.000000,0.000000);
|
|
\draw[color=black] (0.000000,0.000000) node[left] {$c[0]$};
|
|
% Done with wires; drawing gates
|
|
% Line 4: q / 2
|
|
\draw (6.000000, 9.000000) -- (14.000000, 21.000000);
|
|
\draw (12.000000, 18.000000) node[right] {$\scriptstyle{2}$};
|
|
% Line 5: c / 2
|
|
\draw (6.000000, -6.000000) -- (14.000000, 6.000000);
|
|
\draw (12.000000, 3.000000) node[right] {$\scriptstyle{2}$};
|
|
% Line 6: q:cwire +c
|
|
%\draw (31.500000,15.000000) -- (31.500000,0.000000);
|
|
\draw (32.00000,15.000000) -- (32.00000,0.000000);
|
|
\filldraw (32.000000, 15.000000) circle(1.500000pt);
|
|
\begin{scope}
|
|
%\draw[fill=white] (32.000000, 0.000000) circle(3.000000pt);
|
|
\clip (32.000000, 0.000000) circle(3.000000pt);
|
|
\draw (29.000000, 0.000000) -- (35.000000, 0.000000);
|
|
% \draw (32.000000, -3.000000) -- (32.000000, 3.000000);
|
|
\end{scope}
|
|
\draw[fill=white] (26.000000, 9.000000) rectangle (38.000000, 21.000000);
|
|
\draw[very thin] (32.000000, 15.600000) arc (90:150:6.000000pt);
|
|
\draw[very thin] (32.000000, 15.600000) arc (90:30:6.000000pt);
|
|
\draw[->,>=stealth] (32.000000, 9.600000) -- +(80:10.392305pt);
|
|
% Line 7: q / 2
|
|
\draw (50.000000, 9.000000) -- (58.000000, 21.000000);
|
|
\draw (56.000000, 18.000000) node[right] {$\scriptstyle{2}$};
|
|
% Line 8: c / 2
|
|
\draw (50.000000, -6.000000) -- (58.000000, 6.000000);
|
|
\draw (56.000000, 3.000000) node[right] {$\scriptstyle{2}$};
|
|
%\draw (72.000000, 13.00000) node[text width=144pt,below,text centered] {\scriptsize or};
|
|
\draw[->,>=stealth] (32.000000, 10.00000) -- +(270:10.392305pt); % arrowhead
|
|
\draw[color=black] (0.000000,-1.5000000) -- (64.000000,-1.5000000);
|
|
% Done with gates; drawing ending labels
|
|
% Done with ending labels; drawing cut lines and comments
|
|
% Done with comments
|
|
\end{tikzpicture}
|
|
\end{document}
|