0
$\begingroup$

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:

  1. If I insert & \vdots \\, quantikz automatically draws wires connecting the rows above and below.
  2. 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.
  3. 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?

enter image description here

Thanks!

$\endgroup$
0

1 Answer 1

2
$\begingroup$

Use:

\begin{quantikz}[wire types={q,q,q,q,n,q,q,q,q}]

This sets the fifth row to be no wire (n=no wire).

Then on the fifth row, use:

&\vdots&\vdots&\vdots...

as appropriate. You might have to work to get them aligned.

$\endgroup$
2
  • 1
    $\begingroup$ OHH really thank u so much. It worked. $\endgroup$ Commented 19 hours ago
  • $\begingroup$ Glad to be of help! $\endgroup$ Commented 19 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.