A set of rewrite rules for ZX diagrams is sound if every rule preserves the interpretation, and complete for a class of diagrams if, whenever two diagrams in the class satisfy , can be transformed into by finitely many applications of the rules. The following are proved.
- Stabilizer fragment. With all phases multiples of , the rules of the calculus, including the Euler decomposition of the Hadamard gate, are complete (Backens). The proof rewrites every diagram to a normal form made of a graph state and local Clifford operations.
- The original rules are not complete in general. With arbitrary phases the rule set of Coecke and Duncan, even with the Euler decomposition added, is incomplete (Schröder de Witt and Zamdzhiev).
- Clifford+T fragment. With phases multiples of , adding two new axioms gives a complete rule set (Jeandel, Perdrix and Vilmart); the proof goes through a translation to the ZW calculus, a graphical calculus for integer matrices.
- All pure-qubit diagrams. Complete axiomatisations for diagrams with arbitrary phases were given by Hadzihasanovic, Ng and Wang, and an axiomatisation in which every rule has a physical reading and all but two are proved necessary by Vilmart.
Completeness is an existence statement: it says a rewrite sequence exists, not that one can be found efficiently. Deciding equality of general diagrams is at least as hard as deciding equality of quantum circuits.