I'm building a quantum circuit using the quantikz
package in LaTeX. In my design, I need to indicate that there are more qubits (not drawn explicitly) between two visible lines. I want to use vertical dots \vdots
to show this.
However, I'm running into some issues:
- If I insert
& \vdots \\
,quantikz
automatically draws wires connecting the rows above and below. - If I avoid using
\qw
in that row to suppress the wires, the\vdots
ends up aligned to the left, not centered in the column. - I've tried workarounds like
\push{\vdots}
,\hspace
,\rlap
, or even\multigate{0}{\vdots}
, but these either produce misaligned dots or still draw unwanted wires.
What I want:
- Insert
\vdots
between rows to represent omitted qubits. - Make sure it is horizontally centered in the column (aligned with gates or wires above and below).
- Ensure that no wire is drawn vertically through the
\vdots
row.
Is there a reliable or recommended way to achieve this with quantikz
?
Thanks!