CQuIC / qcircuit

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

Add \ncds to do the same as \cds without wire. #38

Open ElieGouzien opened 4 years ago

ElieGouzien commented 4 years ago

As described in the title, it adds a command (\ncds) to do the same as \nds but without wire.

An example is included in the commit (in the documentation). Another example is:

\Qcircuit @C=1em @R=.7em {
    & \gate{\phi} & \qw & \ncds{1}{=} & & \ctrl{1}   & \qw \\
    & \ctrl{-1}   & \qw &             & &\gate{\phi} & \qw
}

Since I don't understand everything in the code I've written, I encourage you to carefully read it.