CQuIC / qcircuit

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

Integrate qCircuit diagrams with LaTeX figures - captioning #28

Closed Hosseinyeganeh closed 7 years ago

Hosseinyeganeh commented 7 years ago

Hi how I can add caption on circuit

Travis-S commented 7 years ago

@Hosseinyeganeh, you can wrap a latex figure object around qcircuit:

\begin{figure}[h]
\[ \Qcircuit @C=1em @R=.7em {
      & \gate{X} & \qw
}\]
\caption{My caption}
\label{My label}
\end{figure}

If this addresses your concern, please let me know, and I'll close this issue.