Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 2 — every single-qubit unitary is a product of a constant number of Hadamard gates and phase gates Λ(e^{iθ})

Proved
CliffordTApprox.Ancilla.decomposition

by mikedeng1 · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

euler-decompositionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-circuitssingle-qubit-unitary

Let H=12(111−1)H = \frac{1}{\sqrt 2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2​1​(11​1−1​) be the Hadamard gate and Λ(eiθ)=diag(1,eiθ)\Lambda(e^{i\theta}) = \mathrm{diag}(1, e^{i\theta})Λ(eiθ)=diag(1,eiθ) the phase gate, and let X=H Λ(eiπ) HX = H\,\Lambda(e^{i\pi})\,HX=HΛ(eiπ)H (the bit flip). For every 2×22\times 22×2 unitary matrix UUU there are real numbers θ,φ1,φ2,φ3\theta, \varphi_1, \varphi_2, \varphi_3θ,φ1​,φ2​,φ3​ such that

U=Λ(eiθ) X Λ(eiθ) X  Λ(eiφ1) H Λ(eiφ2) H Λ(eiφ3).U = \Lambda(e^{i\theta})\,X\,\Lambda(e^{i\theta})\,X\;\Lambda(e^{i\varphi_1})\,H\,\Lambda(e^{i\varphi_2})\,H\,\Lambda(e^{i\varphi_3}).U=Λ(eiθ)XΛ(eiθ)XΛ(eiφ1​)HΛ(eiφ2​)HΛ(eiφ3​).

Thus every single-qubit unitary, including its global phase, is a product of seven phase gates and six Hadamard gates in a fixed pattern.

This is the reduction with which the paper passes from the phase gate Λ(eiφ)\Lambda(e^{i\varphi})Λ(eiφ) to an arbitrary single-qubit unitary: an approximation of each phase gate gives an approximation of UUU.

Formalization Note. The equality is exact, between complex matrices on a one-qubit register; the factor Λ(eiθ)XΛ(eiθ)X\Lambda(e^{i\theta})X\Lambda(e^{i\theta})XΛ(eiθ)XΛ(eiθ)X equals eiθIe^{i\theta}IeiθI and carries the global phase. The paper cites the solution to Problem 8.1 of Kitaev–Shen–Vyalyi for this fact and gives no explicit pattern; the pattern above is one admissible choice.

Preamble
import Mathlib
import Definitions.Def_CliffordTApprox_Ancilla_Setting
Formal statement
namespace CliffordTApprox.Ancilla

open QAlgorithms
open QAlgorithms.Papers.Independent.Renew46.P12

/-- §2, p. 2: every single-qubit unitary `U ∈ U(2)` (global phase included) is a product of
Hadamard gates `H` and phase gates `Λ(e^{iθ})`, with a fixed pattern of 7 phase gates and 6
Hadamards: `U = Λ(θ) X Λ(θ) X Λ(φ₁) H Λ(φ₂) H Λ(φ₃)` where `X = H Λ(e^{iπ}) H`. -/
theorem decomposition (U : Matrix (Qubits 1) (Qubits 1) ℂ)
    (hU : U ∈ Matrix.unitaryGroup (Qubits 1) ℂ) :
    ∃ θ φ₁ φ₂ φ₃ : ℝ,
      U = phaseGate θ * (oneQubit hadamard * phaseGate Real.pi * oneQubit hadamard) *
        phaseGate θ * (oneQubit hadamard * phaseGate Real.pi * oneQubit hadamard) *
        phaseGate φ₁ * oneQubit hadamard * phaseGate φ₂ * oneQubit hadamard * phaseGate φ₃ := by sorry

end CliffordTApprox.Ancilla
Source
Kliuchnikov, Maslov, Mosca, Asymptotically optimal approximation of single qubit unitaries by Clifford and T circuits using a constant number of ancillary qubits, arXiv:1212.0822v2, p. 2, §2 (citing Problem 8.1 of Kitaev, Shen, Vyalyi)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 22, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me