Appendix B, Eqs. (27)–(28): averaged state and exact fidelity
OpenQAlgorithms.Papers.Independent.Extend50.P03.averaged_choi_stateA code encodes logical qubits in physical qubits, with , by appending a fixed normalized -qubit eigenvector of the Hamming-weight charge with eigenvalue , then applying . Thus . The ancilla is chosen independently of . The law is probability Haar on the full charge centralizer, including every sector phase. Erasure of a set of wires gives its complement to the decoder. Fidelity means root fidelity and . The optimized Choi error uses normalized EPR pairs; the optimized worst error chooses one CPTP decoder before all normalized joint logical/reference states over every finite reference dimension. Let be the weight- projector on qubits and define , with first. Its explicit form is . Put , , and . Then
The expectation is integrable; the theorem identifies its marginal with the constructed sector sum. Signed invalid binomial indices contribute zero. This exact finite identity supports the asymptotic expansions.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P03
noncomputable section
open MeasureTheory Filter
open scoped Matrix ComplexConjugate ComplexOrder ENNReal Matrix.Norms.Elementwise
namespace QAlgorithms.Papers.Independent.Extend50.P03
open QAlgorithms.Papers.Independent.Support50.P23 (minEntropy)
attribute [local instance] Classical.propDecidable
attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P03.matrixContinuousENorm
/-- Appendix B, PDF pp.20–21, Eqs.(27)–(28): identify the actual Haar average,
its actual partial trace and marginal, and the exact root fidelity. Signed
j+alpha-i is never truncated. -/
theorem averaged_choi_state {n k alpha t : ℕ} (A : Ancilla n k alpha)
(ht : t ≤ n) (mu : Measure ((Matrix.unitaryGroup (Qubits n) ℂ))) (hmu : ChargeHaar n mu) :
let f := fun U => idTensorSuperop (R := Qubits k) (chargeEncoder A U) (pureDensity (maxEntangled k))
Integrable f mu ∧ (∫ U, f U ∂mu) = averageChoi n k alpha ∧
idTensorSuperop (R := Qubits k) (firstTrace n t ht) (averageChoi n k alpha) =
reducedAverage n k alpha t ∧
traceLeft (reducedAverage n k alpha t) = averageZeta n k alpha t ∧
rootFidelity (reducedAverage n k alpha t) (comparisonChoi n k alpha t) =
((2 : ℝ)^k)⁻¹ * ∑ j ∈ Finset.range (k+1), ∑ i ∈ Finset.range (t+1),
(k.choose j : ℝ) * (t.choose i : ℝ) *
Real.sqrt (averageSectorWeight n k alpha t i * chooseZ (n-t) ((j : ℤ)+alpha-i) /
chooseZ n ((j : ℤ)+alpha)) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P03
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let , let , and suppose supplies , , and a unit vector on satisfying , where and counts ones. Assume . Let be a probability measure on the unitaries on , almost surely supported on unitaries commuting with , and invariant under left multiplication by every such unitary. Define , using the first and last coordinates, and , with . For an integer , let be the diagonal projector onto weight- strings in , and let if and zero otherwise. Set
Then is integrable, , tracing the last physical bits out of gives , tracing the register out of gives , and
Here ; the partial trace retaining the first bits has entries . All zero register sizes, and or , are included; out-of-range binomial arguments contribute zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.