Valid even-n finite phase twirl, including the implemented n=2 case
OpenQAlgorithms.Papers.Independent.Extend50.P47.phase_finite_twirl_evenEvery register has a fixed finite nonempty computational basis. States are positive semidefinite trace-one matrices, and pure vectors have norm one. Write for squared fidelity.
For every even n (including zero), the literal Uy in (183) obey (n+1)⁻¹Σy UyρUy†=Σk PkρPk. In particular the n=2 gates U0=Rz(2π/3)^⊗2,U1=I,U2=U0† used by Figure 21 give the advertised collective symmetry test.
is any operator and is the literal family of (183). This is an explicitly corrected even- specialization, including .
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P47
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.27–28, corrected even-n specialization of (206)–(208).
The unrestricted printed assertion is separately deferred: at odd n its
frequencies alias. Even n includes the implemented n=2 example and n=0. -/
theorem phase_finite_twirl_even (n : ℕ) (hn : Even n)
(rho : Mat (Qubits n)) :
collectiveZTwirl n rho = (n + 1 : ℂ)⁻¹ •
∑ y : Fin (n + 1), finitePhase n y * rho * (finitePhase n y)ᴴ := by sorry
end QAlgorithms.Papers.Independent.Extend50.P47
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every even natural number , including , and every complex matrix indexed by Boolean strings of length , with no positivity or normalization assumption, let count the true coordinates of , put , and define for . Then
For , both sides equal .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.