# Color qubit lines using QCircuit

I'd like to color some qubit lines in quantum circuit diagrams drawn using QCircuit as exemplified in the following image:

Can this be done with Qcircuit? As a follow-up, is it possible to do some other modifications like making lines dashed, bold, etc?

The code producing the uncolored image is:

\Qcircuit @C=1em @R=1em {
\lstick{|\psi\rangle} & \qw & \gate{R_x(\theta)} & \ctrl{1} & \meter \\
\lstick{|0\rangle} & \qw {/} & \qw & \gate{U} & \qw & \rstick{|\phi\rangle}
}

• Welcome! You have way better chances of getting a good and timely answer if you post the code that generated the above screen shot. – user121799 Jun 16 at 21:28
• @marmot Thanks, I just added it. This specific circuit is not important though, my question concerns a general method to color the lines in any circuit. If there is one. – PDRX Jun 16 at 21:36

Looking also this link that it is related with Qcircuit https://www.researchgate.net/publication/327592129_Tutorial_on_the_Quantikz_Package, you can see that all the wires are colored only with the black color.