Question: how to install qcircuit in latex?
Answer: Simple Install The simplest way to use qcircuit is to download the file qcircuit. sty and put that file in the same folder as the tex document you are compiling. Within the document preamble, use \usepackage[options]{qcircuit} to enable TeX to compile the circuit.