Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Purity and rank restrictions on sparse states

Open
QAlgorithms.Papers.Independent.Extend50.P46.remark3_7

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

prove2quantum

Here n≥0n\ge0n≥0 is the number of qubits, d=2nd=2^nd=2n, states are positive semidefinite matrices of trace one, and N\mathcal NN is a complex-linear CPTP map. The basis Q=(Qi)i=1d2Q=(Q_i)_{i=1}^{d^2}Q=(Qi​)i=1d2​ is a complete Hermitian Hilbert–Schmidt orthonormal basis. Write RijQ=tr⁡(QiN(Qj))R^Q_{ij}=\operatorname{tr}(Q_i\mathcal N(Q_j))RijQ​=tr(Qi​N(Qj​)), ai=tr⁡(Qiρ)a_i=\operatorname{tr}(Q_i\rho)ai​=tr(Qi​ρ) and bi=tr⁡(QiO)b_i=\operatorname{tr}(Q_iO)bi​=tr(Qi​O). The norm ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the Hilbert–Schmidt norm, and q=max⁡i∥Qi∥∞q=\max_i\|Q_i\|_\inftyq=maxi​∥Qi​∥∞​ uses the spectral norm.

If ρ\rhoρ is a density matrix with at most sss nonzero QQQ coefficients, then

tr⁡(ρ2)=∥ρ∥22=∑iai2≤sq2,rank⁡(ρ)≥1sq2.\operatorname{tr}(\rho^2)=\|\rho\|_2^2=\sum_i a_i^2\le sq^2,\qquad\operatorname{rank}(\rho)\ge\frac1{sq^2}.tr(ρ2)=∥ρ∥22​=i∑​ai2​≤sq2,rank(ρ)≥sq21​.

In particular, for q=2−n/2q=2^{-n/2}q=2−n/2 and any specified polynomial sparsity envelope s≤p(n)s\le p(n)s≤p(n), these give purity at most p(n)/2np(n)/2^np(n)/2n and rank at least 2n/p(n)2^n/p(n)2n/p(n) on its positive regime. For any nonidentity Pauli PAP_APA​, both signs give states

ρ±=2−n(I±PA),sρ±=2,∥ρ±−2−nI∥1=1.\rho_\pm=2^{-n}(I\pm P_A),\qquad s_{\rho_\pm}=2,\qquad\|\rho_\pm-2^{-n}I\|_1=1.ρ±​=2−n(I±PA​),sρ±​​=2,∥ρ±​−2−nI∥1​=1.

Thus sparse states can remain far from maximally mixed in trace norm. The norm displayed here is not halved.

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, Remark 3.7: purity, rank, and the trace-norm distance example.
Exact bounds yield the stated polynomial-sparsity asymptotics uniformly for any
specified sparsity polynomial. Trace norm here is not divided by two. -/
theorem remark3_7 :
    (∀ {n : ℕ} (Q : HermitianBasis n) (rho : (Matrix (Qubits n) (Qubits n) ℂ)), IsDensityMatrix rho →
      ∀ s : ℕ, supportCount (coeff Q rho) ≤ s →
        (rho * rho).trace.re = frobNorm rho ^ 2 ∧
        (rho * rho).trace.re = ∑ i, coeff Q rho i ^ 2 ∧
        (rho * rho).trace.re ≤ (s : ℝ) * basisNorm Q ^ 2 ∧
        ((s : ℝ) * basisNorm Q ^ 2)⁻¹ ≤ (rho.rank : ℝ)) ∧
    (∀ {n : ℕ} (A : ErrorMitigation.PauliIndex n), A ≠ (fun _ => .I) → ∀ minus : Bool,
      IsDensityMatrix (eigenspaceState A minus) ∧
      supportCount (ErrorMitigation.pauliStateVector (eigenspaceState A minus)) = 2 ∧
      traceNorm (eigenspaceState A minus - (((2 : ℝ)^n)⁻¹ : ℂ) • (1 : (Matrix (Qubits n) (Qubits n) ℂ))) = 1) := 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, Remark 3.7: purity and rank of sparse states
Read-back

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

Both of the following assertions hold. First, for every natural number nnn, every complex-linear basis Q0,…,Q4n−1Q_0,\ldots,Q_{4^n-1}Q0​,…,Q4n−1​ of matrices on Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n whose elements are Hermitian and satisfy tr⁡(QiQj)=1i=j\operatorname{tr}(Q_iQ_j)=\mathbf1_{i=j}tr(Qi​Qj​)=1i=j​, every positive semidefinite ρ\rhoρ with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, and every natural number sss satisfying #{i:qi≠0}≤s\#\{i:q_i\ne0\}\le s#{i:qi​=0}≤s, where qi=Re⁡tr⁡(Qiρ)q_i=\operatorname{Re}\operatorname{tr}(Q_i\rho)qi​=Retr(Qi​ρ) and K=max⁡i∥Qi∥opK=\max_i\|Q_i\|_{\mathrm{op}}K=maxi​∥Qi​∥op​, one has

Re⁡tr⁡(ρ2)=∥ρ∥F2,Re⁡tr⁡(ρ2)=∑iqi2,Re⁡tr⁡(ρ2)≤sK2,(sK2)−1≤rank⁡ρ,\operatorname{Re}\operatorname{tr}(\rho^2)=\|\rho\|_{\mathrm F}^2,\qquad \operatorname{Re}\operatorname{tr}(\rho^2)=\sum_iq_i^2,\qquad \operatorname{Re}\operatorname{tr}(\rho^2)\le sK^2,\qquad (sK^2)^{-1}\le\operatorname{rank}\rho,Retr(ρ2)=∥ρ∥F2​,Retr(ρ2)=i∑​qi2​,Retr(ρ2)≤sK2,(sK2)−1≤rankρ,

with ∥ρ∥F=(∑u,v∣ρuv∣2)1/2\|\rho\|_{\mathrm F}=(\sum_{u,v}|\rho_{uv}|^2)^{1/2}∥ρ∥F​=(∑u,v​∣ρuv​∣2)1/2 and rank taken over C\mathbb CC. This includes n=0n=0n=0 and s=0s=0s=0; the coefficient-support hypothesis cannot hold for a density matrix when s=0s=0s=0, and reciprocals use the convention 0−1=00^{-1}=00−1=0. Second, for every natural number nnn, every string A∈{I,X,Y,Z}nA\in\{I,X,Y,Z\}^nA∈{I,X,Y,Z}n different from the all-identity string, and each η∈{0,1}\eta\in\{0,1\}η∈{0,1}, put d=2nd=2^nd=2n, PA=⨂jAjP_A=\bigotimes_jA_jPA​=⨂j​Aj​, and ρA,η=d−1(I+(−1)ηPA)\rho_{A,\eta}=d^{-1}(I+(-1)^\eta P_A)ρA,η​=d−1(I+(−1)ηPA​). Then ρA,η\rho_{A,\eta}ρA,η​ is positive semidefinite with trace 111, exactly two Pauli strings BBB satisfy Re⁡tr⁡(PBρA,η)≠0\operatorname{Re}\operatorname{tr}(P_B\rho_{A,\eta})\ne0Retr(PB​ρA,η​)=0, and

Re⁡tr⁡(ρA,η−d−1I)†(ρA,η−d−1I)=1.\operatorname{Re}\operatorname{tr} \sqrt{(\rho_{A,\eta}-d^{-1}I)^\dagger(\rho_{A,\eta}-d^{-1}I)}=1.Retr(ρA,η​−d−1I)†(ρA,η​−d−1I)​=1.

Thus the last equality uses the trace norm itself, without a factor of 1/21/21/2; its square root is defined by the real square-root functional calculus. For n=0n=0n=0, there is no string AAA satisfying the nonidentity hypothesis in the second assertion.

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