Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Equality of one-shot reconstruction expectations

Open
QAlgorithms.Papers.Independent.Intakethird100.P66.twoSidedFactorizedAncilla

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let E\mathcal EE be any CPTP channel on n≥1n\ge1n≥1 qubits. Use the same named uniform frame on reference and output: global Clifford, product single-qubit Clifford, Pauli-6, or a fixed partition into smaller Clifford blocks. Choices on the two registers are independent. Write Qu,b=Uu†∣b⟩⟨b∣UuQ_{u,b}=U_u^\dagger|b\rangle\langle b|U_uQu,b​=Uu†​∣b⟩⟨b∣Uu​ and let M−1\mathcal M^{-1}M−1 be the actual complex-linear inverse measurement channel. With ρΛ=2−nΛE\rho_{\Lambda}=2^{-n}\Lambda_{\mathcal E}ρΛ​=2−nΛE​, define

ρa=Eu,v∑b,cTr⁡[ρΛ(Qu,b⊗Qv,c)]M−1(Qu,b)⊗M−1(Qv,c),\rho_a=\mathbb E_{u,v}\sum_{b,c}\operatorname{Tr}[\rho_{\Lambda}(Q_{u,b}\otimes Q_{v,c})] \mathcal M^{-1}(Q_{u,b})\otimes\mathcal M^{-1}(Q_{v,c}),ρa​=Eu,v​b,c∑​Tr[ρΛ​(Qu,b​⊗Qv,c​)]M−1(Qu,b​)⊗M−1(Qv,c​), ρt=Eu,v∑cTr⁡[E(Qu,0)Qv,c]M−1(Qu,0T)⊗M−1(Qv,c).\rho_t=\mathbb E_{u,v}\sum_c\operatorname{Tr}[\mathcal E(Q_{u,0})Q_{v,c}] \mathcal M^{-1}(Q_{u,0}^{T})\otimes\mathcal M^{-1}(Q_{v,c}).ρt​=Eu,v​c∑​Tr[E(Qu,0​)Qv,c​]M−1(Qu,0T​)⊗M−1(Qv,c​).

For Pauli-6, the preparation-frame relabeling bit lets fixed outcome zero prepare each of the six eigenstates uniformly. Then

ρt=ρa.\rho_t=\rho_a.ρt​=ρa​.

This equality concerns reconstruction expectations for one fresh repetition per choice. It does not identify individual random snapshots, empirical matrices, or repeated-circuit experiments. Pauli-YYY transposition is an ensemble permutation exchanging the two eigenprojectors.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P66
Formal statement
noncomputable section

open MeasureTheory QAlgorithms ClassicalShadows

open scoped Matrix ComplexConjugate ENNReal

namespace QAlgorithms.Papers.Independent.Intakethird100.P66

attribute [local instance] Classical.propDecidable Classical.typeDecidableEq

/-- Appendix B, PDF pp.14-15, B1-B4: equality of expectation matrices for
one fresh repetition with independent choices on the two registers. The
printed Pauli-Y pointwise transpose equality is replaced by an ensemble
outcome permutation. No empirical-data equality is asserted. -/
theorem twoSidedFactorizedAncilla (n : ℕ) (hn : 0 < n) (F : BasisChoiceFrame n)
    (hF : PaperFrame F) (E : Superop (Qubits n) (Qubits n)) (hE : IsChannel E) :
    twoSidedReconstruction F E = ancillaReconstruction F E := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P66

end
Source
Classical Shadows for Quantum Process Tomography on Near-term Quantum Computers, arXiv:2110.02965v3, PDF p. 15, Appendix B, B1-B4
Read-back

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

For every natural number n>0n>0n>0, every basis-choice frame FFF on nnn qubits satisfying the structural condition described below, and every channel E\mathcal EE from nnn-qubit matrices to nnn-qubit matrices, the following two matrices on 2n2n2n qubits are equal. A basis-choice frame supplies a finite nonempty type AAA of basis choices and a matrix Qa,bQ_{a,b}Qa,b​ for each a∈Aa\in Aa∈A, b∈{0,1}nb\in\{0,1\}^nb∈{0,1}n. Define

MF(X)=1∣A∣∑a∈A∑b∈{0,1}nTr⁡(Qa,bX) Qa,b,\mathcal M_F(X)=\frac1{|A|} \sum_{a\in A}\sum_{b\in\{0,1\}^n} \operatorname{Tr}(Q_{a,b}X)\,Q_{a,b},MF​(X)=∣A∣1​a∈A∑​b∈{0,1}n∑​Tr(Qa,b​X)Qa,b​,

and let TF=MF−1T_F=\mathcal M_F^{-1}TF​=MF−1​ if MF\mathcal M_FMF​ is injective, using its inverse complex linear map in that case, and let TFT_FTF​ be the zero linear map otherwise. With

(CE)(u,v),(u′,v′)=2−n[E(∣u⟩⟨u′∣)]v,v′,(C_{\mathcal E})_{(u,v),(u',v')}= 2^{-n}\bigl[\mathcal E(|u\rangle\langle u'|)\bigr]_{v,v'},(CE​)(u,v),(u′,v′)​=2−n[E(∣u⟩⟨u′∣)]v,v′​,

the asserted equality is

1∣A∣2∑a,c∈A∑d∈{0,1}nRe⁡Tr⁡ ⁣(Qc,d E(Qa,0n)) TF(Qa,0nT)⊗TF(Qc,d)=1∣A∣2∑a,c∈A∑b,d∈{0,1}nRe⁡Tr⁡ ⁣((Qa,b⊗Qc,d)CE) TF(Qa,b)⊗TF(Qc,d),\frac1{|A|^2} \sum_{a,c\in A}\sum_{d\in\{0,1\}^n} \operatorname{Re}\operatorname{Tr}\!\left( Q_{c,d}\,\mathcal E(Q_{a,0^n})\right) \,T_F(Q_{a,0^n}^{\mathsf T})\otimes T_F(Q_{c,d}) = \frac1{|A|^2} \sum_{a,c\in A}\sum_{b,d\in\{0,1\}^n} \operatorname{Re}\operatorname{Tr}\!\left( (Q_{a,b}\otimes Q_{c,d})C_{\mathcal E}\right) \,T_F(Q_{a,b})\otimes T_F(Q_{c,d}),∣A∣21​a,c∈A∑​d∈{0,1}n∑​ReTr(Qc,d​E(Qa,0n​))TF​(Qa,0nT​)⊗TF​(Qc,d​)=∣A∣21​a,c∈A∑​b,d∈{0,1}n∑​ReTr((Qa,b​⊗Qc,d​)CE​)TF​(Qa,b​)⊗TF​(Qc,d​),

where real coefficients act as complex scalars and tensor products are indexed by concatenated bit strings. The channel hypothesis means that there exist a natural number rrr and matrices K0,…,Kr−1K_0,\ldots,K_{r-1}K0​,…,Kr−1​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I and E(X)=∑jKjXKj†\mathcal E(X)=\sum_jK_jXK_j^\daggerE(X)=∑j​Kj​XKj†​ for every matrix XXX. The structural condition on FFF allows either the Pauli frame, or a frame built by finitely tensoring global Clifford frames and the zero-qubit Pauli frame. In the Pauli frame, a=(Aj,sj)j<na=(A_j,s_j)_{j<n}a=(Aj​,sj​)j<n​ with Aj∈{X,Y,Z}A_j\in\{X,Y,Z\}Aj​∈{X,Y,Z}, sj∈{−1,1}s_j\in\{-1,1\}sj​∈{−1,1}, and Qa,b=⨂j(I+sj(−1)bjAj)/2Q_{a,b}=\bigotimes_j(I+s_j(-1)^{b_j}A_j)/2Qa,b​=⨂j​(I+sj​(−1)bj​Aj​)/2. A global Clifford frame on mmm qubits uses a supplied finite enumeration of the quotient of the unitary Pauli normalizer by equality of conjugation maps, chooses a representative UaU_aUa​ of each class, and sets Qa,b=Ua†∣b⟩⟨b∣UaQ_{a,b}=U_a^\dagger|b\rangle\langle b|U_aQa,b​=Ua†​∣b⟩⟨b∣Ua​; the Pauli subgroup is the subgroup generated by all Pauli tensors with phases 1,i,−1,−i1,i,-1,-i1,i,−1,−i. Tensoring frames takes the product of their basis-choice types and the tensor product of their matrices. The zero-qubit frame has one basis choice, one outcome, and matrix 111. The left-hand sum specifically uses only the all-false outcome 0n0^n0n for its first frame factor.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me