Skip to main content
KetQat

Appearance

Equation · intermediate

Euler decomposition of the Hadamard gate

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π/4  Zπ/2 Xπ/2 Zπ/2H \;=\; e^{-i\pi/4}\; Z_{\pi/2}\, X_{\pi/2}\, Z_{\pi/2}
H  =  e−iπ/4  Zπ/2 Xπ/2 Zπ/2H \;=\; e^{-i\pi/4}\; Z_{\pi/2}\, X_{\pi/2}\, Z_{\pi/2}

Check. Zπ/2=diag⁡(1,i)Z_{\pi/2} = \operatorname{diag}(1, i) and Xπ/2=12(1+i1−i1−i1+i)X_{\pi/2} = \tfrac{1}{2}\begin{pmatrix} 1+i & 1-i \\ 1-i & 1+i \end{pmatrix}. Then Zπ/2Xπ/2Zπ/2=12(1+ii(1−i)i(1−i)−(1+i))=1+i2(111−1)=eiπ/4HZ_{\pi/2} X_{\pi/2} Z_{\pi/2} = \tfrac{1}{2}\begin{pmatrix} 1+i & i(1-i) \\ i(1-i) & -(1+i) \end{pmatrix} = \tfrac{1+i}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} = e^{i\pi/4} H, using i(1−i)=1+ii(1-i) = 1+i and (1+i)/2=eiπ/4/2(1+i)/2 = e^{i\pi/4}/\sqrt{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α)Z_\alpha = \operatorname{diag}(1, e^{i\alpha}) and Xα=HZαHX_\alpha = H Z_\alpha H are the one-input, one-output spiders of the ZX calculus.
Builds on
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Ross Duncan, Simon Perdrix (2009). Graph states and the necessity of Euler decomposition. Mathematical Theory and Computational Practice (CiE 2009), Lecture Notes in Computer Science 5635, 167-177. doi:10.1007/978-3-642-03073-4_18arXiv:0902.0500
  2. Miriam Backens (2014). The ZX-calculus is complete for stabilizer quantum mechanics. New Journal of Physics 16, 093021. doi:10.1088/1367-2630/16/9/093021arXiv:1307.7025

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. 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

  1. 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).