Appendix D: averaged basis outputs and worst averaged-state error
OpenQAlgorithms.Papers.Independent.Extend50.P03.average_worst_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. The actual integrable Haar average of is zero for and for . Its first--wire marginal is . Let , where is the Eq.(27) coefficient, independent of . Then
For fixed , exact , and with , uniformly eventually . This is an auxiliary averaged-basis error, distinct from reference-assisted channel worst error.
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 D, PDF p.25: actual averaged basis matrix units, exact root
fidelity, and the auxiliary worst averaged-state expansion. The last printed
'1+(kt^2/n)' is changed to 1+O(kt^2/n): the cited Eq.(29)
has an asymptotic remainder and does not imply a finite exact coefficient. -/
theorem average_worst_state :
(∀ n k alpha t : ℕ, ∀ A : Ancilla n k alpha, ∀ ht : t ≤ n,
∀ mu : Measure ((Matrix.unitaryGroup (Qubits n) ℂ)), ChargeHaar n mu → ∀ x y : Qubits k,
let full := fun U => chargeEncoder A U (Matrix.single x y 1)
let f := fun U => firstTrace n t ht (full U)
Integrable full mu ∧ (∫ U, full U ∂mu) = averageEncodedUnit n alpha x y ∧
Integrable f mu ∧ (∫ U, f U ∂mu) = averageMatrixUnit n alpha t x y) ∧
(∀ n k alpha t : ℕ, k ≤ n → alpha ≤ n-k → t ≤ n → ∀ x : Qubits k,
rootFidelity (averageBasis n alpha t x) (averageZeta n k alpha t) =
∑ i ∈ Finset.range (t+1), (t.choose i : ℝ) *
Real.sqrt (averageSectorWeight n k alpha t i * chooseZ (n-t) ((hammingWeight x : ℤ)+alpha-i) /
chooseZ n ((hammingWeight x : ℤ)+alpha))) ∧
AverageWorstExpansion := by sorry
end QAlgorithms.Papers.Independent.Extend50.P03
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
The declaration asserts the conjunction of three statements. To specify them, write , let denote Hamming weight, let be the diagonal matrix on whose diagonal entry at is if and otherwise, and let equal the usual binomial coefficient for integer and otherwise. For admissible , , and , define
First, for all natural numbers , every vector on with , , , and , every specified proof that , and every measure on the unitary matrices on , equipped with their Borel measurable structure, assume that is a probability measure, that almost every commutes with the diagonal matrix , and that multiplying on the left by any unitary commuting with that diagonal matrix leaves unchanged. For every , split an -bit string into its first bits and remaining bits , define , and set . Both and its partial trace over the final bits are integrable, and
These quantifiers include , , and whenever the stated bounds permit them. Second, for all natural satisfying , , and , and every , the root fidelity, defined by , satisfies
Third, for every real with , there exists such that the following holds for every sequence of natural-number parameters : assume , and, for every , , , , and the exact equality ; also assume . Then there exists such that, for every , using above with these parameters,
The exact integer equality is required at every index; in particular, no such sequence exists for irrational .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.