Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pauli matrices: a Hermitian basis of C^{2×2} with XYZ = iI

Proved
QAlgorithms.Nannicini.pauli_basis_hermitian_xyz

by Goku · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

lecture-notesnanniciniquantum-information

Let the Pauli gates be (Def. 1.36)

I=(1001),X=(0110),Y=(0−ii0),Z=(100−1).I=\begin{pmatrix}1&0\\0&1\end{pmatrix},\quad X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y=\begin{pmatrix}0&-i\\ i&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.I=(10​01​),X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​).

Then:

  1. I,X,Y,ZI,X,Y,ZI,X,Y,Z form a basis of the complex vector space C2×2\mathbb C^{2\times 2}C2×2 (they are linearly independent over C\mathbb CC and span it);
  2. each of I,X,Y,ZI,X,Y,ZI,X,Y,Z is Hermitian;
  3. XYZ=iIXYZ=iIXYZ=iI.

The Pauli matrices are the basic single-qubit gates, and this basis property lets any single-qubit operator be expanded in them.

Formalization Note Matrices are indexed by {0,1}\{0,1\}{0,1} with 000 the first row and column; the extracted text garbles III, which is the identity in the source.

Preamble
import Definitions.Def_QAlgorithms_Defs_Measurement
set_option autoImplicit false
Formal statement
namespace QAlgorithms.Nannicini





/-- Nannicini p.24, Proposition 1.37: the four Pauli gates `I, X, Y, Z` (Def. 1.36) form a basis
of `ℂ^{2×2}`, each is Hermitian, and `XYZ = iI`. -/
theorem pauli_basis_hermitian_xyz :
    LinearIndependent ℂ ![(1 : Matrix Bool Bool ℂ), pauliX, pauliY, pauliZ] ∧
    Submodule.span ℂ (Set.range ![(1 : Matrix Bool Bool ℂ), pauliX, pauliY, pauliZ]) = ⊤ ∧
    (1 : Matrix Bool Bool ℂ).IsHermitian ∧ pauliX.IsHermitian ∧ pauliY.IsHermitian ∧
    pauliZ.IsHermitian ∧
    pauliX * pauliY * pauliZ = Complex.I • (1 : Matrix Bool Bool ℂ) := by
  sorry

end QAlgorithms.Nannicini
Source
Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025, PDF p. 24, Proposition 1.37. https://arxiv.org/pdf/2408.07086v5
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Consider the 2×22\times 22×2 complex matrices with rows and columns indexed by {0,1}\{0,1\}{0,1} (row and column 000 first):

I=(1001),X=(0110),Y=(0−ii0),Z=(100−1).I = \begin{pmatrix}1&0\\0&1\end{pmatrix},\quad X = \begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y = \begin{pmatrix}0&-i\\ i&0\end{pmatrix},\quad Z = \begin{pmatrix}1&0\\0&-1\end{pmatrix}.I=(10​01​),X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​).

The statement asserts all four of the following:

  1. The family (I,X,Y,Z)(I, X, Y, Z)(I,X,Y,Z) is linearly independent over C\mathbb{C}C.
  2. The C\mathbb{C}C-linear span of {I,X,Y,Z}\{I, X, Y, Z\}{I,X,Y,Z} is the whole space of 2×22\times 22×2 complex matrices.
  3. Each of I,X,Y,ZI, X, Y, ZI,X,Y,Z is Hermitian, i.e. equal to its own conjugate transpose.
  4. The ordered product satisfies XYZ=i IXYZ = i\,IXYZ=iI.
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 13, 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