openqasm/source/qpics/c3.tex

46 lines
2.0 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 (44.000000, 22.500000);
% Drawing wires
% Line 2: q0 W q[0]
\draw[color=black] (0.000000,15.000000) -- (32.000000,15.000000);
\draw[color=black] (32.000000,15.00000) -- (44.000000,15.00000);
%\draw[color=black] (32.000000,15.500000) -- (44.000000,15.500000);
\draw[color=black] (0.000000,15.000000) node[left] {$q[0]$};
% Line 3: c W c
\draw[color=black] (0.000000,0.000000) -- (44.000000,0.000000);
\draw[color=black] (0.000000,0.000000) node[left] {$c$};
% Done with wires; drawing gates
% Line 4: c / 2
\draw (6.000000, -6.000000) -- (14.000000, 6.000000);
\draw (10.000000, 3.000000) node[right] {$\scriptstyle{2}$};
% Line 5: q0:cwire +c %% 0
\draw (28.000000, 10.00000) node[text width=144pt,below,text centered] {\scriptsize 0};
\draw (32.00000,15.000000) -- (32.00000,0.000000);
%\draw (32.500000,15.000000) -- (32.500000,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);
\draw[->,>=stealth] (32.000000, 10.00000) -- +(270:10.392305pt); % arrowhead
\draw[color=black] (0.000000,-1.5000000) -- (44.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}