[Tex/LaTex] What’s a good package for typesetting quantum circuits


I want to typeset things that look like

enter image description here

I'm already aware of

  • Q-circuit, which has nice custom macros for this purpose, but is based on the relatively slow and clunky XyPic
  • TikZ, which I can use to manually set things up (that's how the picture I've hotlinked was drawn)

Are there any other alternatives I should know about?

Best Answer

Apparently Nielsen and Chuang used qasm2circ to produce the figures in Quantum Computation and Quantum Information.