ZX diagrams contain CNOT, all single-qubit unitaries, the state |0>, its dual and every scalar; a unitary dilation then writes any linear map as a postselected circuit built from these pieces.
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.
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)
Each step checked: CNOT and the R_z, R_x, R_y = S R_x S^dag, S = Z_{pi/2} identities verified numerically with numpy; scalar construction re-derived ((1+e^{i(theta+2d)})(1+e^{i(theta-2d)}) = 2(cos theta + cos 2d) e^{i theta} covers (0, 2+2cos theta], phase pi as a square, 0 = Z_pi); the Halmos unitary dilation verified numerically for a random 4x4 contraction and the adjoint intertwining identity re-derived; padding of a general m->n map to an N-qubit contraction checked. Exact universality of CNOT plus single-qubit gates cited to Nielsen and Chuang section 4.5 (textbook, not openly readable). Independent derivation in place of Coecke and Kissinger (book).
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 bf349e3ea66a906e. Source file knowledge/records/proof/zx-universality.md in the content repository (readable there once it is public).