Drawing Circuits with qcircuit
\Qcircuit
@C=1em @R=1.6em
\lstick & \qw \qw \multigate1U_12 \qw\qw \qw \qw \qw \qw
\lstick \qw \qw \ghostU_12 \multigate1U_23 \qw\qw \qw \qw \qw
\lstick \qw \qw\qw\ghostU_23 \qw \qw \qw \qw \qw
\lstick \qw \qw ⋮
\lstick \qw \qw⋮ \multigate1U_m-1m-2 \qw \qw \qw
\lstick \qw \qw⋮\ghostU_m-1m-2 \qw \multigate1U_mm-1 \qw
\lstick \qw \qw \qw\qw\ghostU_mm-1 \qw\inputgroupv16.8em.8em\ketψ