This library (based on the great TikZ and TikZ-cd packages)
allows you to typeset ZX-calculus directly in LaTeX. It comes
with many pre-built wire shapes, a highly customizable node
style (with multiple flavours for putting labels inside or
outside nodes), and a "debugging" mode to avoid getting lost in
big diagrams.