I need to draw this picture using tikz. Could you please tell me how can I do that?
Asked
Active
Viewed 411 times
-8
1 Answers
7
For quantum circuits you can use the qcircuit package (which is based on xypic).
\documentclass{article}
\usepackage[braket]{qcircuit}
\begin{document}
\[
\def\p{\parbox{2.3cm}{\centering passive \\ interferometer}}
\def\s{\mbox{squeezer}}
\Qcircuit @C=1em @R=2ex {
\lstick{1} & \multigate{5}{\p} & \gate{\s} & \multigate{1}{\p} & \rstick{\ket{\psi}} \qwa \\
\lstick{2} & \ghost{\p} & \gate{\s} & \ghost{\p} & \qwa \\
\lstick{3} & \ghost{\p} & \qw & \qw & \qwa \\
\lstick{4} & \ghost{\p} & \qw & \qw & \qwa \\
\rstick{\vdots} \\
\lstick{k} & \ghost{\p} & \qw & \qw & \qwa
}
\]
\end{document}
Henri Menke
- 109,596

:P– Guilherme Zanotelli Jan 10 '17 at 09:30