Demo at quantikz.krastanov.org. Library at github.com/Krastanov/Quantikz.
Quantikz.jl now supports qubits, ancillas, classical bits, and arbitrary gates and measurements, conditional or not on both qubits and classical bits. It can generate png, pdf, or tex files. It does not require anything to be preinstalled on your computer (it depends on Tectonic.jl and GhostScript.jl for rendering TeX, which are automatically installed).
I decided to play with the Genie.jl web framework and make a humble online demo, which was surprisingly easy. You see the demo at quantikz.krastanov.org (rather slow as it runs on a pretty small server).
This drawing library is already used by QuantumClifford.jl. The drawing library is not blazingly fast, as it uses TeX.
Here is an example:
[
CNOT(1,2), CPHASE(2,3), SWAP(3,4),
H(5), P(6), Id(7),
U("\\frac{\\phi}{4}",8),
Measurement("X",1),
Measurement([2,3],2),
ClassicalDecision("U",[3,5],2),
Measurement("M",[5,6],1),
MultiControlU("G",[2,8],[7,3],[4,5,6])]