Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Learning stabilizer states, p. 2 — T and the signs M|ψ⟩ = ±|ψ⟩ on a basis of T determine |ψ⟩

Proved
BellSampling.Learn.determined_by_signs

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

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-learningstabilizer-states

Let ψ\psiψ be an nnn-qubit stabilizer state with stabilizer set T=T(ψ)T=T(\psi)T=T(ψ), and let b1,…,bn∈Tb_1,\dots,b_n\in Tb1​,…,bn​∈T be linearly independent over F2\mathbb F_2F2​ (hence a basis of TTT). For each jjj let Mj=(−i)#{i:(bj)i=11}σbjM_j=(-i)^{\#\{i:(b_j)_i=11\}}\sigma_{b_j}Mj​=(−i)#{i:(bj​)i​=11}σbj​​ be the corresponding Hermitian Pauli matrix. Then:

  1. each MjM_jMj​ fixes ψ\psiψ up to sign: Mj∣ψ⟩=∣ψ⟩M_j|\psi\rangle=|\psi\rangleMj​∣ψ⟩=∣ψ⟩ or Mj∣ψ⟩=−∣ψ⟩M_j|\psi\rangle=-|\psi\rangleMj​∣ψ⟩=−∣ψ⟩;
  2. ψ\psiψ is determined up to a scalar by these signs: if φ\varphiφ is any nnn-qubit vector with
Mj∣ψ⟩=e ∣ψ⟩ ⟹ Mj∣φ⟩=e ∣φ⟩for all j and all e∈C,M_j|\psi\rangle=e\,|\psi\rangle\ \Longrightarrow\ M_j|\varphi\rangle=e\,|\varphi\rangle\qquad\text{for all } j \text{ and all } e\in\mathbb C,Mj​∣ψ⟩=e∣ψ⟩ ⟹ Mj​∣φ⟩=e∣φ⟩for all j and all e∈C,

then φ=c ψ\varphi=c\,\psiφ=cψ for some c∈Cc\in\mathbb Cc∈C.

This is why learning TTT suffices: step 5 of Algorithm 1 measures the nnn signs, and they pin down ψ\psiψ.

Preamble
import Mathlib
import Definitions.Def_StabilizerRank
import Definitions.Def_BellSampling_Learn_Setting
open StabilizerRank
Formal statement
namespace BellSampling.Learn
theorem determined_by_signs {n : ℕ} (ψ : QState n) (hψ : IsStabilizerState ψ)
    (b : Fin n → PStr n) (hb : ∀ j, b j ∈ stabSet ψ) (hli : LinearIndependent (ZMod 2) b) :
    (∀ j, (pauliH (b j)).mulVec ψ = ψ ∨ (pauliH (b j)).mulVec ψ = -ψ) ∧
    ∀ φ : QState n,
      (∀ j (e : ℂ), (pauliH (b j)).mulVec ψ = e • ψ → (pauliH (b j)).mulVec φ = e • φ) →
      ∃ c : ℂ, φ = c • ψ := by sorry
end BellSampling.Learn
Source
Montanaro, Learning stabilizer states by Bell sampling, arXiv:1707.04012v2, p. 2, Learning stabilizer states, "Determining T suffices to uniquely determine |ψ⟩ … to decide whether M|ψ⟩ = |ψ⟩ or M|ψ⟩ = −|ψ⟩."
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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