Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relative frequency and sampled single-particle fidelity

Open
QAlgorithms.Papers.Independent.Intake100.P37.symmetric_fidelity

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

prove2quantum

Let M≥1M\ge1M≥1, let ρ\rhoρ be any positive trace-one MMM-qubit density invariant under every exchange of two sites, and let ψ\psiψ be normalized. Write ρk\rho_kρk​ for its kkkth one-qubit reduction. Then, for every site kkk,

1M∑j=1M⟨ψ∣ρj∣ψ⟩=⟨ψ∣ρk∣ψ⟩.\frac1M\sum_{j=1}^M\langle\psi|\rho_j|\psi\rangle =\langle\psi|\rho_k|\psi\rangle.M1​j=1∑M​⟨ψ∣ρj​∣ψ⟩=⟨ψ∣ρk​∣ψ⟩.

No Bose-support assumption is needed for this equality. Separately, the normalized photon-occupation embedding is an isometry whose range is exactly the qubit vectors fixed by every site permutation. For any positive trace-one photon occupation density σ\sigmaσ, its embedded density is positive, trace one and exchange invariant. Its photon relative frequency therefore equals the fidelity of any sampled qubit marginal. In polarization 1 the relative frequency is

∑j=0MσjjM−jM.\sum_{j=0}^M\sigma_{jj}\frac{M-j}{M}.j=0∑M​σjj​MM−j​.

The diagonal entries are real for these densities. This identifies physical single-spatial-mode photon fidelity with the usual sampled-clone fidelity, without conflating swap invariance of arbitrary mixed states with support in the Bose subspace.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P37
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P37

open QAlgorithms

open scoped Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.7-8 Eqs.(27)-(30): exchange-invariant mixed densities have equal
single-site and average fidelities. Bose support is used only for the separate
photon occupation identification, not imposed on all exchange-invariant rho. -/
theorem symmetric_fidelity (M : ℕ) (hM : 1 ≤ M) :
    (∀ rho : Matrix (Qubits M) (Qubits M) ℂ,
      IsDensityMatrix rho → ExchangeInvariant M rho →
      ∀ psi : EuclideanSpace ℂ (Fin 2), IsState psi →
        ∀ k : Fin M, meanCloneFidelity M rho psi = effectProb (pureDensity psi) (QAlgorithms.Papers.Independent.Support21.P18.siteReduction rho k)) ∧
    (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M)ᴴ * QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M = 1 ∧
    (∀ v : EuclideanSpace ℂ (Qubits M),
      (∀ pi : Equiv.Perm (Fin M), ∀ x : Qubits M, v (x ∘ pi) = v x) ↔
        ∃ w : EuclideanSpace ℂ (Fin (M + 1)), v = applyMatrix (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M) w) ∧
    (∀ rho : Matrix (Fin (M + 1)) (Fin (M + 1)) ℂ, IsDensityMatrix rho →
      IsDensityMatrix (photonDensity M rho) ∧
      ExchangeInvariant M (photonDensity M rho) ∧
      (∀ psi : EuclideanSpace ℂ (Fin 2), IsState psi →
        ∀ k : Fin M, photonFrequency M rho psi =
          effectProb (pureDensity psi) (photonSample M rho k)) ∧
      photonFrequency M rho (ket (0 : Fin 2)) =
        ∑ j : Fin (M + 1), (rho j j).re * ((M - j.val : ℕ) : ℝ) / M) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P37

end
Source
Lambda's, V's and optimal cloning with stimulated emission, arXiv:quant-ph/0003025v1, PDF p. 7, Sec. IV, Eqs.(27)-(30); p.8
Read-back

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

For every natural number M≥1M\ge1M≥1, identify bits with 0,10,10,1, and for a complex matrix XXX on MMM-bit strings define

[red⁡k(X)]a,b=∑x∈{0,1}Mxk=aXx,x[k:=b],f(X,ψ)=1M∑k=0M−1Re⁡tr⁡(∣ψ⟩⟨ψ∣red⁡k(X)).[\operatorname{red}_k(X)]_{a,b} =\sum_{\substack{x\in\{0,1\}^M\\x_k=a}}X_{x,x[k:=b]}, \qquad f(X,\psi)=\frac1M\sum_{k=0}^{M-1} \operatorname{Re}\operatorname{tr}(|\psi\rangle\langle\psi|\operatorname{red}_k(X)).[redk​(X)]a,b​=x∈{0,1}Mxk​=a​∑​Xx,x[k:=b]​,f(X,ψ)=M1​k=0∑M−1​Retr(∣ψ⟩⟨ψ∣redk​(X)).

Call XXX exchange invariant when Xx∘(i j),y∘(i j)=Xx,yX_{x\circ(i\,j),y\circ(i\,j)}=X_{x,y}Xx∘(ij),y∘(ij)​=Xx,y​ for every pair of sites i,ji,ji,j and all bit strings x,yx,yx,y, where (i j)(i\,j)(ij) swaps those sites. Define the matrix EEE, with rows indexed by MMM-bit strings and columns j=0,…,Mj=0,\ldots,Mj=0,…,M, by Ex,j=(Mj)−1/2E_{x,j}=\binom Mj^{-1/2}Ex,j​=(jM​)−1/2 when xxx has exactly jjj true bits, and 000 otherwise. The assertion is that, for every positive semidefinite matrix XXX of trace 111 that is exchange invariant, every unit vector ψ∈C2\psi\in\mathbb C^2ψ∈C2, and every site k<Mk<Mk<M,

f(X,ψ)=Re⁡tr⁡(∣ψ⟩⟨ψ∣red⁡k(X)).f(X,\psi)= \operatorname{Re}\operatorname{tr}(|\psi\rangle\langle\psi|\operatorname{red}_k(X)).f(X,ψ)=Retr(∣ψ⟩⟨ψ∣redk​(X)).

It also states that E†E=IM+1E^\dagger E=I_{M+1}E†E=IM+1​, and that a vector vvv on MMM-bit strings satisfies v(x∘π)=v(x)v(x\circ\pi)=v(x)v(x∘π)=v(x) for every permutation π\piπ of the sites and every xxx if and only if there exists a vector w∈CM+1w\in\mathbb C^{M+1}w∈CM+1 with v=Ewv=Ewv=Ew. Finally, for every positive semidefinite (M+1)×(M+1)(M+1)\times(M+1)(M+1)×(M+1) matrix ρ\rhoρ of trace 111, the matrix Xρ=EρE†X_\rho=E\rho E^\daggerXρ​=EρE† is positive semidefinite with trace 111 and is exchange invariant; for every unit vector ψ\psiψ and every k<Mk<Mk<M,

f(Xρ,ψ)=Re⁡tr⁡(∣ψ⟩⟨ψ∣red⁡k(Xρ)),f(Xρ,∣0⟩)=∑j=0M(ρj,j)reM−jM.f(X_\rho,\psi)= \operatorname{Re}\operatorname{tr}(|\psi\rangle\langle\psi|\operatorname{red}_k(X_\rho)), \qquad f(X_\rho,|0\rangle)= \sum_{j=0}^{M}(\rho_{j,j})_{\mathrm{re}}\frac{M-j}{M}.f(Xρ​,ψ)=Retr(∣ψ⟩⟨ψ∣redk​(Xρ​)),f(Xρ​,∣0⟩)=j=0∑M​(ρj,j​)re​MM−j​.

Here M−jM-jM−j in the final formula is natural-number subtraction, which is nonnegative for the indicated indices.

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