Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 13: exhaustive qubit IPS shapes

Open
QAlgorithms.Papers.Independent.Intake100.P70.qubit_ips_three_shapes

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

prove2quantum

Let E\mathcal EE be a CPTP qubit channel and CCC a maximum convex preserved code in the isometric order. Write D2\mathcal D_2D2​ for all qubit density matrices, Ddiag\mathcal D_{\mathrm{diag}}Ddiag​ for those diagonal in the computational basis, and I2I_2I2​ for the identity. Then

C≃1D2orC≃1DdiagorC≃1{I2/2}.C\simeq_1\mathcal D_2\quad\text{or}\quad C\simeq_1\mathcal D_{\mathrm{diag}}\quad\text{or}\quad C\simeq_1\{I_2/2\}.C≃1​D2​orC≃1​Ddiag​orC≃1​{I2​/2}.

These are shapes {2}\{2\}{2}, {1,1}\{1,1\}{1,1} and {1}\{1\}{1}. This classifies entire IPS shapes and does not forbid preserved proper subsets.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P70
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter

namespace QAlgorithms.Papers.Independent.Intake100.P70

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Dependency50.P21 (channelAdjoint)

open QAlgorithms.Papers.Independent.Information100.P07 (positivePart negativePart)

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

open QAlgorithms.Papers.Independent.Information100.P34 (supportProjector)

/-- PDF p.11, Example 13: exhaustive algebraic shapes of maximum qubit codes.
The three state sets represent M2, diagonal matrices, and scalar identity.
Arbitrary proper disks or other subcodes are not ruled out as preserved subsets. -/
theorem qubit_ips_three_shapes (E : Superop (Fin 2) (Fin 2)) (hE : IsChannel E)
    (C : Set (Op (Fin 2))) (hC : MaximumCode (Preserved E) C) :
    OneIsometric C {rho : Op (Fin 2) | IsDensityMatrix rho} ∨
    OneIsometric C {rho : Op (Fin 2) | IsDensityMatrix rho ∧ ∀ i j, i ≠ j → rho i j = 0} ∨
    OneIsometric C {((1 / 2 : ℂ) • (1 : Op (Fin 2)))} := by sorry

end QAlgorithms.Papers.Independent.Intake100.P70

end
Source
Information preserving structures: A general framework for quantum zero-error information, arXiv:1006.1358v1, PDF p. 11, Example 13: exhaustive qubit IPS shapes
Read-back

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

Let EEE be a map on complex 2×22\times22×2 matrices admitting a finite representation E(X)=∑aKaXKa†E(X)=\sum_a K_aXK_a^\daggerE(X)=∑a​Ka​XKa†​ with ∑aKa†Ka=12\sum_a K_a^\dagger K_a=1_2∑a​Ka†​Ka​=12​, and write ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. Call a set a code if it is convex and all its members are positive semidefinite matrices of trace 111. Say that EEE preserves a code DDD if ∥E(pX−(1−p)Y)∥1=∥pX−(1−p)Y∥1\|E(pX-(1-p)Y)\|_1=\|pX-(1-p)Y\|_1∥E(pX−(1−p)Y)∥1​=∥pX−(1−p)Y∥1​ for all X,Y∈DX,Y\in DX,Y∈D and p∈[0,1]p\in[0,1]p∈[0,1]. Here two sets D1,D2D_1,D_2D1​,D2​ are one-isometric if there is a complex linear map fff on the full matrix spaces such that f(X)=0f(X)=0f(X)=0 and X∈span⁡CD1X\in\operatorname{span}_{\mathbb C}D_1X∈spanC​D1​ imply X=0X=0X=0, such that f(D1)=D2f(D_1)=D_2f(D1​)=D2​, and such that ∥pf(X)−(1−p)f(Y)∥1=∥pX−(1−p)Y∥1\|pf(X)-(1-p)f(Y)\|_1=\|pX-(1-p)Y\|_1∥pf(X)−(1−p)f(Y)∥1​=∥pX−(1−p)Y∥1​ for all X,Y∈D1X,Y\in D_1X,Y∈D1​ and p∈[0,1]p\in[0,1]p∈[0,1]. Suppose CCC is a code preserved by EEE, and suppose that for every code DDD preserved by EEE and every proper subset S⊊DS\subsetneq DS⊊D, CCC is not one-isometric to SSS. Then at least one of the following holds: CCC is one-isometric to the set of all 2×22\times22×2 density matrices; CCC is one-isometric to the set of all 2×22\times22×2 density matrices whose off-diagonal entries vanish; or CCC is one-isometric to the singleton {1212}\{\tfrac12 1_2\}{21​12​}. The disjunction does not assert that exactly one alternative holds.

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