CQuIC / qcircuit

A quantum circuit drawing application
GNU General Public License v2.0
168 stars 43 forks source link

Draw multi-wire with label not working #45

Closed maximilian-schwaerzler closed 1 year ago

maximilian-schwaerzler commented 2 years ago

When trying to draw a multi-wire with a label, either like this: \Qcircuit @C=1em @R=.7em { & {/} \ustick{n} & \targ & \gate{U} & \qw \\ & \qw & \ctrl{-1} & \qw & \qw \\ & \qw & \ctrl{-1} & \ctrl{-2} & \qw \\ & \qw & \ctrl{-1} & \qw & \qw } which gives this: error1.pdf

Or like this: \Qcircuit @C=1em @R=.7em { & \ustick{n} {/} & \targ & \gate{U} & \qw \\ & \qw & \ctrl{-1} & \qw & \qw \\ & \qw & \ctrl{-1} & \ctrl{-2} & \qw \\ & \qw & \ctrl{-1} & \qw & \qw } which gives this: error2.pdf

None of these are satisfying. Am I doing something wrong?

The source file: qcircuit_test.zip

What I want is something like that: InkedDeutsch-Jozsa-algorithm-quantum-circuit