Two-qudit second moment and operator locality
OpenQAlgorithms.Papers.Independent.Intakethird100.P71.twoQudit_secondMomentIn the complete locally scrambled two-qudit toy experiment, let , , and the snapshot features be . Fix a density matrix and a traceless Hermitian observable . Write and
The second moment averaged over local Haar conjugations of is
For nonzero , putting recovers Eq. (31). The undivided identity also includes , where both sides vanish. This records the exact dependence on observable locality without introducing undefined purity ratios.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P71
noncomputable section
open MeasureTheory
open scoped Matrix ComplexConjugate ENNReal Matrix.Norms.Elementwise
namespace QAlgorithms.Papers.Independent.Intakethird100.P71
attribute [local instance] Classical.propDecidable
local notation "Config" n:max d:max =>
QAlgorithms.Papers.Independent.Information100.P21.Config (P := Fin n) (fun _ => d)
local notation "Op" n:max d:max =>
QAlgorithms.Papers.Independent.Information100.P21.Op (Config n d)
attribute [local instance] QAlgorithms.Papers.Independent.Intakethird100.P71.matrixContinuousENorm
local notation "Unitary" n:max d:max => Matrix.unitaryGroup (Config n d) ℂ
local notation "Local" n:max d:max => Fin n → Matrix.unitaryGroup (Fin d) ℂ
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
/-- PDF p.6 Eqs.(29)–(31): undivided two-qudit formula. K is the sum of the
unnormalized partial purities; for O≠0, k_tot=K/Tr(O²). O=0 is included. -/
theorem twoQudit_secondMoment {d : ℕ} (hd : 2 ≤ d) (E : ProjectiveEnsemble 2 d)
(hls : LocallyScrambled (prior E)) (hc : Complete (prior E))
(w : ℝ) (hw : 2*(d : ℝ)/((d : ℝ)^2+1) ≤ w ∧ w ≤ 1) (hf : ToyFeature (prior E) w)
(H : Measure (Local 2 d)) [IsProbabilityMeasure H] [H.IsMulLeftInvariant]
(rho O : Op 2 d) (hrho : IsDensityMatrix rho) (hO : O.IsHermitian) (ht : O.trace = 0) :
averagedSecondMoment H (prior E) hc rho O =
((d : ℝ)^2-1)/(d : ℝ)^3 *
(localityNumerator O / ((d : ℝ)*w-1) +
((d : ℝ)^2-1) * ((d : ℝ)*hsSquare O - localityNumerator O) /
((d : ℝ)^2-2*(d : ℝ)*w+1)) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P71
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let , let , and let specify a probability law on global unitary matrices. Set , and assume that is invariant under for every with unitary factors. Define , assume it is injective, and write . Let satisfy , and suppose that equals for each singleton and equals for the empty and full subsets; here the partial trace sums matching complementary indices. Let be a probability measure on pairs of local unitary matrices invariant under left multiplication by every fixed pair. Let be positive semidefinite of trace , and let be Hermitian of trace . Define , , and
The theorem asserts the exact equality
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.