Direct computation in the computational basis. Spiders are sums of two terms indexed by a bit, contraction along a wire forces the bits to agree, and the remaining rules reduce to small matrix identities.
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.
Write Zαa,b=∑x∈{0,1}eiαx∣x⟩⊗b⟨x∣⊗a.
1. Fusion. Contracting k wires between the two spiders gives
since ⟨y∣x⟩k=δxy for k≥1. A self-loop contracts an output with an input of
the same term, contributing ⟨x∣x⟩=1, so it can be removed. For X spiders conjugate by
Hadamards (rule 3), which commute with contraction because H is real and symmetric, so
∑jHijHjk=δik along each internal wire.
2. Identity.Z01,1=∣0⟩⟨0∣+∣1⟩⟨1∣=I, and X01,1=∣+⟩⟨+∣+∣−⟩⟨−∣=I.
3. Colour change.H∣x⟩=∣±⟩ for x=0,1, so
H⊗bZαa,bH⊗a=∣+⟩⊗b⟨+∣⊗a+eiα∣−⟩⊗b⟨−∣⊗a,
using H†=H. And H2=I by multiplying the matrices.
4. π-copy.Xπ1,1=∣+⟩⟨+∣−∣−⟩⟨−∣ is the Pauli X, which maps
∣x⟩↦∣1−x⟩. Hence
Zα1,bX=∑xeiαx∣x⟩⊗b⟨1−x∣=∑yeiα(1−y)∣1−y⟩⊗b⟨y∣=eiαX⊗b∑ye−iαy∣y⟩⊗b⟨y∣=eiαX⊗bZ−α1,b.
5. Copy. The first two identities are immediate from the definition. For the last,
X00,1=∣+⟩+∣−⟩=2∣0⟩.
6. Bialgebra. Both sides are maps from two qubits to two qubits; compare them on basis states.
First, X02,1=∣+⟩(⟨+∣⟨+∣)+∣−⟩(⟨−∣⟨−∣) sends
∣x1x2⟩↦21[(∣+⟩+(−1)x1+x2∣−⟩)]=21∣x1⊕x2⟩,
since ⟨−∣x⟩=(−1)x/2. So the left side sends
∣x1x2⟩↦21∣x1⊕x2⟩∣x1⊕x2⟩. On the right side,
Z01,2⊗Z01,2 sends ∣x1x2⟩↦∣x1x1x2x2⟩, the middle swap reorders
this to ∣x1x2x1x2⟩, and X02,1⊗X02,1 gives
21∣x1⊕x2⟩∣x1⊕x2⟩. Multiplying by 2 matches the left side.
The same calculation shows 2(Z01,2⊗I) followed by (I⊗X02,1) is the
CNOT gate with the Z spider on the control, ∣x1x2⟩↦∣x1⟩∣x1⊕x2⟩. These
computations are the standard ones of Coecke and Kissinger.
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)
All six rules verified by direct computation and numerically with numpy using the unnormalised spiders: fusion (a1=1,b1=1,k=1,a2=1,b2=2), identity, colour change on a 2->3 spider, X_pi = Pauli X and the pi-copy rule with phase e^{i alpha}, copy rules and X^{0,1}_0 = sqrt2 |0>, the bialgebra rule with its sqrt2 factor, and the CNOT from sqrt2 (I x X^{2,1})(Z^{1,2} x I). Coecke and Kissinger (Picturing Quantum Processes, 2017) is a book not openly readable; independent derivation used.
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 9fbd594d113cdeac. Source file knowledge/records/proof/zx-spider-fusion.md in the content repository (readable there once it is public).