Q-circuit
Q-circuit is a macro package for drawing quantum circuit diagrams in LaTeX. On this page you'll find everything you need to start making quantum circuit diagrams of your own.
Downloads
Installation
Q-circuit requires both amsmath and the Xy-pic package. Some distributions of LaTeX come with these packages and some do not. You can download the Xy-pic package and find installation instructions at http://www.tug.org/applications/Xy-pic/. AMS-LateX is available at http://www.ctan.org/tex-archive/macros/latex/required/amslatex/.
To install Qcircuit simply place the file Qcircuit.tex somewhere in you TeX tree and execute the command that updates the tree. I recommend putting it in $TEXMFLOCAL/tex/latex/Qcircuit.
For my installation of TeX (MiKTeX on Windows XP) this corresponds to placing the file in C:\Program Files\texmf\tex\latex\Qcircuit and executing the command initexmf --update-fndb.
If you're running TeXShop on Mac OS X and your login is Steve (like Steven Flammia), the indicated directory is /users/Steve/Library/texmf/tex/latex/Qcircuit. No update is required.
Linux users will need to locate their base tex directory, try locate texmf. I believe the update command is simply texhash.
Use
To actually use Qcircuit in a document simply place the command \input{Qcircuit} in the preamble.
Getting started
Q-circuit is distributed with a full fledged tutorial that teaches you how to typeset practically any quantum circuit. While a great deal of material is covered, it is presented in a tiered fashion that makes it easy to learn just enough to get the job done.
Still having problems? Check the FAQ.
Copyleft
Q-circuit was written by Steve Flammia and Bryan Eastin and is distributed under the GNU General Public License. Basically, this means you are free to use it in any way that doesn't defraud us or limit other people's rights.
Q-circuit is now very well known among those who typeset quantum circuit diagrams, so Steve and I no longer ask that you acknowledge your use of the package. Thanks to everyone who mentioned us in the past!
Links
University of New Mexico Information Physics
Bryan Eastin's Research Page
Steve Flammia's Research Page
CTAN