Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Two-sparse Pauli eigenspace states

Open
QAlgorithms.Papers.Independent.Extend50.P46.example3_6_first

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

prove2quantum

Let PAP_APA​ be any nonidentity Pauli on nnn qubits, and let u∈{+1,−1}u\in\{+1,-1\}u∈{+1,−1}. Then

ρu=I+uPA2n\rho_u=\frac{I+uP_A}{2^n}ρu​=2nI+uPA​​

is a density matrix with exactly two nonzero Pauli coefficients. The matrix Πu=(I+uPA)/2\Pi_u=(I+uP_A)/2Πu​=(I+uPA​)/2 is the orthogonal projector onto the uuu eigenspace, and ρu=21−nΠu\rho_u=2^{1-n}\Pi_uρu​=21−nΠu​.

These examples supply the sparse input states used in channel-prediction lower bounds. The nonidentity hypothesis excludes the empty nonidentity sector at n=0n=0n=0.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P46
Formal statement
noncomputable section

open MeasureTheory

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P46

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.18, Example 3.6 first bullet: both signs, normalized density,
exactly two Pauli coefficients, and proportionality to the appropriate projector. -/
theorem example3_6_first {n : ℕ} (A : ErrorMitigation.PauliIndex n) (hA : A ≠ (fun _ => .I))
    (minus : Bool) :
    IsDensityMatrix (eigenspaceState A minus) ∧
    supportCount (ErrorMitigation.pauliStateVector (eigenspaceState A minus)) = 2 ∧
    let P : (Matrix (Qubits n) (Qubits n) ℂ) := (1/2 : ℂ) •
      (1 + (if minus then (-1 : ℂ) else 1) • pauliOps A)
    P.IsHermitian ∧ P * P = P ∧
    eigenspaceState A minus = ((2 : ℂ) / (2 : ℂ)^n) • P ∧
    LinearMap.range (Matrix.toLin' P) =
      LinearMap.ker (Matrix.toLin'
        (pauliOps A - (if minus then (-1 : ℂ) else 1) • (1 : (Matrix (Qubits n) (Qubits n) ℂ)))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P46

end
Source
Learning Quantum Processes and Hamiltonians via the Pauli Transfer Matrix, arXiv:2212.04471v2, PDF p. 18, Example 3.6, first bullet: two-sparse Pauli eigenspace state
Read-back

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

For every natural number nnn, every string AAA of nnn symbols from {I,X,Y,Z}\{I,X,Y,Z\}{I,X,Y,Z} that is not identically III, and every Boolean value minus\mathrm{minus}minus, put σ=−1\sigma=-1σ=−1 if minus\mathrm{minus}minus is true and σ=1\sigma=1σ=1 otherwise. On C{0,1}n\mathbb C^{\{0,1\}^n}C{0,1}n, write PB=⨂q=0n−1BqP_B=\bigotimes_{q=0}^{n-1}B_qPB​=⨂q=0n−1​Bq​ for any Pauli string BBB, using

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 ρ=2−n(I+σPA)\rho=2^{-n}(I+\sigma P_A)ρ=2−n(I+σPA​) is positive semidefinite with trace 111, and exactly two Pauli strings BBB have Re⁡tr⁡(PBρ)≠0\operatorname{Re}\operatorname{tr}(P_B\rho)\ne0Retr(PB​ρ)=0. Moreover, defining P=12(I+σPA)P=\tfrac12(I+\sigma P_A)P=21​(I+σPA​), all of the following hold:

P†=P,P2=P,ρ=22nP,range⁡(P)=ker⁡(PA−σI),P^\dagger=P,\qquad P^2=P,\qquad \rho=\frac{2}{2^n}P,\qquad \operatorname{range}(P)=\ker(P_A-\sigma I),P†=P,P2=P,ρ=2n2​P,range(P)=ker(PA​−σI),

where range and kernel refer to the complex-linear maps given by these matrices. The hypothesis on AAA cannot be satisfied when n=0n=0n=0.

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