The Hadamard gate equals, up to the global phase exp(-i pi/4), a Z phase of pi/2, an X phase of pi/2 and another Z phase of pi/2. In the ZX calculus this is the rule that relates Hadamard boxes to spiders.
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.
H=e−iπ/4Zπ/2Xπ/2Zπ/2
H=e−iπ/4Zπ/2Xπ/2Zπ/2
Check.Zπ/2=diag(1,i) and
Xπ/2=21(1+i1−i1−i1+i). Then
Zπ/2Xπ/2Zπ/2=21(1+ii(1−i)i(1−i)−(1+i))=21+i(111−1)=eiπ/4H, using i(1−i)=1+i
and (1+i)/2=eiπ/4/2.
Use. Read as a diagram rewrite, this lets a Hadamard box be replaced by three spiders, so
diagrams can be written with spiders alone. Duncan and Perdrix
showed that this equation is not derivable from the original rules of the calculus and is needed
to reason about graph states; it is part of the rule set that
Backens proved complete for stabilizer diagrams.
Holds when
Zα=diag(1,eiα) and Xα=HZαH are the one-input, one-output spiders of the ZX calculus.
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)
Equation and the worked matrix check (Z_{pi/2}, X_{pi/2}, product = e^{i pi/4} H) verified numerically with numpy. Claims compared with Duncan and Perdrix, arXiv 0902.0500 (abstract and Section 6: Euler decomposition not derivable from the earlier axioms; equivalent to local complementation for graph states) and Backens, arXiv 1307.7025 (Section 2 rule set includes the Euler decomposition; completeness for stabilizer diagrams). Crossref metadata for both 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 2246397c52a82e16. Source file knowledge/records/equation/hadamard-euler-decomposition.md in the content repository (readable there once it is public).