Appendix C1: exact averaged Choi state, marginal and fidelity
OpenQAlgorithms.Papers.Independent.Extend50.P09.u1_average_choiLet be integers with and . Append a fixed unit vector of charge to logical qubits and conjugate by a Haar-random unitary in the full commutant of the -qubit Hamming-weight operator. Erase a fixed known set of sites. Let and denote the optimal CPTP recovery errors, using root fidelity and purified distance , respectively on the normalized maximally entangled input and on all reference-entangled inputs with one common decoder.
For the normalized Choi input write , and let be the first physical sites. Denote weight projectors by , with invalid sectors zero. Then
Put and . Its marginal is , and
These identities specify the exact comparator used by the subsequent expansions, including signed binomial indices.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P09
noncomputable section
open scoped Matrix Matrix.Norms.Elementwise ComplexConjugate ENNReal ComplexOrder
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Extend50.P09
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact generic definitions from the pinned accepted library.
open QAlgorithms.Papers.Independent.Information100.P22 (Op mixed bell)
open QAlgorithms.Papers.Independent.Information100.P67 (conditionalMinEntropy)
open QAlgorithms.Papers.Independent.Advance50.P02 (negLog)
attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P09.covariantMatrixMeasurable
attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P09.covariantMatrixBorel
/-- Appendix C1, PDF p.19, (C1)–(C6): exact joint average, environmental
marginal, choiMarginalState marginal and scalar root-fidelity expression. Every binomial
with negative lower index is zero, rather than Nat subtraction at zero. -/
theorem u1_average_choi (n k t alpha : ℕ) (hk : k ≤ n) (ht : t ≤ n)
(ha : alpha ≤ n-k) (psi : EuclideanSpace ℂ (CovariantWord 2 (n-k)))
(hpsi : ChargeState alpha psi) (mu : Measure (Op (CovariantWord 2 n)))
(hmu : IsCommutantHaarLaw (U1Group n) mu) :
(∫ U, idTensorSuperop (R := CovariantWord 2 k) (appendUnitaryEncoder hk (pureDensity psi) U)
(pureDensity (bell (CovariantWord 2 k))) ∂mu) = avgFullChoi n k alpha ∧
idTensorSuperop (R := CovariantWord 2 k) (firstTrace ht) (avgFullChoi n k alpha) =
avgChoi n k t alpha ∧
traceLeft (avgChoi n k t alpha) = choiMarginalState n k t alpha ∧
comparatorFidelity n k t alpha =
(2 : ℝ)^(- (k : ℤ)) * ∑ j ∈ Finset.range (k+1), ∑ i ∈ Finset.range (t+1),
(k.choose j : ℝ)*(t.choose i : ℝ)*
Real.sqrt (choiMarginalCoefficient n k t alpha i * hyper n t (j+alpha) i) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P09
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be natural numbers with , , and . Write , let denote Hamming weight, and let have norm and vanish outside weight . Let be a Borel probability measure on complex matrices indexed by , giving measure zero to matrices outside
and invariant under left multiplication by every member of . Define the encoder
using the split into the first and last sites, and let . With , define
where for negative integer , and otherwise . Define diagonal matrices and by and . Then
where the partial trace in the middle retains the first physical sites. In addition, the root fidelity equals
Zero-sized registers are allowed, and all reciprocals and divisions are totalized, assigning zero to the reciprocal of zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.