Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

S, CZ and x rotations generate all qubit unitaries up to global phase

Open
QAlgorithms.Papers.Independent.Intake100.P83.noSymmetryThreeGates

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥1n\ge1n≥1 and let UUU be any unitary on nnn qubits. Gates may act on arbitrary named sites. Let F\mathcal FF contain the single-qubit gate S=diag⁡(1,i)S=\operatorname{diag}(1,i)S=diag(1,i), the two-qubit controlled-Z gate, and the single-qubit rotations eiθσxe^{i\theta\sigma_x}eiθσx​ for 0≤θ<2π0\le\theta<2\pi0≤θ<2π. There exist a phase z∈Cz\in\mathbb Cz∈C and an exact finite product WWW of these gates such that

∣z∣=1,U=zW.|z|=1,\qquad U=zW.∣z∣=1,U=zW.

This is the no-symmetry specialization of the three-family synthesis principle, including the one-qubit case.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P83
Formal statement
noncomputable section

open scoped BigOperators ComplexConjugate Matrix Kronecker Manifold ContDiff

attribute [local instance] Classical.propDecidable

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

namespace QAlgorithms.Papers.Independent.Intake100.P83

variable {A G : Type*} [Fintype A] [DecidableEq A]

/-- PDF pp.8-9: S, CZ and arbitrary x rotations exactly generate every n-qubit unitary
up to a single global phase; n=1 is included. -/
theorem noSymmetryThreeGates (n : ℕ) (hn : 1 ≤ n)
    (U : Op (Words Bool n)) (hU : U ∈ Matrix.unitaryGroup (Words Bool n) ℂ) :
    ∃ z : ℂ, ‖z‖ = 1 ∧ ∃ W ∈ finiteGateProducts
      (sFamily n ∪ standardCZFamily n ∪ rotationFamily (liftOneQubitMatrix QAlgorithms.pauliX) n),
      U = z • W := by sorry

end QAlgorithms.Papers.Independent.Intake100.P83

end
Source
Theory of Quantum Circuits with Abelian Symmetries, arXiv:2302.12466v3, PDF p. 9, V example, unnumbered: S, CZ and x rotations
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number n≥1n\ge1n≥1 and every unitary matrix UUU indexed by Boolean words of length nnn, there exist a complex number zzz with ∣z∣=1|z|=1∣z∣=1 and a matrix WWW such that U=zWU=zWU=zW, where WWW is an exact finite product of gates of these three forms: the one-site gate S=diag⁡(1,i)S=\operatorname{diag}(1,i)S=diag(1,i) on any selected site; the two-site gate I−2∣11⟩⟨11∣I-2|11\rangle\langle11|I−2∣11⟩⟨11∣ on any two distinct selected sites; and the one-site gate exp⁡(iθX)\exp(i\theta X)exp(iθX) on any selected site, with 0≤θ<2π0\le\theta<2\pi0≤θ<2π and X=(0110)X=\begin{pmatrix}0&1\\1&0\end{pmatrix}X=(01​10​). Each gate is embedded as the identity on all other sites: its matrix entry is the selected-site matrix entry if the two indexing words agree on every other site, and zero otherwise. The finite product is the product of the reversed gate list, and the empty list gives the identity. The assertion includes n=1n=1n=1, for which there are no embeddings of a two-site gate.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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