Every linear map from m qubits to n qubits is the interpretation of some ZX diagram. Diagrams with phases restricted to multiples of pi/2 give exactly the stabilizer maps, up to scalars, and multiples of pi/4 give the Clifford+T maps.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Restricting phases gives the familiar fragments: diagrams with all phases in
2πZ denote, up to nonzero scalars, exactly the stabilizer maps (the setting of
Backens), and phases in 4πZ give the
Clifford+T fragment (Jeandel, Perdrix and Vilmart). The proof
below covers the universality statement only.
Holds when
Arbitrary real phases are allowed for the universality statement; the fragment statements restrict phases and are taken up to nonzero scalars.
Composition and tensor product of diagrams correspond to composition and tensor product of maps, so
it suffices to build a generating set.
Pieces. (a) By the basic rules,
2(I⊗X02,1)(Z01,2⊗I) is CNOT. (b) Single-qubit unitaries: every
U∈U(2) is eiφRz(β)Ry(γ)Rz(δ) by the
ZYZ decomposition. Since Ry(γ)=SRx(γ)S† with
S=diag(1,i), and Rz(θ)=e−iθ/2Zθ1,1,
Rx(θ)=e−iθ/2Xθ1,1, S=Zπ/21,1, every U is a scalar times a
product of one-input, one-output spiders. (c) States and effects: X00,1=2∣0⟩ and
X01,0=2⟨0∣. (d) Scalars: the spider with no wires is the number Zα0,0=1+eiα=2cos(α/2)eiα/2. For ∣θ∣<π, the product
Zθ+2δ0,0Zθ−2δ0,0=2(cosθ+cos2δ)eiθ takes every
modulus in (0,2+2cosθ] as δ varies over [0,π/2); multiplying by copies of
Z00,0=2 reaches every positive modulus with phase θ. Phase π is the square of
phase π/2, and 0=Zπ0,0. So any scalar multiple of a diagram is a diagram.
Square, contractive case. Let A act on N qubits with operator norm ∥A∥≤1. The
block matrix
U=(A(I−A†A)1/2(I−AA†)1/2−A†)
on N+1 qubits (first qubit selecting the block) is unitary (a standard unitary dilation of a contraction), as one checks by multiplying out
U†U and using A†(I−AA†)1/2=(I−A†A)1/2A†, which holds because
A†f(AA†)=f(A†A)A† for every polynomial f and hence for the square root. Then A=(⟨0∣⊗I)U(∣0⟩⊗I).
By exact universality of CNOT and single-qubit gates
(Nielsen and Chuang, section 4.5), U is a finite circuit of pieces
(a) and (b), and the state and effect are pieces (c), so A is a scalar times a diagram, hence a
diagram by (d).
General case. Let M:2m→2n be nonzero (the zero map is 0 times any diagram) and
N=max(m,n). Put s=1/∥M∥ and
A=(∣0⟩⊗(N−n)⊗sM)(⟨0∣⊗(N−m)⊗I2m), a contraction on
N qubits. Then sM=(⟨0∣⊗(N−n)⊗I)A(∣0⟩⊗(N−m)⊗I), and
M is the scalar ∥M∥ times a diagram built from A and pieces (c).
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Universality statement compared with Coecke and Duncan, arXiv 0906.4725, Section 2.4 (Euler-angle single-qubit unitaries, CNOT, map-state duality via the cup); stabilizer fragment compared with Backens, arXiv 1307.7025, Sections 1-3 (universality and completeness for stabilizer diagrams, phases multiples of pi/2); Clifford+T fragment attribution checked against the title and abstract of Jeandel, Perdrix and Vilmart, arXiv 1705.11151. Crossref metadata for all four references matched.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 6fc1abb72e6921d0. Source file knowledge/records/theorem/zx-universality.md in the content repository (readable there once it is public).