Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Collective-phase Bose projector, (174)–(181)

Open
QAlgorithms.Papers.Independent.Extend50.P47.phase_projector

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

prove2quantum

Every register has a fixed finite nonempty computational basis. States are positive semidefinite trace-one matrices, and pure vectors have norm one. Write F(ρ,σ)=∥ρσ∥12F(\rho,\sigma)=\|\sqrt\rho\sqrt\sigma\|_1^2F(ρ,σ)=∥ρ​σ​∥12​ for squared fidelity.

For all n≥0, define the normalized integral (1/4π)∫0^4π Rz(φ)^⊗n dφ. It equals the diagonal projector onto weight n/2 if n is even and zero if n is odd; for n=2 it is |01⟩⟨01|+|10⟩⟨10|. Bose-symmetric density states exist only in the even case and have this support.

Πz(n)=14π∫04πRz(ϕ)⊗n dϕ={Pk,n=2k,0,n odd.\Pi_z^{(n)}=\frac1{4\pi}\int_0^{4\pi}R_z(\phi)^{\otimes n}\,d\phi=\begin{cases}P_k,&n=2k,\\0,&n\text{ odd}.\end{cases}Πz(n)​=4π1​∫04π​Rz​(ϕ)⊗ndϕ={Pk​,0,​n=2k,n odd.​

Rz(ϕ)=diag⁡(e−iϕ/2,eiϕ/2)R_z(\phi)=\operatorname{diag}(e^{-i\phi/2},e^{i\phi/2})Rz​(ϕ)=diag(e−iϕ/2,eiϕ/2) and PkP_kPk​ projects onto all bit strings of Hamming weight kkk. The scalar n=0n=0n=0 case gives the identity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P47
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P47

open scoped ComplexConjugate ComplexOrder Matrix Matrix.Norms.L2Operator Manifold ContDiff

open MeasureTheory

open QAlgorithms.Papers.Independent.Information100.P60 (Mat)

open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)

variable {G S R P T A B C D R2 S2 : Type*}

variable [Fintype G] [Group G] [DecidableEq G]

variable [Fintype S] [DecidableEq S] [Nonempty S]

variable [Fintype R] [DecidableEq R] [Nonempty R]

variable [Fintype P] [DecidableEq P] [Nonempty P]

variable [Fintype T] [DecidableEq T] [Nonempty T]

variable [Fintype A] [DecidableEq A] [Nonempty A]

variable [Fintype B] [DecidableEq B] [Nonempty B]

variable [Fintype C] [DecidableEq C] [Nonempty C]

variable [Fintype D] [DecidableEq D] [Nonempty D]

variable [Fintype R2] [DecidableEq R2] [Nonempty R2]

variable [Fintype S2] [DecidableEq S2] [Nonempty S2]

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P47.su2MeasurableSpace

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P47.su2BorelSpace

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P47.u2MeasurableSpace

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P47.u2BorelSpace

/-- PDF pp.25–27, (174)–(180). Source correction to the prose after (189):
when n=2k the weight is k. At n=0 the scalar projector is the identity. -/
theorem phase_projector (n : ℕ) :
    (∀ k, n = 2 * k → collectiveZAverage n = weightProjector n k) ∧
    (Odd n → collectiveZAverage n = 0) ∧
    (∀ rho : Mat (Qubits n), IsDensityMatrix rho →
      (Bose (collectiveZAverage n) rho ↔ Even n ∧
        rho = weightProjector n (n / 2) * rho * weightProjector n (n / 2))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P47

end
Source
Testing symmetry on quantum computers, arXiv:2105.12758v3, PDF p. 26, Collective-phase Bose projector, (174)–(181)
Read-back

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

For every natural number nnn, let w(x)w(x)w(x) count the true coordinates of a Boolean string xxx of length nnn, let Dn,kD_{n,k}Dn,k​ be diagonal with entry 111 when w(x)=kw(x)=kw(x)=k and 000 otherwise, and put Qn=(4π)−1∫04πdiag⁡x(exp⁡(i(2w(x)−n)ϕ/2)) dϕQ_n=(4\pi)^{-1}\int_0^{4\pi}\operatorname{diag}_x(\exp(i(2w(x)-n)\phi/2))\,d\phiQn​=(4π)−1∫04π​diagx​(exp(i(2w(x)−n)ϕ/2))dϕ. Then, for every natural number kkk, n=2kn=2kn=2k implies Qn=Dn,kQ_n=D_{n,k}Qn​=Dn,k​; if nnn is odd, Qn=0Q_n=0Qn​=0; and for every positive semidefinite complex matrix ρ\rhoρ on these strings with trace 111,

(ρ is positive semidefinite, tr⁡ρ=1, ρ=QnρQn)⟺(n is even and ρ=Dn,⌊n/2⌋ρDn,⌊n/2⌋).\bigl(\rho\text{ is positive semidefinite},\ \operatorname{tr}\rho=1,\ \rho=Q_n\rho Q_n\bigr) \quad\Longleftrightarrow\quad \bigl(n\text{ is even and }\rho=D_{n,\lfloor n/2\rfloor}\rho D_{n,\lfloor n/2\rfloor}\bigr).(ρ is positive semidefinite, trρ=1, ρ=Qn​ρQn​)⟺(n is even and ρ=Dn,⌊n/2⌋​ρDn,⌊n/2⌋​).

Here n=0n=0n=0 is included: its string space has one element and Q0=D0,0=IQ_0=D_{0,0}=IQ0​=D0,0​=I.

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