Definitions for Second-Order Asymptotics for the Classical Capacity of Image-Additive Quantum Channels
DefinitionQAlgorithms_Papers_Independent_Bridge50_P50The objects the formalized statements of Second-Order Asymptotics for the Classical Capacity of Image-Additive Quantum Channels (arXiv:1308.6503) are stated in. Each was checked against the paper by a blind read-back and a moderator.
normalizedTestingDivergence: PDF p.5, (15): NORMALIZED testing divergence, with infinity at zero type-II error. Only e in (0,1) and states are used; there the feasible set is nonempty and bounded.ClosedStateSet: PDF pp.3–4,6: nonempty closed sets of states. Nonemptiness is the source's tacit optimization convention and is needed for peripheral decompositions.radiusAt: PDF p.6: extended radius about sigma. Empty suprema have their extended-order meaning.divergenceRadius: PDF p.6, (16): infimum over comparison STATES, before the codeword supremum.centers: PDF p.12: the SET of all minimizers, without assuming existence or uniqueness.divergenceCenter: PDF pp.6,13: select the unique center when it exists. The fallback zero is unused under ClosedStateSet; its exclusion is a theorem conclusion, not an assumed optimizer.peripheralAt: PDF p.12: peripheral points relative to ANY minimizing state, before uniqueness.peripheralStates: PDF p.6, (17): peripheral set for the selected center.measuresOn: PDF pp.3–4: Borel probability measures carried by S, represented on the ambient matrix space. On closed S this is equivalent to measures on the subtype S.stateBarycenter: PDF p.4, (7): actual Bochner barycenter; integrable on the compact state space.borelHolevoInformation: PDF pp.6,14, (18),(50): extended integral avoids a default real integral at infinity.peripheralMeasures: PDF p.7, (19): probability measures carried by Gamma whose barycenter IS the center.MeasureConvex: PDF p.7: convexity in the space of probability measures, expressed by normalized nonnegative mixtures. This avoids pretending that ProbabilityMeasure is a real vector space.FiniteSupport: PDF pp.7–8: a discrete probability measure supported by at most k points of A.conditionalVariance: PDF pp.7–8, (20): conditional variance. The center dominates every state in S; on peripheral measures this is a bounded continuous, hence integrable, function.vMin: PDF p.8, (21): minimum peripheral variance. Relevant sets are nonempty and compact.vMax: PDF p.8, (22): maximum peripheral variance.vEpsilon: PDF p.8, (25): epsilon=1/2 belongs to the minimum branch.capacityBits: PDF p.8: finite divergence radius in bits. Its finiteness on the stated domain follows by comparison with the maximally mixed state; no arbitrary extended value is silently optimized.PeripheralEnsemble: PDF p.7, (19), discrete specialization: exactly Pi membership, including the barycenter condition. Zero-weight labels are immaterial.cqJointState: PDF p.15: classical-quantum joint block state, with a genuine finite classical register.referenceState: PDF p.15: block-diagonal product of the classical marginal and quantum barycenter.tensorWord: PDF p.4: tensor product with the indicated ordered factors.productSet: PDF p.5: all product outputs with factors in S.testingRadius: PDF p.9, (27): hypothesis-testing radius; comparison state chosen first.CqTransmissionCode: PDF pp.4–5: a physical classical-quantum code, uniform nonempty messages and joint POVM.cqAverageError: PDF p.4, (10): average error, not maximum message error.cqOptimalMessages: PDF p.5, (12): all actual codes. On a nonempty state-valued channel and 0≤e<1, the feasible message sizes are nonempty and bounded by dim(output)/(1-e).cqBlockChannel: PDF p.5: actual n memoryless c-q channel uses.blockLog: PDF p.5: logarithm of optimal block message size.cqOperationalCapacity: PDF p.1, (1): operational capacity via lower limits. Theorem 4 supplies genuine convergence, so both lower limits are actual limits on the stated channel domain.secondOrder: PDF p.8: the actual second-order expression, evaluated on the closure of the image.cqRemainder: PDF p.8: K is the actual difference, not a supplied remainder parameter.ErrorEnvelope: PDF pp.8–24: positive blocklength error envelope. Early terms need not be in (0,1).empiricalInformation: PDF p.17: conditional empirical relative entropy.empiricalVariance: PDF p.17: conditional empirical variance.empiricalBarycenter: PDF p.19: empirical barycenter. Only positive n is asserted below.peripheralDistance: PDF p.19, (79): distance to Gamma. Relevant Gamma is nonempty compact.OmegaOne: PDF p.19, (79): first closeness condition.OmegaTwo: PDF p.19, (80): second closeness condition. The good set is their INTERSECTION.NetConditions: PDF p.18, (76)–(77): all THREE net requirements on the same witness tau.auxiliaryState: PDF p.19, (78): the constructed auxiliary state, fixed before the input sequence.NSSpectralData: PDF p.25, (B1): chosen spectral data. Raw data allow forming a product basis explicitly; validity is separately pinned by IsSpectral, never by arbitrary laws.IsSpectral: PDF p.25: an orthonormal eigenbasis and the actual spectral reconstruction.nsP: PDF p.25, (B1): first NS distribution in the specified bases.nsQ: PDF p.25, (B1): second NS distribution.productSpectral: PDF p.26, (B3): product eigenvalues AND product eigenvectors, not an independently chosen basis in a degenerate tensor eigenspace.nsClassicalD: PDF p.25: classical D with infinite support-violation value.classicalV: PDF p.25: classical variance, on the support-dominated domain.classicalT: PDF p.26, (B8): the classical centered absolute third moment.canonicalSpectral: PDF pp.25–26: a canonical choice of eigenbasis, used only for basis-invariant moments.thirdMoment: PDF p.26, (B8): NS third moment. This is NOT a noncommutative absolute cube.ensembleVariance: PDF p.28: weighted variance at the actual barycenter; zero-weight summands contribute zero.ensembleThird: PDF p.28: weighted centered NS third moment at the actual barycenter.finiteHolevoInformation: PDF p.14: finite information I(P), with zero-probability blocks omitted by their weights.restrictedInf: PDF p.22: infimum on a subset of Theta_1, so no global extension of f is assumed.pauliFamily: Example 1, PDF p.10: Pauli matrices in the accepted Bool computational basis.pauliMap: Example 1, PDF p.10: the actual Pauli channel, not an unconstrained invariant tuple.pauliImage: Example 1, PDF p.10: image of all qubit input states.pauliContractions: Example 1, PDF p.10: the three Bloch contraction factors of the Pauli map.bscCrossover: Example 1, PDF p.10: comparison BSC is constructed from the longest Bloch semiaxis.bscVariance: Example 1, PDF p.10: classical BSC variance, zero at deterministic endpoints.ensembleSize: Example 1, PDF p.10: support cardinality of a finite ensemble, ignoring repeated labels and zero-weight entries as a probability measure does.EnsembleOn: Example 1, PDF p.10: all positive-weight states belong to the stated channel image.MinimalAchieving: Example 1, PDF p.10: minimality among ALL capacity-achieving ensembles in the image.pauliQuantumBlockLog: Example 1, PDF p.10: unrestricted n-use quantum code, including entangled inputs. The block channel is the accepted actual matrix-unit tensor extension.pauliQuantumCapacity: Example 1, PDF p.10, and (1), PDF p.1: unrestricted operational classical capacity.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_ExtendedQuantumEntropy
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Defs_QuantumOutputMetrics
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P69
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P36
/-! Paper-local interfaces for arXiv:1308.6503v3. All logarithms below are in bits. Exact primitives are imported from the pinned accepted library.
Matrix topology is the usual finite-dimensional topology, equal to the trace-distance topology.
Theorems concern normalized density matrices. No frozen declaration is modified. -/
noncomputable section
open scoped Topology BigOperators ComplexConjugate ComplexOrder ENNReal Matrix.Norms.L2Operator
open MeasureTheory Filter Set
namespace QAlgorithms.Papers.Independent.Bridge50.P50
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact accepted primitives; these names do not create local declarations.
open QAlgorithms.Papers.Independent.Information100.P63 (Mat logTwo testingBeta normalCDF normalQuantile)
open QAlgorithms.Papers.Independent.Information100.P08 (Ensemble ensembleAverage)
open QAlgorithms.Papers.Independent.Information100.P69 (entropy)
open QAlgorithms.Papers.Independent.Dependency50.P35 (Dominates)
open QAlgorithms.Papers.Independent.Dependency50.P36 (pairInformationVariance)
open QAlgorithms (vnEntropy traceDistance minEigenvalue)
/-- PDF pp.3–4: the Borel sigma-algebra for the usual finite-dimensional matrix topology,
which agrees with the source trace-distance topology on Hermitian matrices. -/
local instance matrixBorelMeasurable (I : Type*) : MeasurableSpace (Mat I) := borel _
/-- PDF pp.3–4: the measurable matrix structure above is exactly Borel. -/
local instance matrixBorelSpace (I : Type*) : BorelSpace (Mat I) := ⟨rfl⟩
/-- PDF p.5, (15): NORMALIZED testing divergence, with infinity at zero type-II error.
Only e in (0,1) and states are used; there the feasible set is nonempty and bounded. -/
def normalizedTestingDivergence {I : Type*} [Fintype I] [DecidableEq I]
(e : ℝ) (rho sigma : Mat I) : ℝ≥0∞ :=
let b := testingBeta e rho sigma
if b = 0 then ⊤ else ENNReal.ofReal (-logTwo (b / (1-e)))
/-- PDF pp.3–4,6: nonempty closed sets of states. Nonemptiness is the source's tacit
optimization convention and is needed for peripheral decompositions. -/
def ClosedStateSet {I : Type*} [Fintype I] (S : Set (Mat I)) : Prop :=
S.Nonempty ∧ IsClosed S ∧ ∀ rho ∈ S, QAlgorithms.IsDensityMatrix rho
/-- PDF p.6: extended radius about sigma. Empty suprema have their extended-order meaning. -/
def radiusAt {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (sigma : Mat I) : ℝ≥0∞ :=
⨆ rho : S, entropy rho.val sigma
/-- PDF p.6, (16): infimum over comparison STATES, before the codeword supremum. -/
def divergenceRadius {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : ℝ≥0∞ :=
⨅ sigma : {A : Mat I // QAlgorithms.IsDensityMatrix A}, radiusAt S sigma.val
/-- PDF p.12: the SET of all minimizers, without assuming existence or uniqueness. -/
def centers {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : Set (Mat I) :=
{sigma | QAlgorithms.IsDensityMatrix sigma ∧ radiusAt S sigma = divergenceRadius S}
/-- PDF pp.6,13: select the unique center when it exists. The fallback zero is unused
under ClosedStateSet; its exclusion is a theorem conclusion, not an assumed optimizer. -/
def divergenceCenter {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : Mat I :=
if h : (centers S).Nonempty then h.choose else 0
/-- PDF p.12: peripheral points relative to ANY minimizing state, before uniqueness. -/
def peripheralAt {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (sigma : Mat I) : Set (Mat I) :=
{rho | rho ∈ S ∧ entropy rho sigma = radiusAt S sigma}
/-- PDF p.6, (17): peripheral set for the selected center. -/
def peripheralStates {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : Set (Mat I) :=
peripheralAt S (divergenceCenter S)
/-- PDF pp.3–4: Borel probability measures carried by S, represented on the ambient
matrix space. On closed S this is equivalent to measures on the subtype S. -/
def measuresOn {I : Type*} [Fintype I] (S : Set (Mat I)) : Set (ProbabilityMeasure (Mat I)) :=
{P | (P : Measure (Mat I)) S = 1}
/-- PDF p.4, (7): actual Bochner barycenter; integrable on the compact state space. -/
def stateBarycenter {I : Type*} [Fintype I] (P : ProbabilityMeasure (Mat I)) : Mat I :=
∫ rho, rho ∂(P : Measure (Mat I))
/-- PDF pp.6,14, (18),(50): extended integral avoids a default real integral at infinity. -/
def borelHolevoInformation {I : Type*} [Fintype I] [DecidableEq I]
(P : ProbabilityMeasure (Mat I)) : ℝ≥0∞ :=
∫⁻ rho, entropy rho (stateBarycenter P) ∂(P : Measure (Mat I))
/-- PDF p.7, (19): probability measures carried by Gamma whose barycenter IS the center. -/
def peripheralMeasures {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) : Set (ProbabilityMeasure (Mat I)) :=
{P | P ∈ measuresOn (peripheralStates S) ∧ stateBarycenter P = divergenceCenter S}
/-- PDF p.7: convexity in the space of probability measures, expressed by normalized
nonnegative mixtures. This avoids pretending that ProbabilityMeasure is a real vector space. -/
def MeasureConvex {X : Type*} [MeasurableSpace X]
(A : Set (ProbabilityMeasure X)) : Prop :=
∀ P ∈ A, ∀ Q ∈ A, ∀ a b : ℝ≥0∞, a+b=1 →
∃ R ∈ A, (R : Measure X) = a • (P : Measure X) + b • (Q : Measure X)
/-- PDF pp.7–8: a discrete probability measure supported by at most k points of A. -/
def FiniteSupport {I : Type*} [Fintype I] (P : ProbabilityMeasure (Mat I))
(k : ℕ) (A : Set (Mat I)) : Prop :=
∃ F : Finset (Mat I), F.card ≤ k ∧ (↑F : Set (Mat I)) ⊆ A ∧
(P : Measure (Mat I)) (↑F : Set (Mat I)) = 1
/-- PDF pp.7–8, (20): conditional variance. The center dominates every state in S;
on peripheral measures this is a bounded continuous, hence integrable, function. -/
def conditionalVariance {I : Type*} [Fintype I] [DecidableEq I]
(P : ProbabilityMeasure (Mat I)) (sigma : Mat I) : ℝ :=
∫ rho, pairInformationVariance rho sigma ∂(P : Measure (Mat I))
/-- PDF p.8, (21): minimum peripheral variance. Relevant sets are nonempty and compact. -/
def vMin {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : ℝ :=
sInf {v | ∃ P ∈ peripheralMeasures S, v = conditionalVariance P (divergenceCenter S)}
/-- PDF p.8, (22): maximum peripheral variance. -/
def vMax {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : ℝ :=
sSup {v | ∃ P ∈ peripheralMeasures S, v = conditionalVariance P (divergenceCenter S)}
/-- PDF p.8, (25): epsilon=1/2 belongs to the minimum branch. -/
def vEpsilon {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) (e : ℝ) : ℝ :=
if e ≤ 1/2 then vMin S else vMax S
/-- PDF p.8: finite divergence radius in bits. Its finiteness on the stated domain follows
by comparison with the maximally mixed state; no arbitrary extended value is silently optimized. -/
def capacityBits {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) : ℝ :=
(divergenceRadius S).toReal
/-- PDF p.7, (19), discrete specialization: exactly Pi membership, including the barycenter
condition. Zero-weight labels are immaterial. -/
def PeripheralEnsemble {I : Type} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (E : Ensemble I) : Prop :=
ensembleAverage E = divergenceCenter S ∧ ∀ i, 0 < E.prob i → E.state i ∈ peripheralStates S
/-- PDF p.15: classical-quantum joint block state, with a genuine finite classical register. -/
def cqJointState {I : Type} [Fintype I] (E : Ensemble I) : Mat (Fin E.size × I) :=
fun a b => if a.1 = b.1 then (E.prob a.1 : ℂ) * E.state a.1 a.2 b.2 else 0
/-- PDF p.15: block-diagonal product of the classical marginal and quantum barycenter. -/
def referenceState {I : Type} [Fintype I] (E : Ensemble I) : Mat (Fin E.size × I) :=
fun a b => if a.1 = b.1 then (E.prob a.1 : ℂ) * ensembleAverage E a.2 b.2 else 0
/-- PDF p.4: tensor product with the indicated ordered factors. -/
def tensorWord {I : Type*} {n : ℕ} (rho : Fin n → Mat I) : Mat (Fin n → I) :=
fun a b => ∏ i, rho i (a i) (b i)
/-- PDF p.5: all product outputs with factors in S. -/
def productSet {I : Type*} (S : Set (Mat I)) (n : ℕ) : Set (Mat (Fin n → I)) :=
{A | ∃ rho : Fin n → Mat I, (∀ i, rho i ∈ S) ∧ A = tensorWord rho}
/-- PDF p.9, (27): hypothesis-testing radius; comparison state chosen first. -/
def testingRadius {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (e : ℝ) : ℝ≥0∞ :=
⨅ sigma : {A : Mat I // QAlgorithms.IsDensityMatrix A},
⨆ rho : S, normalizedTestingDivergence e rho.val sigma.val
/-- PDF pp.4–5: a physical classical-quantum code, uniform nonempty messages and joint POVM. -/
structure CqTransmissionCode (X I : Type*) [Fintype I] [DecidableEq I] (M : ℕ) where
positive : 0 < M
encode : Fin M → X
decode : Fin M → Mat I
positiveDecode : ∀ m, (decode m).PosSemidef
complete : ∑ m, decode m = 1
/-- PDF p.4, (10): average error, not maximum message error. -/
def cqAverageError {X I : Type*} [Fintype I] [DecidableEq I] {M : ℕ}
(W : X → Mat I) (C : CqTransmissionCode X I M) : ℝ :=
1 - (M : ℝ)⁻¹ * ∑ m, QAlgorithms.effectProb (C.decode m) (W (C.encode m))
/-- PDF p.5, (12): all actual codes. On a nonempty state-valued channel and 0≤e<1,
the feasible message sizes are nonempty and bounded by dim(output)/(1-e). -/
def cqOptimalMessages {X I : Type*} [Fintype I] [DecidableEq I]
(W : X → Mat I) (e : ℝ) : ℕ := sSup {M | ∃ C : CqTransmissionCode X I M, cqAverageError W C ≤ e}
/-- PDF p.5: actual n memoryless c-q channel uses. -/
def cqBlockChannel {X I : Type*} (W : X → Mat I) (n : ℕ) : (Fin n → X) → Mat (Fin n → I) :=
fun x => tensorWord (fun i => W (x i))
/-- PDF p.5: logarithm of optimal block message size. -/
def blockLog {X I : Type*} [Fintype I] [DecidableEq I]
(W : X → Mat I) (e : ℝ) (n : ℕ) : ℝ := logTwo (cqOptimalMessages (cqBlockChannel W n) e)
/-- PDF p.1, (1): operational capacity via lower limits. Theorem 4 supplies genuine
convergence, so both lower limits are actual limits on the stated channel domain. -/
def cqOperationalCapacity {X I : Type*} [Fintype I] [DecidableEq I] (W : X → Mat I) : ℝ :=
Filter.liminf (fun e : ℝ => Filter.liminf (fun n : ℕ => blockLog W e n / n) atTop)
(nhdsWithin 0 (Set.Ioi 0))
/-- PDF p.8: the actual second-order expression, evaluated on the closure of the image. -/
def secondOrder {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (e : ℝ) (n : ℕ) : ℝ :=
n * capacityBits S + Real.sqrt (n * vEpsilon S e) * normalQuantile e
/-- PDF p.8: K is the actual difference, not a supplied remainder parameter. -/
def cqRemainder {X I : Type*} [Fintype I] [DecidableEq I]
(W : X → Mat I) (e : ℝ) (n : ℕ) : ℝ :=
blockLog W e n - secondOrder (closure (Set.range W)) e n
/-- PDF pp.8–24: positive blocklength error envelope. Early terms need not be in (0,1). -/
def ErrorEnvelope (e : ℝ) (es : ℕ → ℝ) : Prop :=
∀ n : ℕ, 1 ≤ n → |es n-e| ≤ 1 / Real.sqrt n
/-- PDF p.17: conditional empirical relative entropy. -/
def empiricalInformation {I : Type*} [Fintype I] [DecidableEq I] {n : ℕ}
(rho : Fin n → Mat I) (sigma : Mat I) : ℝ :=
(n : ℝ)⁻¹ * ∑ i, (entropy (rho i) sigma).toReal
/-- PDF p.17: conditional empirical variance. -/
def empiricalVariance {I : Type*} [Fintype I] [DecidableEq I] {n : ℕ}
(rho : Fin n → Mat I) (sigma : Mat I) : ℝ :=
(n : ℝ)⁻¹ * ∑ i, pairInformationVariance (rho i) sigma
/-- PDF p.19: empirical barycenter. Only positive n is asserted below. -/
def empiricalBarycenter {I : Type*} [Fintype I] {n : ℕ} (rho : Fin n → Mat I) : Mat I :=
(n : ℝ)⁻¹ • ∑ i, rho i
/-- PDF p.19, (79): distance to Gamma. Relevant Gamma is nonempty compact. -/
def peripheralDistance {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (rho : Mat I) : ℝ :=
sInf {r | ∃ tau ∈ peripheralStates S, r = traceDistance rho tau}
/-- PDF p.19, (79): first closeness condition. -/
def OmegaOne {I : Type*} [Fintype I] [DecidableEq I] {n : ℕ}
(S : Set (Mat I)) (nu : ℝ) (rho : Fin n → Mat I) : Prop :=
(n : ℝ)⁻¹ * ∑ i, peripheralDistance S (rho i) ≤ nu
/-- PDF p.19, (80): second closeness condition. The good set is their INTERSECTION. -/
def OmegaTwo {I : Type*} [Fintype I] [DecidableEq I] {n : ℕ}
(S : Set (Mat I)) (nu : ℝ) (rho : Fin n → Mat I) : Prop :=
traceDistance (empiricalBarycenter rho) (divergenceCenter S) ≤ nu
/-- PDF p.18, (76)–(77): all THREE net requirements on the same witness tau. -/
def NetConditions {I : Type*} [Fintype I] [DecidableEq I] [Nonempty I]
(g : ℝ) (G : Finset (Mat I)) : Prop :=
(∀ tau ∈ G, QAlgorithms.IsDensityMatrix tau) ∧
(G.card : ℝ) ≤ (5/g)^(2*(Fintype.card I)^2) * (2*(Fintype.card I : ℝ)/g+2)^(Fintype.card I-1) ∧
∀ rho : Mat I, QAlgorithms.IsDensityMatrix rho → ∃ tau ∈ G,
traceDistance rho tau ≤ g ∧
entropy rho tau ≤ ENNReal.ofReal (g*4*(2*(Fintype.card I : ℝ)+1)) ∧
g/(2*(Fintype.card I : ℝ)+g) ≤ minEigenvalue tau
/-- PDF p.19, (78): the constructed auxiliary state, fixed before the input sequence. -/
def auxiliaryState {I : Type*} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (G : Finset (Mat I)) (n : ℕ) : Mat (Fin n → I) :=
(1/2 : ℝ) • tensorWord (fun _ => divergenceCenter S) +
(1/(2*(G.card : ℝ))) • ∑ tau ∈ G, tensorWord (fun _ => tau)
/-- PDF p.25, (B1): chosen spectral data. Raw data allow forming a product basis
explicitly; validity is separately pinned by IsSpectral, never by arbitrary laws. -/
structure NSSpectralData (I : Type*) where
value : I → ℝ
vector : I → I → ℂ
/-- PDF p.25: an orthonormal eigenbasis and the actual spectral reconstruction. -/
def IsSpectral {I : Type*} [Fintype I] [DecidableEq I]
(A : Mat I) (s : NSSpectralData I) : Prop :=
(∀ i, 0 ≤ s.value i) ∧
(∀ i j, (∑ k, conj (s.vector i k) * s.vector j k) = if i=j then 1 else 0) ∧
A = fun k l => ∑ i, (s.value i : ℂ) * s.vector i k * conj (s.vector i l)
/-- PDF p.25, (B1): first NS distribution in the specified bases. -/
def nsP {I : Type*} [Fintype I] (r s : NSSpectralData I) (a : I × I) : ℝ :=
r.value a.1 * Complex.normSq (∑ k, conj (r.vector a.1 k) * s.vector a.2 k)
/-- PDF p.25, (B1): second NS distribution. -/
def nsQ {I : Type*} [Fintype I] (r s : NSSpectralData I) (a : I × I) : ℝ :=
s.value a.2 * Complex.normSq (∑ k, conj (r.vector a.1 k) * s.vector a.2 k)
/-- PDF p.26, (B3): product eigenvalues AND product eigenvectors, not an independently
chosen basis in a degenerate tensor eigenspace. -/
def productSpectral {I J : Type*} (r : NSSpectralData I) (s : NSSpectralData J) : NSSpectralData (I × J) :=
⟨fun a => r.value a.1 * s.value a.2,
fun a b => r.vector a.1 b.1 * s.vector a.2 b.2⟩
/-- PDF p.25: classical D with infinite support-violation value. -/
def nsClassicalD {A : Type*} [Fintype A] (P Q : A → ℝ) : ℝ≥0∞ :=
if ∀ a, Q a = 0 → P a = 0 then ENNReal.ofReal (∑ a, P a * logTwo (P a / Q a)) else ⊤
/-- PDF p.25: classical variance, on the support-dominated domain. -/
def classicalV {A : Type*} [Fintype A] (P Q : A → ℝ) : ℝ :=
∑ a, P a * (logTwo (P a/Q a) - (nsClassicalD P Q).toReal)^2
/-- PDF p.26, (B8): the classical centered absolute third moment. -/
def classicalT {A : Type*} [Fintype A] (P Q : A → ℝ) : ℝ :=
∑ a, P a * |logTwo (P a/Q a) - (nsClassicalD P Q).toReal|^3
/-- PDF pp.25–26: a canonical choice of eigenbasis, used only for basis-invariant moments. -/
def canonicalSpectral {I : Type*} [Fintype I] [DecidableEq I] (A : Mat I) : NSSpectralData I :=
if h : A.IsHermitian then
⟨h.eigenvalues, fun i j => h.eigenvectorBasis i j⟩
else ⟨fun _ => 0, fun _ _ => 0⟩
/-- PDF p.26, (B8): NS third moment. This is NOT a noncommutative absolute cube. -/
def thirdMoment {I : Type*} [Fintype I] [DecidableEq I] (rho sigma : Mat I) : ℝ :=
classicalT (nsP (canonicalSpectral rho) (canonicalSpectral sigma))
(nsQ (canonicalSpectral rho) (canonicalSpectral sigma))
/-- PDF p.28: weighted variance at the actual barycenter; zero-weight summands contribute zero. -/
def ensembleVariance {I : Type} [Fintype I] [DecidableEq I] (E : Ensemble I) : ℝ :=
∑ i, E.prob i * pairInformationVariance (E.state i) (ensembleAverage E)
/-- PDF p.28: weighted centered NS third moment at the actual barycenter. -/
def ensembleThird {I : Type} [Fintype I] [DecidableEq I] (E : Ensemble I) : ℝ :=
∑ i, E.prob i * thirdMoment (E.state i) (ensembleAverage E)
/-- PDF p.14: finite information I(P), with zero-probability blocks omitted by their weights. -/
def finiteHolevoInformation {I : Type} [Fintype I] [DecidableEq I] (E : Ensemble I) : ℝ :=
∑ i, E.prob i * (entropy (E.state i) (ensembleAverage E)).toReal
/-- PDF p.22: infimum on a subset of Theta_1, so no global extension of f is assumed. -/
def restrictedInf {X : Type*} (Theta : ℕ → Set X) (f : Theta 0 → ℝ) (A : Set X) : ℝ :=
sInf {r | ∃ x : Theta 0, x.val ∈ A ∧ r = f x}
example (I : Type*) : (inferInstance : MeasurableSpace (Mat I)) = borel (Mat I) := by rfl
example : logTwo 1 = 0 := by simp [logTwo]
example {I : Type*} (rho : Fin 0 → Mat I) (a b : Fin 0 → I) : tensorWord rho a b = 1 := by
simp [tensorWord]
example {I : Type*} [Fintype I] [DecidableEq I] (rho : Mat I) :
traceDistance rho rho = 0 := by simp [QAlgorithms.traceDistance, QAlgorithms.traceNorm, cfc_zero]
example {I : Type*} [Fintype I] [DecidableEq I] (S : Set (Mat I)) :
vEpsilon S (1/2) = vMin S := by simp [vEpsilon]
/-- Example 1, PDF p.10: Pauli matrices in the accepted Bool computational basis. -/
def pauliFamily : Fin 4 → Mat Bool :=
![1, QAlgorithms.pauliX, QAlgorithms.pauliY, QAlgorithms.pauliZ]
/-- Example 1, PDF p.10: the actual Pauli channel, not an unconstrained invariant tuple. -/
def pauliMap (p : Fin 4 → ℝ) (A : Mat Bool) : Mat Bool :=
∑ k, p k • (pauliFamily k * A * Matrix.conjTranspose (pauliFamily k))
/-- Example 1, PDF p.10: image of all qubit input states. -/
def pauliImage (p : Fin 4 → ℝ) : Set (Mat Bool) :=
{B | ∃ A : Mat Bool, QAlgorithms.IsDensityMatrix A ∧ B = pauliMap p A}
/-- Example 1, PDF p.10: the three Bloch contraction factors of the Pauli map. -/
def pauliContractions (p : Fin 4 → ℝ) : Fin 3 → ℝ :=
![p 0+p 1-p 2-p 3, p 0-p 1+p 2-p 3, p 0-p 1-p 2+p 3]
/-- Example 1, PDF p.10: comparison BSC is constructed from the longest Bloch semiaxis. -/
def bscCrossover (p : Fin 4 → ℝ) : ℝ :=
(1 - max |pauliContractions p 0| (max |pauliContractions p 1| |pauliContractions p 2|))/2
/-- Example 1, PDF p.10: classical BSC variance, zero at deterministic endpoints. -/
def bscVariance (q : ℝ) : ℝ :=
if q = 0 ∨ q = 1 then 0 else q*(1-q)*(logTwo ((1-q)/q))^2
/-- Example 1, PDF p.10: support cardinality of a finite ensemble, ignoring repeated
labels and zero-weight entries as a probability measure does. -/
def ensembleSize {I : Type} [Fintype I] (E : Ensemble I) : ℕ :=
((Finset.univ.filter fun i => 0 < E.prob i).image E.state).card
/-- Example 1, PDF p.10: all positive-weight states belong to the stated channel image. -/
def EnsembleOn {I : Type} [Fintype I] (S : Set (Mat I)) (E : Ensemble I) : Prop :=
∀ i, 0 < E.prob i → E.state i ∈ S
/-- Example 1, PDF p.10: minimality among ALL capacity-achieving ensembles in the image. -/
def MinimalAchieving {I : Type} [Fintype I] [DecidableEq I]
(S : Set (Mat I)) (E : Ensemble I) : Prop :=
EnsembleOn S E ∧ finiteHolevoInformation E = capacityBits S ∧
∀ F : Ensemble I, EnsembleOn S F → finiteHolevoInformation F = capacityBits S →
ensembleSize E ≤ ensembleSize F
/-- Example 1, PDF p.10: unrestricted n-use quantum code, including entangled inputs.
The block channel is the accepted actual matrix-unit tensor extension. -/
def pauliQuantumBlockLog (p : Fin 4 → ℝ) (e : ℝ) (n : ℕ) : ℝ :=
logTwo (cqOptimalMessages (fun rho : {A : Mat (Fin n → Bool) // QAlgorithms.IsDensityMatrix A} =>
QAlgorithms.piSuperop (fun _ : Fin n => pauliMap p) rho.val) e)
/-- Example 1, PDF p.10, and (1), PDF p.1: unrestricted operational classical capacity. -/
def pauliQuantumCapacity (p : Fin 4 → ℝ) : ℝ :=
Filter.liminf (fun e : ℝ => Filter.liminf
(fun n : ℕ => pauliQuantumBlockLog p e n / n) atTop) (nhdsWithin 0 (Set.Ioi 0))
example : pauliFamily 0 = 1 := by rfl
example : bscVariance 0 = 0 := by simp [bscVariance]
example {I : Type*} [Fintype I] (s : NSSpectralData I) (a : I × I) :
nsP (⟨fun _ => 0, fun _ _ => 0⟩ : NSSpectralData I) s a = 0 := by simp [nsP]
end QAlgorithms.Papers.Independent.Bridge50.P50
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P50.ClosedStateSet
For any finite index type and any set of complex matrices, being a closed state set means precisely that is nonempty, is closed in the matrix topology, and every is positive semidefinite with complex trace exactly . No convexity is required. If is empty, every matrix has trace , so no set satisfies this condition.
QAlgorithms.Papers.Independent.Bridge50.P50.CqTransmissionCode
For arbitrary types , with finite and having decidable equality, and any natural number , a value of this structure consists of a proof that , an encoding function , and complex matrices , one for each message , such that every is positive semidefinite and . The encoding need not be injective. The structure has no values when , and its positive message count and encoding function require to be nonempty. There is no nonemptiness assumption on ; for empty , the matrix conditions hold for the unique empty matrices.
QAlgorithms.Papers.Independent.Bridge50.P50.EnsembleOn
For any finite type , any set of complex matrices on , and any finite ensemble with nonnegative real weights summing to one and positive semidefinite trace-one matrices , this defines the condition
No membership condition is imposed on entries with weight zero, and itself is not assumed to consist of density matrices. Length-zero ensembles are excluded by the weight sum, and an empty admits no such ensemble.
QAlgorithms.Papers.Independent.Bridge50.P50.ErrorEnvelope
For any real and any sequence , this property means
It places no condition on , and neither nor the sequence values are required to be probabilities or to lie in any specified interval.
QAlgorithms.Papers.Independent.Bridge50.P50.FiniteSupport
For any finite index type , probability measure on the space of complex matrices, natural number , and set of such matrices, this property means that there exists a finite set of matrices such that , , and . No positivity or trace condition is imposed on the matrices in or . When , the property is impossible, since the only possible is empty and a probability measure assigns it mass zero.
QAlgorithms.Papers.Independent.Bridge50.P50.IsSpectral
For any finite index type with decidable equality, any complex matrix , and any data consisting of real numbers and complex coordinates , this predicate means
There is no requirement that . The type may be empty, in which case the coordinate conditions are vacuous and the matrix equality is between the unique empty matrices.
QAlgorithms.Papers.Independent.Bridge50.P50.MeasureConvex
For any measurable space and any set of probability measures on , this property means that for every and every pair of extended nonnegative real numbers satisfying , there exists whose underlying measure is . The condition forces both coefficients to be finite, and either coefficient may be zero. The property holds vacuously when is empty.
QAlgorithms.Papers.Independent.Bridge50.P50.MinimalAchieving
For any finite type equipped with decidable equality, any set of complex matrices on , and any finite ensemble whose weights are nonnegative and sum to one and whose states are positive semidefinite with trace one, this defines the conjunction of the following requirements. Put and define
Here takes values in : it is unless both arguments are positive semidefinite of trace one and ; otherwise it is the nonnegative truncation of
where brackets denote matrix functional calculus. Conversion to a real number sends to zero. The required conjunction is that every with belongs to , that , and that, for every other finite ensemble of density matrices with nonnegative weights summing to one, if every positive-weight belongs to and , then
Thus the minimized count is the number of distinct positive-weight states, rather than the number of listed entries. No closedness, nonemptiness, or density-matrix condition is assumed for itself; an empty admits no ensemble .
QAlgorithms.Papers.Independent.Bridge50.P50.NSSpectralData
For any index type , this structure consists of a real-valued function and a complex-valued function . It imposes no finiteness assumption on , no nonnegativity or normalization requirement on , and no orthogonality, normalization, or eigenvector requirement on the rows . Empty index types are allowed.
QAlgorithms.Papers.Independent.Bridge50.P50.NetConditions
For any finite nonempty index type with decidable equality, any real number , and any finite set of complex matrices, put . This predicate requires every to be positive semidefinite with complex trace , requires
and requires that for every positive semidefinite with complex trace , there exists such that
The middle bound is interpreted in . Here is the least eigenvalue of the Hermitian matrix , and when ; otherwise
with matrix functions given by continuous functional calculus. No positivity assumption on is a binder, and all divisions are totalized with division by zero equal to zero. For negative , the distance requirement cannot hold; for , the cardinality bound forces to be empty, contradicting the covering requirement.
QAlgorithms.Papers.Independent.Bridge50.P50.OmegaOne
For any finite index type with decidable equality, any natural number , any set of complex matrices, any real number , and any family of complex matrices, this predicate means
To specify , let consist of positive semidefinite matrices with complex trace , and define unless both matrices belong to and . In the remaining case,
where matrix functions use continuous functional calculus. Put , choose one density matrix attaining if one exists, and otherwise put ; then . Each real infimum over an empty is . No density assumptions are required of the or members of , and may be empty. When , or when is empty, the predicate reduces to , using .
QAlgorithms.Papers.Independent.Bridge50.P50.OmegaTwo
For any finite index type with decidable equality, any natural number , any set of complex matrices, any real number , and any family of complex matrices, this predicate means
Here is a chosen positive semidefinite matrix of complex trace attaining
if such an attaining matrix exists, and is otherwise. The extended-valued quantity is unless are positive semidefinite with complex trace and ; otherwise it is
All matrix functions use continuous functional calculus. Neither the family nor is assumed to consist of density matrices, and may be empty. For , totalized inversion makes , so the predicate compares the distance from to with .
QAlgorithms.Papers.Independent.Bridge50.P50.PeripheralEnsemble
For any finite index type with decidable equality, arbitrary set of complex matrices, and finite ensemble , whose probabilities satisfy and and whose every is positive semidefinite with trace , this property means
Here
with extrema in , and is an arbitrarily chosen density matrix satisfying , if one exists, and the zero matrix otherwise. The quantity is unless both matrices are density matrices and ; otherwise it is
where and are applied spectrally with . Indices of probability zero have no membership or extremality requirement, although their matrices must still be density matrices. The normalization of the probabilities excludes an ensemble of size zero.
QAlgorithms.Papers.Independent.Bridge50.P50.auxiliaryState
For any finite index type with decidable equality, any set of complex matrices, any finite set of such matrices, and any natural number , this defines a matrix on functions by
The matrix is chosen from the positive semidefinite matrices of complex trace minimizing , if a minimizer exists, and is otherwise. Here unless both matrices are positive semidefinite with complex trace and ; otherwise
using continuous functional calculus. There are no density or nonemptiness requirements on or , and may be empty. If , its contribution is zero, using totalized division. If , every product is , so the unique matrix entry is when and when .
QAlgorithms.Papers.Independent.Bridge50.P50.blockLog
For arbitrary types , with finite and having decidable equality, any function , any real , and any natural , this defines , where is the natural-number supremum of the positive message counts admitting input words and positive semidefinite matrices on such that
There are no density-matrix assumptions on or restrictions on . An empty or unbounded set of eligible message counts gives , and the total real logarithm then gives value . The case is included, with the one-by-one matrix .
QAlgorithms.Papers.Independent.Bridge50.P50.borelHolevoInformation
For any finite index type with decidable equality and any probability measure on complex matrices, the Borel Holevo information is the nonnegative extended integral
where the barycenter is a Bochner integral, assigned the zero matrix if the identity function is not integrable. The quantity is unless both arguments are positive semidefinite of trace and ; otherwise it is , with , continuous functional calculus, and . No density support, integrability, or finiteness assumption is imposed on ; the outer integral is the lower Lebesgue integral and may be .
QAlgorithms.Papers.Independent.Bridge50.P50.bscCrossover
For any four real numbers , this defines the real number
There are no hypotheses on , so this definition does not require its value to be nonnegative or to lie in a probability interval.
QAlgorithms.Papers.Independent.Bridge50.P50.bscVariance
For every real number , this defines
The definition applies to all real , including values outside . Here the real logarithm is the total real logarithm used in the code: it is zero at zero and equals for negative .
QAlgorithms.Papers.Independent.Bridge50.P50.canonicalSpectral
For any finite type with decidable equality and any complex matrix indexed by , this defines a pair consisting of a real-valued function and complex coordinates . If is Hermitian, these are the library-chosen eigenvalues of and the coordinates of its chosen orthonormal eigenvector basis, so is coordinate of eigenvector ; no ordering of the indices by eigenvalue is specified here. If is not Hermitian, both functions are identically zero. The definition also permits an empty , in which case both functions have empty domains.
QAlgorithms.Papers.Independent.Bridge50.P50.capacityBits
For any finite index type with decidable equality and arbitrary set of complex matrices, this definition takes the extended nonnegative quantity
and converts it to a real number, retaining its value when finite and returning zero when . A density matrix means a positive semidefinite matrix with trace . Here unless both matrices are density matrices and ; otherwise
where and are applied spectrally, using . No nonemptiness or regularity condition is imposed on , and need not consist of density matrices. An empty gives value zero; if is empty, there are no density matrices, so and the returned real value is also zero.
QAlgorithms.Papers.Independent.Bridge50.P50.centers
For any finite index type with decidable equality and any set of complex matrices, the centers are precisely the matrices with satisfying
Here unless both arguments are positive semidefinite of trace and ; otherwise
using continuous functional calculus and . The equality is in , so equality at is permitted. Existence and uniqueness of a center are not asserted. Empty suprema are , and an infimum over no density matrices is .
QAlgorithms.Papers.Independent.Bridge50.P50.classicalT
For any finite type and arbitrary functions , put , and let be the extended nonnegative real equal to
if for every , and otherwise. Then
where conversion to a real sends to . No probability assumptions on are imposed; in particular, the weights may be negative. Division by zero and the logarithm at zero both have value , and the result is when is empty.
QAlgorithms.Papers.Independent.Bridge50.P50.classicalV
For any finite type and arbitrary functions , define and
The definition assigns
where the superscript “real” converts a finite extended nonnegative real to its real value and converts to . Neither nonnegativity nor normalization of is assumed. Division by zero is , the real logarithm at is , and an empty index type gives an empty sum, hence value .
QAlgorithms.Papers.Independent.Bridge50.P50.conditionalVariance
For any finite index type with decidable equality, probability measure on complex matrices, and arbitrary complex matrix , this definition gives the real integral
where , , and denotes the total real functional calculus: it applies to the eigenvalues of a Hermitian matrix , and is zero for a non-Hermitian matrix. The real logarithm uses . Neither nor the matrices distributed according to are required to be density matrices, and no support-inclusion or integrability hypothesis is imposed. The integral is the total real-valued integral, which is zero when its integrand is not integrable.
QAlgorithms.Papers.Independent.Bridge50.P50.cqAverageError
For arbitrary types , with finite and having decidable equality, any natural , any function , and any code consisting of encoded inputs and positive semidefinite decoding matrices with , this defines the real number
No positivity or trace-one condition is assumed for , so the definition does not require this number to lie in . The code argument rules out .
QAlgorithms.Papers.Independent.Bridge50.P50.cqBlockChannel
For arbitrary types , any function , and any natural number , this defines a function taking an input word to the matrix indexed by words whose entries are
Neither type is required to be finite, and no positivity or normalization is assumed for . When , the empty product is , so the output is the one-by-one matrix with entry , indexed by the unique empty word.
QAlgorithms.Papers.Independent.Bridge50.P50.cqJointState
For any finite index type and finite ensemble , with , , and every a positive semidefinite complex matrix of trace , this definition gives the complex matrix indexed by whose entries are
Thus the -th diagonal block is , including the zero block when . The ensemble assumptions exclude .
QAlgorithms.Papers.Independent.Bridge50.P50.cqOperationalCapacity
For arbitrary types , with finite and having decidable equality, and any function , this defines the real number
Here is the natural-number supremum of the positive integers admitting input words and positive semidefinite matrices on , with , for which
The outer lower limit uses the neighborhood filter of restricted to positive real errors. Both lower limits are taken in , not the extended reals. No density-matrix condition is imposed on . Empty or unbounded eligible message-count sets give , whose real logarithm is ; the expression also includes , where total real division by zero gives .
QAlgorithms.Papers.Independent.Bridge50.P50.cqOptimalMessages
For arbitrary types , with finite and having decidable equality, any function , and any real , this defines the natural-number supremum of all for which there exist , encoded inputs , and positive semidefinite complex matrices satisfying
There are no density-matrix assumptions on , no restriction on , and no injectivity requirement on the encoding. If the set of such message counts is nonempty and bounded, the value is its largest member; the total supremum in is when that set is empty or unbounded.
QAlgorithms.Papers.Independent.Bridge50.P50.cqRemainder
For arbitrary types , with finite and having decidable equality, any function , any real , and any natural , this defines
where the closure is in the matrix topology. Here is the natural-number supremum of positive message counts admitting words and matrices on , with , such that , where . To define the remaining quantities, write for continuous functional calculus and . Let unless both matrices belong to and ; otherwise let it be the nonnegative part of . Set , , and choose a density matrix attaining this infimum if one exists, setting otherwise. Let be the Borel probability measures concentrated on whose matrix-valued integral is . For , define
The value is the real infimum of the integrals , , when , and their real supremum otherwise; . No density assumptions on or restrictions on are imposed. The conversion sends to ; empty real infima and suprema are , empty or unbounded natural message-count suprema are , , and square roots of negative reals are . At , the subtracted expression is , and the block matrices use the empty product .
QAlgorithms.Papers.Independent.Bridge50.P50.divergenceCenter
For any finite index type with decidable equality and any set of complex matrices, the divergence center is an arbitrarily chosen matrix from
if this set is nonempty, and is the zero matrix otherwise. In this formula, unless both matrices are positive semidefinite with trace and ; otherwise it is , where , matrix functions use continuous functional calculus, and . Empty suprema equal , and an infimum over no density matrices equals . The choice need not be unique, and the zero fallback need not be a density matrix.
QAlgorithms.Papers.Independent.Bridge50.P50.divergenceRadius
For any finite index type with decidable equality and any set of complex matrices, the divergence radius is
The quantity is if either matrix fails to be positive semidefinite with trace , or if ; otherwise it equals
with matrix functions defined by continuous functional calculus and . This definition asserts neither finiteness nor attainment. The inner supremum is when is empty; the outer infimum is when there are no density matrices, as happens for empty .
QAlgorithms.Papers.Independent.Bridge50.P50.empiricalBarycenter
For any finite index type , any natural number , and any family of complex matrices, the empirical barycenter is
where the scalar is real. The matrices need not be positive or normalized. The case is included: the empty sum and the totalized inverse are both zero, so the result is the zero matrix. The index type may also be empty.
QAlgorithms.Papers.Independent.Bridge50.P50.empiricalInformation
For any finite type with decidable equality, any natural , any family of complex matrices, and any such matrix , this defines
Here unless are positive semidefinite with complex trace and . When these conditions hold, writing for continuous functional calculus, it is
The conversion to a real number sends to , so a summand failing these conditions contributes . There are no density or support hypotheses on the arguments. When , the sum is empty and the result is , using the total inverse .
QAlgorithms.Papers.Independent.Bridge50.P50.empiricalVariance
For any finite type with decidable equality, any natural , any family of complex matrices, and any such matrix , this defines
where, writing for continuous functional calculus,
No positivity, normalization, nonzero, or kernel-inclusion assumptions are imposed on these matrices; the expression uses the stated total functional-calculus formulas without an infinite-value branch or nonnegative truncation. When , the empty sum and give value .
QAlgorithms.Papers.Independent.Bridge50.P50.ensembleSize
For any finite type and any finite ensemble consisting of a natural-number length , real weights with , and complex matrices on with and for every index , this defines
It counts distinct matrices occurring with strictly positive weight: repeated equal matrices are counted once, and zero-weight entries are omitted. Although the ensemble length is a natural number, the weight conditions exclude length zero; if is empty, no such ensemble exists.
QAlgorithms.Papers.Independent.Bridge50.P50.ensembleThird
For any finite type with decidable equality, let be a finite ensemble with , , and each positive semidefinite of trace , and put . For each , take the library-chosen eigenvalues and orthonormal eigenvectors of and of , and set
With , let be the extended nonnegative real when for all , and otherwise. Then
Conversion of to a real gives ; division by zero and the logarithm at zero are also . The spectral-data rule uses identically zero data for a non-Hermitian matrix. Zero ensemble weights are permitted, while size zero and an empty are excluded by the ensemble requirements themselves.
QAlgorithms.Papers.Independent.Bridge50.P50.ensembleVariance
For any finite type with decidable equality, let be a finite ensemble: it has a natural-number size , weights satisfying , and complex matrices indexed by , each positive semidefinite with complex trace . Put , let mean the continuous functional calculus of , and set
Here functions of matrices are evaluated by continuous functional calculus, with the real logarithm at zero equal to . The definition assigns
No kernel-inclusion condition is checked in this expression. Zero weights are allowed, but an ensemble of size zero, or an ensemble on an empty , cannot satisfy the stated ensemble requirements.
QAlgorithms.Papers.Independent.Bridge50.P50.finiteHolevoInformation
For any finite type with decidable equality and any finite ensemble , where the weights are nonnegative and sum to and each is positive semidefinite of trace , put . Define to be unless both matrices are positive semidefinite of trace and ; when these conditions hold, define
using continuous functional calculus and . The definition is
where a finite extended nonnegative real converts to its real value and converts to . Zero weights are allowed; an ensemble of size zero or on an empty cannot meet the ensemble requirements.
QAlgorithms.Papers.Independent.Bridge50.P50.measuresOn
For any finite index type and any set of complex matrices, the measures on are precisely the probability measures on the ambient matrix space satisfying . No assumption requires to be measurable, closed, nonempty, or composed of density matrices, and no finite support condition is imposed on . For nonmeasurable , the expression still uses the measure’s assigned value on that set. If is empty, there are no such measures.
QAlgorithms.Papers.Independent.Bridge50.P50.normalizedTestingDivergence
For any finite index type with decidable equality, any real , and any complex matrices indexed by , define
The normalized testing divergence is if ; otherwise it is
viewed in . There are no assumptions that are density matrices or that lies in . The real infimum is totalized: an empty feasible set, or one unbounded below, has infimum . Real division by zero is , and the real logarithm is totalized with and for negative ; thus the definition also covers and negative .
QAlgorithms.Papers.Independent.Bridge50.P50.nsClassicalD
For any finite index type and arbitrary real-valued functions , this defines an element of by
Neither function is required to be nonnegative or sum to . Division is totalized, with division by zero equal to zero; the real logarithm satisfies and, for negative inputs, equals the logarithm of the absolute value. The finite branch truncates the entire real sum below at zero. For empty , the condition is vacuous and the value is .
QAlgorithms.Papers.Independent.Bridge50.P50.nsP
For any finite index type , two data sets and , each consisting of a real-valued function on and a complex-valued function on , and any pair , this defines the real number
The squared modulus is the sum of the squares of the real and imaginary parts. No nonnegativity, normalization, orthogonality, or spectral-decomposition assumptions are imposed on either data set, so this value need not be nonnegative. Empty is permitted, although then no pair exists.
QAlgorithms.Papers.Independent.Bridge50.P50.nsQ
For any finite index type , two data sets and , each consisting of a real-valued function on and a complex-valued function on , and any pair , this defines the real number
The squared modulus is the sum of the squares of the real and imaginary parts. Neither data set is required to have nonnegative values, normalized or orthogonal vectors, or any relationship to a matrix. Thus the resulting number need not be nonnegative. Empty is allowed, with no available pair .
QAlgorithms.Papers.Independent.Bridge50.P50.pauliContractions
For any four real numbers , this defines the three-component real vector
whose components are indexed by . No restrictions on the four inputs are imposed.
QAlgorithms.Papers.Independent.Bridge50.P50.pauliFamily
This defines a family of four complex matrices indexed by . With rows and columns ordered as , they are
QAlgorithms.Papers.Independent.Bridge50.P50.pauliImage
For any function , this defines the set of complex matrices
where, in Boolean order , , , , and . Thus membership requires an input positive semidefinite matrix of trace one; there is no assumption that the four real coefficients are nonnegative or sum to one.
QAlgorithms.Papers.Independent.Bridge50.P50.pauliMap
For any four real numbers and any complex matrix whose rows and columns are indexed by the two Boolean values, this defines
where the displayed matrices use the order and denotes conjugate transpose. The definition imposes no nonnegativity or normalization condition on , and no positivity or trace condition on .
QAlgorithms.Papers.Independent.Bridge50.P50.pauliQuantumBlockLog
For arbitrary real coefficients , an arbitrary real error parameter , and any natural number , this defines , where is the supremum in the natural numbers of the message counts described below. Set
using Boolean order , and let its -fold matrix-unit extension be
where has its sole nonzero entry, equal to one, at . A message count qualifies if and there exist arbitrary input density matrices on the Boolean coordinates and output matrices with such that
No distribution assumptions on or bounds on are imposed. The case is included, with empty products equal to one and a single empty bit string. The natural-number supremum is zero for an empty or unbounded qualifying set, and the total real logarithm assigns .
QAlgorithms.Papers.Independent.Bridge50.P50.pauliQuantumCapacity
For any four arbitrary real coefficients , this defines the real iterated lower limit
To define , put , where, in Boolean order, , , , and ; define
Then is the natural-number supremum of all for which there are input matrices of trace one and matrices summing to the identity, indexed by , satisfying
The coefficients need not be nonnegative or normalized. Both lower limits are taken in the real numbers; the outer one approaches zero through positive real errors. The natural-number supremum is zero when its defining set is empty or unbounded, , and the term at uses the total-division convention that division by zero is zero.
QAlgorithms.Papers.Independent.Bridge50.P50.peripheralAt
For any finite index type with decidable equality, any set of complex matrices, and any complex matrix , the peripheral set at is
The value is unless both matrices are positive semidefinite with trace and ; otherwise it equals , where , matrix functions use continuous functional calculus, and . Neither argument is assumed to consist of states. Equality at is allowed, and attainment is not asserted. If is empty, this peripheral set is empty, while the supremum defining its radius is .
QAlgorithms.Papers.Independent.Bridge50.P50.peripheralDistance
For any finite index type with decidable equality, any set of complex matrices, and any complex matrix , this defines
Here square roots are given by continuous functional calculus, and is defined as follows. Write for the positive semidefinite matrices with complex trace exactly . Define unless and ; otherwise define
using continuous functional calculus and . Set and , with these extrema taken in . Choose one satisfying , if such a matrix exists; otherwise put . Then . No density or nonemptiness assumptions are imposed on , , or . If is empty, the real-valued infimum in this definition is .
QAlgorithms.Papers.Independent.Bridge50.P50.peripheralMeasures
For any finite index type with decidable equality and any set of complex matrices, let be an arbitrarily chosen density matrix attaining , if one exists, and the zero matrix otherwise. The peripheral measures are exactly the ambient matrix-space probability measures such that
Here density means positive semidefinite with trace ; unless both arguments are densities and , and otherwise equals , where , matrix functions use continuous functional calculus, and . Empty suprema equal , an infimum over no density matrices equals , and equality at infinity is permitted. The integral is the Bochner integral, with zero as its nonintegrable fallback. No closedness, state membership, finite support, or existence of such a measure is assumed.
QAlgorithms.Papers.Independent.Bridge50.P50.peripheralStates
For any finite index type with decidable equality and any set of complex matrices, choose arbitrarily among the density matrices minimizing over density matrices , if any minimizer exists, and put otherwise. The peripheral states are defined to be
Here a density matrix is positive semidefinite of trace , and unless both arguments are density matrices and ; otherwise , with , continuous functional calculus, and . Empty suprema are , the infimum over no density matrices is , and equality at infinity is permitted. No assumption ensures that contains only states, that a center exists, or that this peripheral set is nonempty.
QAlgorithms.Papers.Independent.Bridge50.P50.productSet
For any index type , arbitrary set of complex matrices, and natural number , this definition gives the set of complex matrices indexed by functions for which there exists a family , with every , such that
No finiteness or nonemptiness assumption on , or positivity or normalization assumption on , is imposed. For , the membership conditions on the family are vacuous and the set consists of the matrix with entry , even if is empty; for , an empty gives an empty set.
QAlgorithms.Papers.Independent.Bridge50.P50.productSpectral
For any index types , data with and , and data with and , this constructs data on whose values and vector coordinates are
There are no finiteness, nonemptiness, positivity, normalization, or orthogonality assumptions, and no assertion that the input or output data describe spectral decompositions.
QAlgorithms.Papers.Independent.Bridge50.P50.radiusAt
For any finite index type with decidable equality, any set of complex matrices, and any complex matrix , the radius at is
Here unless both matrices are positive semidefinite with trace and ; when these conditions hold,
where matrix functions use continuous functional calculus and the real logarithm has value at . No state, closedness, or nonemptiness assumption is imposed on or . For , the supremum is .
QAlgorithms.Papers.Independent.Bridge50.P50.referenceState
For any finite index type and finite ensemble , with , , and every a positive semidefinite complex matrix of trace , this definition gives the complex matrix indexed by with entries
Every diagonal block is therefore the ensemble average multiplied by the probability of that block's index. Zero probabilities are allowed, while the normalization excludes .
QAlgorithms.Papers.Independent.Bridge50.P50.restrictedInf
For any type , any family of subsets indexed by , any real-valued function on the subtype consisting of elements of , and any subset , this defines
Only is used; no condition is imposed on the other sets or on . This is the real-valued infimum convention, giving if the set of values is empty or is unbounded below.
QAlgorithms.Papers.Independent.Bridge50.P50.secondOrder
For any finite type with decidable equality, any set of complex matrices, any real , and any natural , this defines
To specify all these quantities, let , and let denote the continuous functional calculus of the real function at . Define unless and ; otherwise define it as
Set and ; the conversion sends to . Choose satisfying if such a matrix exists, and otherwise set . Let consist of the Borel probability measures giving mass to and having matrix-valued integral . With , put
Then is the real infimum of when , and its real supremum when . Finally,
There are no closedness, nonemptiness, or density assumptions on , and is unrestricted. These are total real infima and suprema, with empty-set value ; the real square root is on negative arguments. In particular, gives value .
QAlgorithms.Papers.Independent.Bridge50.P50.stateBarycenter
For any finite index type and any probability measure on the space of complex matrices, the state barycenter is the matrix-valued Bochner integral
The measure is not required to give full mass to density matrices, and integrability of the identity function is not assumed. Under the totalized definition of the Bochner integral, this value is the zero matrix when that function is not integrable.
QAlgorithms.Papers.Independent.Bridge50.P50.tensorWord
For any index type , natural number , and family of arbitrary complex matrices, this definition gives the complex matrix indexed by functions with entries
Neither finiteness nor nonemptiness of , nor positivity or normalization of the matrices, is required. When , the indexing function space is a singleton and the empty product is , so the result is the matrix with entry , even when is empty.
QAlgorithms.Papers.Independent.Bridge50.P50.testingRadius
For any finite type with decidable equality, any set of complex matrices, and any real , this defines
where, writing
the quantity is if , and otherwise is
The infimum defining is the total real infimum, whose value on the empty set is . No density-matrix condition is imposed on members of , and is unrestricted; real division and logarithms retain their total definitions, including division by zero and . An empty gives inner supremum ; if is empty, there are no trace-one matrices and the outer infimum is .
QAlgorithms.Papers.Independent.Bridge50.P50.thirdMoment
For any finite type with decidable equality and arbitrary complex matrices indexed by , choose data for and for as follows: for a Hermitian matrix use its library-chosen real eigenvalues and orthonormal eigenvector basis; for a non-Hermitian matrix use zero eigenvalues and zero vectors. On , set
Writing , let if every zero has , and let otherwise. The definition is
where converts to the real . There are no positivity or trace assumptions on either matrix; division by zero and the logarithm at zero are . An empty , or a non-Hermitian input matrix, makes this value .
QAlgorithms.Papers.Independent.Bridge50.P50.vEpsilon
For any finite index type with decidable equality, arbitrary set of complex matrices, and real number , this definition returns the infimum of the set below when , and its supremum when :
To define these symbols, a density matrix is positive semidefinite with trace ; put unless both arguments are density matrices and , and otherwise put
These last extrema are in . Choose arbitrarily among density matrices satisfying , using if there is none, and set . Finally,
where , , and applies spectrally to Hermitian matrices and is zero otherwise, with . All integrals are total integrals, returning zero for nonintegrable integrands. The real infimum is zero for an empty or unbounded-below set, and the real supremum is zero for an empty or unbounded-above set. There is no restriction , and equality selects the infimum.
QAlgorithms.Papers.Independent.Bridge50.P50.vMax
For any finite index type with decidable equality and arbitrary set of complex matrices, this definition gives
Here a density matrix is positive semidefinite with trace ; define unless both arguments are density matrices and , and otherwise define
The suprema and infimum defining are in . The matrix is an arbitrarily chosen density matrix satisfying , if one exists, and is the zero matrix otherwise; . The integrand is
where , , and applies spectrally to Hermitian and is zero otherwise, with . The integrals use the total integral, returning zero for a nonintegrable integrand. No nonemptiness, closedness, or density-matrix condition is assumed for . The outer supremum is a real supremum, returning zero if its defining set is empty or unbounded above.
QAlgorithms.Papers.Independent.Bridge50.P50.vMin
For any finite index type with decidable equality and arbitrary set of complex matrices, this definition gives
Here a density matrix is positive semidefinite with trace ; define unless both arguments are density matrices and , and otherwise define
The suprema and infimum defining are in . The matrix is an arbitrarily chosen density matrix satisfying , if one exists, and is the zero matrix otherwise; . The integrand is
where , , and applies spectrally to Hermitian and is zero otherwise, with . The integrals use the total integral, returning zero for a nonintegrable integrand. No nonemptiness, closedness, or density-matrix condition is assumed for . The outer infimum is a real infimum, returning zero if its defining set is empty or unbounded below.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.