Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Entanglement-Assisted Classical Capacity of Noisy Quantum Channels

Definition
QAlgorithms_Papers_Independent_Gap48_P21

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Entanglement-Assisted Classical Capacity of Noisy Quantum Channels (arXiv:quant-ph/9904023) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • accessibleValues: PDF p.2, Fig.1b: all single-use accessible mutual information values. The finite ensemble, normalized states and POVM precede the sampled input.
  • oneShotCapacity: PDF p.2: C1 optimizes actual input/output classical mutual information.
  • symmetricEntropy: PDF p.2, Eq.(1): one probability p and d-1 equal remaining probabilities. Only d>=2 and p in [0,1] occur in statements; zero log zero contributes zero.
  • basisProjector: PDF p.2: the projectors of an arbitrary orthonormal basis.
  • basisInformation: PDF p.2, Eq.(1): the uniform basis preparation and same-basis measurement.
  • randomizing: PDF pp.2--3: replacement by a uniform symbol with probability x.
  • classicalErasure: PDF p.3: a classical erasure has exactly one additional flag.
  • kernelCapacity: PDF pp.1--3: Shannon capacity of an actual classical arm. Invalid kernels have a zero total extension and are excluded wherever used as simulators.
  • encodedBell: PDF p.3, Fig.2a: Alice applies W_s to the accepted normalized Bell resource; Bob is first.
  • denseKernel: PDF p.3, Fig.2a: the fixed dense-coding encoder and Bell decoder.
  • denseRate: PDF p.3: C_Sd is the capacity of this specific induced classical channel.
  • teleportMap: PDF p.3, Fig.2b: actual teleportation with classical transition matrix P. Bell measurement convention: outcome s has subchannel W_s† X W_s/d²; the receiver applies W_t. Thus a noiseless arm gives the identity channel.
  • measurePrepare: PDF p.2, Fig.1c: Haar-random common basis, basis measurement, classical arm, and preparation in the same common basis. Complex traces extend the physical map linearly to all operators, including off-diagonal reference blocks.
  • erasureBellEffect: PDF p.3: Bell measurement on the surviving sector, one flag on the erased sector. The reference is first and the channel output is second.
  • erasureDenseKernel: PDF p.3: actual dense coding through a quantum erasure channel.
  • erasureTeleportMap: PDF p.3: teleportation using a classical arm with an erasure output. On a flag Bob produces the orthogonal erasure symbol, not a d-dimensional state.
  • replaceFlag: PDF p.3: the receiver's actual replacement map, retained although the full capacity-reduction node is deferred because its Q2 interface is missing.
  • EbitTransmissionCode: PDF pp.1,4: a quantum transmission code with e prior EPR pairs, no classical side channel, arbitrary local CPTP maps and n counted parallel channel uses.
  • quantumCodeMap: PDF p.4: actual effective quantum channel; the resource is independent of all unknown states. The first register belongs to Bob throughout.
  • EbitTransmissionAchievable: PDF p.4: arbitrary e for QE. One code precedes EVERY unit input vector. Fidelity tends uniformly to one, and the block rate is k/n in qubits.
  • ebitTransmissionCapacity: PDF p.4: QE is an independently operational supremum, not CE/2. Unassisted Q is imported from the accepted operational transmission definition.
  • SourceClassicalFamily: PDF p.4, note [4]: only the actual symmetric and erasure families used here, up to fixed alphabet bijections; no invented general class of symmetric DMCs.
  • RandomCodebook: PDF p.4, note [4]: a finite random codebook, chosen independently of input. Every book is nonempty and has an explicit fallback member; at most 2^b output words permit a fixed b-bit index message. Shared randomness is unrestricted.
  • bookConditional: PDF p.4, note [4]: native block probabilities renormalized inside the chosen book. If its mass is zero, output the designated member rather than zero mass.
  • bookAverage: PDF p.4, note [4]: average shared randomness BEFORE comparing with the target.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P45
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P43
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P27
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P80
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P12

/-!
Bennett--Shor--Smolin--Thapliyal, arXiv:quant-ph/9904023v5.
All locators refer to PDF pages. Capacities are operational; C1 is accessible
information, not Holevo information. The noise range is always [0,1].
Compilation and independent moderation are pending the batch handoff.
-/

-- Match the transparency setting used by the accepted Haar-measure module.
set_option backward.isDefEq.respectTransparency.types false

noncomputable section

open scoped BigOperators Matrix ComplexConjugate Matrix.Norms.Elementwise
open Filter MeasureTheory

namespace QAlgorithms.Papers.Independent.Gap48.P21

attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq

-- Reuse the finite Pi-space extended norm explicitly. Matrix has the same
-- product topology, but the generic instance search did not bridge the alias.
local instance matrixContinuousENorm (d : ℕ) :
    ContinuousENorm (Matrix (Fin d) (Fin d) ℂ) :=
  inferInstanceAs (ContinuousENorm (Fin d → Fin d → ℂ))

open QAlgorithms.Papers.Independent.Dependency50.P45
  (resourceCapacity standardEbit DMC shannonCapacity blockProb)
open QAlgorithms.Papers.Independent.Claimed50.P43 (finiteWeyl chaotic)
open QAlgorithms.Papers.Independent.Information100.P58 (singleErasure)
open QAlgorithms.Papers.Independent.Information100.P27 (qubitDephasing)

-- CE uses resourceCapacity standardEbit directly; C uses the same accepted
-- operational capacity with the one-dimensional product resource.
open QAlgorithms.Papers.Independent.Information100.P80 (quantumCapacity)
open QAlgorithms.Papers.Independent.Frontier30.P12 (IsStochastic)

/-- PDF p.2, Fig.1b: all single-use accessible mutual information values.
The finite ensemble, normalized states and POVM precede the sampled input. -/
def accessibleValues {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : Set ℝ :=
  {v | ∃ (m l : ℕ) (q : Fin m → ℝ) (rho : Fin m → Matrix A A ℂ)
      (M : Fin l → Matrix B B ℂ),
    (∀ i, 0 ≤ q i) ∧ (∑ i, q i = 1) ∧ (∀ i, IsDensityMatrix (rho i)) ∧
    IsPOVM M ∧ v = mutualInfoBits (fun z : Fin m × Fin l =>
      q z.1 * effectProb (M z.2) (N (rho z.1)))}

/-- PDF p.2: C1 optimizes actual input/output classical mutual information. -/
def oneShotCapacity {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : ℝ :=
  sSup (accessibleValues N)

/-- PDF p.2, Eq.(1): one probability p and d-1 equal remaining probabilities.
Only d>=2 and p in [0,1] occur in statements; zero log zero contributes zero. -/
def symmetricEntropy (d : ℕ) (p : ℝ) : ℝ :=
  -p * Real.logb 2 p - (1-p) * Real.logb 2 ((1-p) / (d-1 : ℕ))

/-- PDF p.2: the projectors of an arbitrary orthonormal basis. -/
def basisProjector {d : ℕ} (U : Matrix.unitaryGroup (Fin d) ℂ) (i : Fin d) :
    Matrix (Fin d) (Fin d) ℂ :=
  pureDensity (act (U : Matrix (Fin d) (Fin d) ℂ) (ket i))

/-- PDF p.2, Eq.(1): the uniform basis preparation and same-basis measurement. -/
def basisInformation {d : ℕ} (N : Superop (Fin d) (Fin d))
    (U : Matrix.unitaryGroup (Fin d) ℂ) : ℝ :=
  mutualInfoBits (fun z : Fin d × Fin d =>
    (d : ℝ)⁻¹ * effectProb (basisProjector U z.2) (N (basisProjector U z.1)))

/-- PDF pp.2--3: replacement by a uniform symbol with probability x. -/
def randomizing {A : Type*} [Fintype A] [DecidableEq A] (x : ℝ) : A → A → ℝ :=
  fun a b => (if a = b then 1-x else 0) + x / Fintype.card A

/-- PDF p.3: a classical erasure has exactly one additional flag. -/
def classicalErasure {A : Type*} [DecidableEq A] (x : ℝ) : A → Option A → ℝ :=
  fun a b => match b with
    | some c => if a = c then 1-x else 0
    | none => x

/-- PDF pp.1--3: Shannon capacity of an actual classical arm. Invalid kernels
have a zero total extension and are excluded wherever used as simulators. -/
def kernelCapacity {X Y : Type} [Fintype X] [Fintype Y]
    (P : X → Y → ℝ) : ℝ :=
  if h : IsStochastic P then shannonCapacity ⟨P, (fun x y => (h x).1 y), (fun x => (h x).2)⟩ else 0

/-- PDF p.3, Fig.2a: Alice applies W_s to the accepted normalized Bell resource; Bob is first. -/
def encodedBell (d : ℕ) (hd : 0 < d) (s : Fin d × Fin d) :
    EuclideanSpace ℂ (Fin d × Fin d) :=
  act (Matrix.kronecker (1 : Matrix (Fin d) (Fin d) ℂ) (finiteWeyl d hd s.1 s.2))
    (QAlgorithms.Papers.Independent.Information100.P22.bell (Fin d))

/-- PDF p.3, Fig.2a: the fixed dense-coding encoder and Bell decoder. -/
def denseKernel (d : ℕ) (hd : 0 < d) (N : Superop (Fin d) (Fin d)) :
    (Fin d × Fin d) → (Fin d × Fin d) → ℝ :=
  fun s t => effectProb (pureDensity (encodedBell d hd t))
    (idTensorSuperop N (pureDensity (encodedBell d hd s)))

/-- PDF p.3: C_Sd is the capacity of this specific induced classical channel. -/
def denseRate (d : ℕ) (hd : 0 < d) (N : Superop (Fin d) (Fin d)) : ℝ :=
  kernelCapacity (denseKernel d hd N)

/-- PDF p.3, Fig.2b: actual teleportation with classical transition matrix P.
Bell measurement convention: outcome s has subchannel W_s† X W_s/d²;
the receiver applies W_t. Thus a noiseless arm gives the identity channel. -/
def teleportMap (d : ℕ) (hd : 0 < d)
    (P : (Fin d × Fin d) → (Fin d × Fin d) → ℝ) : Superop (Fin d) (Fin d) :=
  fun X => ∑ s, ∑ t, ((P s t / (d : ℝ)^2 : ℝ) : ℂ) •
    conjSuperop (finiteWeyl d hd t.1 t.2 * (finiteWeyl d hd s.1 s.2)ᴴ) X

/-- PDF p.2, Fig.1c: Haar-random common basis, basis measurement, classical arm,
and preparation in the same common basis. Complex traces extend the physical
map linearly to all operators, including off-diagonal reference blocks. -/
def measurePrepare (d : ℕ) (P : Fin d → Fin d → ℝ) : Superop (Fin d) (Fin d) :=
  fun X => ∫ U : Matrix.unitaryGroup (Fin d) ℂ,
    ∑ i, ∑ j, ((P i j : ℂ) * (basisProjector U i * X).trace) • basisProjector U j
    ∂Schur.unitaryHaar d

/-- PDF p.3: Bell measurement on the surviving sector, one flag on the erased
sector. The reference is first and the channel output is second. -/
def erasureBellEffect (d : ℕ) (hd : 0 < d) (t : Option (Fin d × Fin d)) :
    Matrix (Fin d × Option (Fin d)) (Fin d × Option (Fin d)) ℂ :=
  fun a b => match t, a.2, b.2 with
    | some s, some i, some j => pureDensity (encodedBell d hd s) (a.1,i) (b.1,j)
    | none, none, none => if a.1 = b.1 then 1 else 0
    | _, _, _ => 0

/-- PDF p.3: actual dense coding through a quantum erasure channel. -/
def erasureDenseKernel (d : ℕ) (hd : 0 < d) (x : ℝ) :
    (Fin d × Fin d) → Option (Fin d × Fin d) → ℝ :=
  fun s t => effectProb (erasureBellEffect d hd t)
    (idTensorSuperop (singleErasure d x) (pureDensity (encodedBell d hd s)))

/-- PDF p.3: teleportation using a classical arm with an erasure output.
On a flag Bob produces the orthogonal erasure symbol, not a d-dimensional state. -/
def erasureTeleportMap (d : ℕ) (hd : 0 < d)
    (P : (Fin d × Fin d) → Option (Fin d × Fin d) → ℝ) :
    Superop (Fin d) (Option (Fin d)) :=
  fun X a b => match a,b with
    | some i, some j => (teleportMap d hd (fun s t => P s (some t)) X) i j
    | none, none => (((∑ s, P s none) / (d : ℝ)^2 : ℝ) : ℂ) * X.trace
    | _, _ => 0

/-- PDF p.3: the receiver's actual replacement map, retained although the full
capacity-reduction node is deferred because its Q2 interface is missing. -/
def replaceFlag (d : ℕ) : Superop (Option (Fin d)) (Fin d) :=
  fun X i j => X (some i) (some j) + if i = j then X none none / d else 0

/-- PDF pp.1,4: a quantum transmission code with e prior EPR pairs, no classical
side channel, arbitrary local CPTP maps and n counted parallel channel uses. -/
structure EbitTransmissionCode (A B : Type*) [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (n k e : ℕ) where
  encode : Superop (Qubits k × Qubits e) (Fin n → A)
  encode_channel : IsChannel encode
  decode : Superop (Qubits e × (Fin n → B)) (Qubits k)
  decode_channel : IsChannel decode

/-- PDF p.4: actual effective quantum channel; the resource is independent of
all unknown states. The first register belongs to Bob throughout. -/
def quantumCodeMap {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] {n k e : ℕ}
    (N : Superop A B) (P : EbitTransmissionCode A B n k e) : Superop (Qubits k) (Qubits k) :=
  fun rho => P.decode (idTensorSuperop (piSuperop (fun _ : Fin n => N))
    (idTensorSuperop P.encode
      (fun a b => rho a.2.1 b.2.1 * pureDensity (maxEntangled e) (a.1,a.2.2) (b.1,b.2.2))))

/-- PDF p.4: arbitrary e for QE. One code precedes EVERY unit input
vector. Fidelity tends uniformly to one, and the block rate is k/n in qubits. -/
def EbitTransmissionAchievable {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (R : ℝ) : Prop :=
  0 ≤ R ∧ ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ n0 : ℕ,
    ∀ n ≥ n0, 0 < n → ∃ k e : ℕ, (R-delta)*n ≤ k ∧
      ∃ P : EbitTransmissionCode A B n k e,
        ∀ psi : EuclideanSpace ℂ (Qubits k), ‖psi‖ = 1 →
          1-eps ≤ effectProb (pureDensity psi) (quantumCodeMap N P (pureDensity psi))

/-- PDF p.4: QE is an independently operational supremum, not CE/2.
Unassisted Q is imported from the accepted operational transmission definition. -/
def ebitTransmissionCapacity {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : ℝ :=
  sSup {R | EbitTransmissionAchievable N R}

/-- PDF p.4, note [4]: only the actual symmetric and erasure families used here,
up to fixed alphabet bijections; no invented general class of symmetric DMCs. -/
def SourceClassicalFamily {X Y : Type*} [Fintype X] [Fintype Y]
    (N : DMC X Y) : Prop :=
  ∃ d : ℕ, 2 ≤ d ∧ ∃ x : ℝ, 0 ≤ x ∧ x ≤ 1 ∧
    ((∃ (e : X ≃ Fin d) (f : Y ≃ Fin d),
       ∀ a b, N.prob a b = randomizing x (e a) (f b)) ∨
     (∃ (e : X ≃ Fin d) (f : Y ≃ Option (Fin d)),
       ∀ a b, N.prob a b = classicalErasure x (e a) (f b)))

/-- PDF p.4, note [4]: a finite random codebook, chosen independently of input.
Every book is nonempty and has an explicit fallback member; at most 2^b output
words permit a fixed b-bit index message. Shared randomness is unrestricted. -/
structure RandomCodebook (Y : Type*) [Fintype Y] (n b : ℕ) where
  r : ℕ
  weight : Fin r → ℝ
  nonnegative : ∀ i, 0 ≤ weight i
  normalized : ∑ i, weight i = 1
  words : Fin r → Finset (Fin n → Y)
  fallback : Fin r → (Fin n → Y)
  fallback_mem : ∀ i, fallback i ∈ words i
  budget : ∀ i, (words i).card ≤ 2^b

/-- PDF p.4, note [4]: native block probabilities renormalized inside the chosen
book. If its mass is zero, output the designated member rather than zero mass. -/
def bookConditional {X Y : Type*} [Fintype Y] {n b : ℕ}
    (N : DMC X Y) (P : RandomCodebook Y n b) (i : Fin P.r)
    (x : Fin n → X) (y : Fin n → Y) : ℝ :=
  let mass := ∑ z ∈ P.words i, blockProb N n x z
  if mass = 0 then (if y = P.fallback i then 1 else 0)
  else if y ∈ P.words i then blockProb N n x y / mass else 0

/-- PDF p.4, note [4]: average shared randomness BEFORE comparing with the target. -/
def bookAverage {X Y : Type*} [Fintype Y] {n b : ℕ}
    (N : DMC X Y) (P : RandomCodebook Y n b)
    (x : Fin n → X) (y : Fin n → Y) : ℝ :=
  ∑ i, P.weight i * bookConditional N P i x y

/-! Sanity examples for the paper-local interfaces. -/

example : symmetricEntropy 2 1 = 0 := by simp [symmetricEntropy]

example : symmetricEntropy 2 0 = 0 := by simp [symmetricEntropy]

example {A : Type*} [Fintype A] [DecidableEq A] (a b : A) :
    randomizing 0 a b = if a = b then 1 else 0 := by simp [randomizing]

example (d : ℕ) (P : Fin d → Fin d → ℝ) : measurePrepare d P 0 = 0 := by
  simp [measurePrepare]

example (d : ℕ) : replaceFlag d 0 = 0 := by
  funext i j
  simp [replaceFlag]

example (d : ℕ) (hd : 0 < d) (X : Matrix (Fin d) (Fin d) ℂ) :
    erasureTeleportMap d hd (fun _ _ => 0) X = 0 := by
  funext a b
  cases a <;> cases b <;> simp [erasureTeleportMap, teleportMap]

example {X Y : Type*} [Fintype Y] {n b : ℕ} (N : DMC X Y)
    (P : RandomCodebook Y n b) (i : Fin P.r) (x : Fin n → X)
    (h : ∑ z ∈ P.words i, blockProb N n x z = 0) :
    bookConditional N P i x (P.fallback i) = 1 := by
  simp [bookConditional, h]

end QAlgorithms.Papers.Independent.Gap48.P21
Source
Entanglement-Assisted Classical Capacity of Noisy Quantum Channels, arXiv:quant-ph/9904023v5, https://arxiv.org/abs/quant-ph/9904023v5
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Gap48.P21.EbitTransmissionAchievable

For arbitrary finite types A,BA,BA,B with decidable equality, an arbitrary matrix function N:Mat⁡(A)→Mat⁡(B)N:\operatorname{Mat}(A)\to\operatorname{Mat}(B)N:Mat(A)→Mat(B), and a real number RRR, this proposition says that R≥0R\ge0R≥0 and that for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0 there exists a natural number n0n_0n0​ such that every natural number n≥n0n\ge n_0n≥n0​ with n>0n>0n>0 admits natural numbers k,ek,ek,e and an encoder Enc:Mat⁡(Qk×Qe)→Mat⁡(An)\mathrm{Enc}:\operatorname{Mat}(Q_k\times Q_e)\to\operatorname{Mat}(A^n)Enc:Mat(Qk​×Qe​)→Mat(An) and decoder Dec:Mat⁡(Qe×Bn)→Mat⁡(Qk)\mathrm{Dec}:\operatorname{Mat}(Q_e\times B^n)\to\operatorname{Mat}(Q_k)Dec:Mat(Qe​×Bn)→Mat(Qk​) satisfying

(R−δ)n≤k,1−ε≤Re⁡tr⁡(ψψ† C(ψψ†))for every ψ∈CQk with ∥ψ∥2=1.(R-\delta)n\le k,\qquad 1-\varepsilon\le \operatorname{Re}\operatorname{tr} \bigl(\psi\psi^\dagger\,\mathcal C(\psi\psi^\dagger)\bigr) \quad\text{for every }\psi\in\mathbb C^{Q_k}\text{ with }\|\psi\|_2=1.(R−δ)n≤k,1−ε≤Retr(ψψ†C(ψψ†))for every ψ∈CQk​ with ∥ψ∥2​=1.

Here Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r; both encoder and decoder must have finite Kraus representations X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The function C\mathcal CC first places ρ\rhoρ together with the outer product of Ωe=2−e/2∑u∈Qe∣u,u⟩\Omega_e=2^{-e/2}\sum_{u\in Q_e}|u,u\rangleΩe​=2−e/2∑u∈Qe​​∣u,u⟩, with entries Rρ((u,(a,v)),(u′,(b,v′)))=ρabΩe(u,v)Ωe(u′,v′)‾R_\rho((u,(a,v)),(u',(b,v')))=\rho_{ab}\Omega_e(u,v)\overline{\Omega_e(u',v')}Rρ​((u,(a,v)),(u′,(b,v′)))=ρab​Ωe​(u,v)Ωe​(u′,v′)​, then applies Enc\mathrm{Enc}Enc to the last two registers, applies N[n]N^{[n]}N[n] to its output, and applies Dec\mathrm{Dec}Dec jointly with the retained first QeQ_eQe​ register. Each application preserving a first register means applying the function separately to each matrix block indexed by that register, and

[N[n](X)]y,z=∑a,b∈AnXa,b∏i=0n−1[N(Eai,bi)]yi,zi.[N^{[n]}(X)]_{y,z} =\sum_{a,b\in A^n}X_{a,b}\prod_{i=0}^{n-1} [N(E_{a_i,b_i})]_{y_i,z_i}.[N[n](X)]y,z​=a,b∈An∑​Xa,b​i=0∏n−1​[N(Eai​,bi​​)]yi​,zi​​.

There is no channel assumption on NNN, no nonemptiness assumption on A,BA,BA,B, and no bound on eee; k=0k=0k=0 and e=0e=0e=0 are allowed. The guarantee concerns every unit vector on QkQ_kQk​ and does not quantify over an additional reference register.

QAlgorithms.Papers.Independent.Gap48.P21.EbitTransmissionCode

For arbitrary finite types AAA and BBB with decidable equality and arbitrary natural numbers n,k,en,k,en,k,e, this structure consists of two functions on complex matrices:

Enc:Mat⁡({0,1}k×{0,1}e)⟶Mat⁡(An),Dec:Mat⁡({0,1}e×Bn)⟶Mat⁡({0,1}k),\mathrm{Enc}:\operatorname{Mat}(\{0,1\}^k\times\{0,1\}^e) \longrightarrow\operatorname{Mat}(A^n), \qquad \mathrm{Dec}:\operatorname{Mat}(\{0,1\}^e\times B^n) \longrightarrow\operatorname{Mat}(\{0,1\}^k),Enc:Mat({0,1}k×{0,1}e)⟶Mat(An),Dec:Mat({0,1}e×Bn)⟶Mat({0,1}k),

together with proofs that both functions are channels. Here AnA^nAn means the functions {0,…,n−1}→A\{0,\ldots,n-1\}\to A{0,…,n−1}→A, and similarly for the other registers. Explicitly, each of Enc\mathrm{Enc}Enc and Dec\mathrm{Dec}Dec must have some finite Kraus representation X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​, valid for every input matrix, with rectangular matrices of the appropriate sizes satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I on its input register. No nonemptiness assumption is imposed on AAA or BBB, and n,k,en,k,en,k,e may be zero; a zero-length register has one configuration. There is no bound relating eee to nnn or kkk.

QAlgorithms.Papers.Independent.Gap48.P21.RandomCodebook

For a finite type YYY and natural numbers n,bn,bn,b, this structure consists of a natural number rrr, real weights wiw_iwi​ for 0≤i<r0\le i<r0≤i<r, finite sets Ci⊆YnC_i\subseteq Y^nCi​⊆Yn, and designated words fi∈Ynf_i\in Y^nfi​∈Yn, subject to

wi≥0,∑i=0r−1wi=1,fi∈Ci,∣Ci∣≤2bfor every i.w_i\ge0,\qquad \sum_{i=0}^{r-1}w_i=1,\qquad f_i\in C_i,\qquad |C_i|\le2^b \quad\text{for every }i.wi​≥0,i=0∑r−1​wi​=1,fi​∈Ci​,∣Ci​∣≤2bfor every i.

Here YnY^nYn is the set of functions {0,…,n−1}→Y\{0,\ldots,n-1\}\to Y{0,…,n−1}→Y. Consequently rrr must be positive and every CiC_iCi​ must be nonempty, including those with zero weight; different indices may have identical codebooks and fallback words. Both n=0n=0n=0 and b=0b=0b=0 are allowed: for n=0n=0n=0 each codebook is the singleton containing the empty word, and for b=0b=0b=0 each codebook has exactly one word. No nonemptiness assumption is imposed on YYY; if YYY is empty and n>0n>0n>0, such data cannot exist.

QAlgorithms.Papers.Independent.Gap48.P21.SourceClassicalFamily

For finite types X,YX,YX,Y and a discrete channel NNN given by real transition probabilities N(a,b)≥0N(a,b)\ge0N(a,b)≥0 with ∑b∈YN(a,b)=1\sum_{b\in Y}N(a,b)=1∑b∈Y​N(a,b)=1 for every a∈Xa\in Xa∈X, this proposition says that there exist a natural number d≥2d\ge2d≥2 and a real number x∈[0,1]x\in[0,1]x∈[0,1] satisfying one of two alternatives. Either there are bijections e:X→{0,…,d−1}e:X\to\{0,\ldots,d-1\}e:X→{0,…,d−1} and f:Y→{0,…,d−1}f:Y\to\{0,\ldots,d-1\}f:Y→{0,…,d−1} such that

N(a,b)=(1−x)1e(a)=f(b)+xdfor every a,b,N(a,b)=(1-x)\mathbf1_{e(a)=f(b)}+\frac xd \quad\text{for every }a,b,N(a,b)=(1−x)1e(a)=f(b)​+dx​for every a,b,

or there are bijections e:X→{0,…,d−1}e:X\to\{0,\ldots,d-1\}e:X→{0,…,d−1} and f:Y→{0,…,d−1}∪{⊥}f:Y\to\{0,\ldots,d-1\}\cup\{\bot\}f:Y→{0,…,d−1}∪{⊥} such that

N(a,b)={(1−x)1e(a)=j,f(b)=j≠⊥,x,f(b)=⊥for every a,b.N(a,b)= \begin{cases} (1-x)\mathbf1_{e(a)=j},&f(b)=j\ne\bot,\\ x,&f(b)=\bot \end{cases} \quad\text{for every }a,b.N(a,b)={(1−x)1e(a)=j​,x,​f(b)=j=⊥,f(b)=⊥​for every a,b.

The parameter endpoints x=0x=0x=0 and x=1x=1x=1 are included. Although X,YX,YX,Y are not initially assumed nonempty, the required bijections force them to be nonempty.

QAlgorithms.Papers.Independent.Gap48.P21.accessibleValues

For finite types A,BA,BA,B, each with decidable equality, and any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, this defines the set of real numbers obtained as follows: choose natural numbers m,lm,lm,l, weights qi≥0q_i\ge0qi​≥0 with ∑i=0m−1qi=1\sum_{i=0}^{m-1}q_i=1∑i=0m−1​qi​=1, positive semidefinite matrices ρi∈CA×A\rho_i\in\mathbb C^{A\times A}ρi​∈CA×A of trace 111, and positive semidefinite matrices Mj∈CB×BM_j\in\mathbb C^{B\times B}Mj​∈CB×B with ∑j=0l−1Mj=IB\sum_{j=0}^{l-1}M_j=I_B∑j=0l−1​Mj​=IB​. Set Pij=qiRe⁡tr⁡(MjN(ρi))P_{ij}=q_i\operatorname{Re}\operatorname{tr}(M_jN(\rho_i))Pij​=qi​Retr(Mj​N(ρi​)). The corresponding number is

∑i=0m−1∑j=0l−1Pijlog⁡2 ⁣(Pij(∑j′Pij′)(∑i′Pi′j)).\sum_{i=0}^{m-1}\sum_{j=0}^{l-1} P_{ij}\log_2\!\left( \frac{P_{ij}}{(\sum_{j'}P_{ij'})(\sum_{i'}P_{i'j})} \right).i=0∑m−1​j=0∑l−1​Pij​log2​((∑j′​Pij′​)(∑i′​Pi′j​)Pij​​).

Here division by zero is defined to be zero, and the real logarithm used is log⁡2r=ln⁡∣r∣/ln⁡2\log_2 r=\ln|r|/\ln2log2​r=ln∣r∣/ln2 for r≠0r\ne0r=0, with log⁡20=0\log_2 0=0log2​0=0. No linearity, positivity, or channel assumption is imposed on NNN, so PPP need not be a probability distribution. The weight condition excludes m=0m=0m=0; l=0l=0l=0 is allowed exactly when BBB is empty, and if AAA is empty there are no admissible choices.

QAlgorithms.Papers.Independent.Gap48.P21.basisInformation

For any natural number ddd, any function N:Cd×d→Cd×dN:\mathbb C^{d\times d}\to\mathbb C^{d\times d}N:Cd×d→Cd×d, and any complex unitary d×dd\times dd×d matrix UUU, let RiR_iRi​ have entries (Ri)ab=UaiUbi‾(R_i)_{ab}=U_{ai}\overline{U_{bi}}(Ri​)ab​=Uai​Ubi​​, and set Pij=d−1Re⁡tr⁡(RjN(Ri))P_{ij}=d^{-1}\operatorname{Re}\operatorname{tr}(R_jN(R_i))Pij​=d−1Retr(Rj​N(Ri​)). This defines

∑i=0d−1∑j=0d−1Pijlog⁡2 ⁣(Pij(∑j′Pij′)(∑i′Pi′j)).\sum_{i=0}^{d-1}\sum_{j=0}^{d-1} P_{ij}\log_2\!\left( \frac{P_{ij}}{(\sum_{j'}P_{ij'})(\sum_{i'}P_{i'j})} \right).i=0∑d−1​j=0∑d−1​Pij​log2​((∑j′​Pij′​)(∑i′​Pi′j​)Pij​​).

There is no channel assumption on NNN, so the entries PijP_{ij}Pij​ need not form a probability distribution. All reciprocals and divisions are totalized with 0−1=00^{-1}=00−1=0; the logarithm is log⁡2r=ln⁡∣r∣/ln⁡2\log_2 r=\ln|r|/\ln2log2​r=ln∣r∣/ln2 for r≠0r\ne0r=0, with log⁡20=0\log_2 0=0log2​0=0. For d=0d=0d=0, the sums are empty and the value is zero.

QAlgorithms.Papers.Independent.Gap48.P21.basisProjector

For any natural number ddd, any complex unitary d×dd\times dd×d matrix UUU, and any index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines the matrix formed from the vector obtained by applying UUU to the coordinate vector eie_iei​: its entry in row aaa, column bbb is

Uai Ubi‾.U_{ai}\,\overline{U_{bi}}.Uai​Ubi​​.

Thus the construction explicitly takes the outer product of the iii-th column of UUU with its conjugate. Although d=0d=0d=0 is included in the parameter range, no index iii then exists.

QAlgorithms.Papers.Independent.Gap48.P21.bookAverage

Let XXX be any type, let YYY be a finite type with a specified enumeration, and let n,b∈Nn,b\in\mathbb Nn,b∈N, including zero. Let N(y∣x)N(y\mid x)N(y∣x) be a real transition kernel satisfying N(y∣x)≥0N(y\mid x)\ge0N(y∣x)≥0 and ∑y∈YN(y∣x)=1\sum_{y\in Y}N(y\mid x)=1∑y∈Y​N(y∣x)=1 for every x∈Xx\in Xx∈X. A random codebook PPP consists of a natural number rrr, nonnegative weights wiw_iwi​ for i<ri<ri<r summing to one, finite sets Wi⊆Yn\mathcal W_i\subseteq Y^nWi​⊆Yn with ∣Wi∣≤2b|\mathcal W_i|\le2^b∣Wi​∣≤2b, and fallback words fi∈Wif_i\in\mathcal W_ifi​∈Wi​. Thus r=0r=0r=0 cannot satisfy these requirements, and every codebook in the family is nonempty. For arbitrary x∈Xnx\in X^nx∈Xn and y∈Yny\in Y^ny∈Yn, define N(n)(y∣x)=∏j<nN(yj∣xj)N^{(n)}(y\mid x)=\prod_{j<n}N(y_j\mid x_j)N(n)(y∣x)=∏j<n​N(yj​∣xj​) and mi(x)=∑z∈WiN(n)(z∣x)m_i(x)=\sum_{z\in\mathcal W_i}N^{(n)}(z\mid x)mi​(x)=∑z∈Wi​​N(n)(z∣x). The declaration defines

bookAverage⁡(N,P,x,y)=∑i<rwi{1,mi(x)=0 and y=fi,0,mi(x)=0 and y≠fi,N(n)(y∣x)/mi(x),mi(x)≠0 and y∈Wi,0,mi(x)≠0 and y∉Wi.\operatorname{bookAverage}(N,P,x,y) =\sum_{i<r}w_i \begin{cases} 1,&m_i(x)=0\ \text{and }y=f_i,\\ 0,&m_i(x)=0\ \text{and }y\ne f_i,\\ N^{(n)}(y\mid x)/m_i(x),&m_i(x)\ne0\ \text{and }y\in\mathcal W_i,\\ 0,&m_i(x)\ne0\ \text{and }y\notin\mathcal W_i. \end{cases}bookAverage(N,P,x,y)=i<r∑​wi​⎩⎨⎧​1,0,N(n)(y∣x)/mi​(x),0,​mi​(x)=0 and y=fi​,mi​(x)=0 and y=fi​,mi​(x)=0 and y∈Wi​,mi​(x)=0 and y∈/Wi​.​

For n=0n=0n=0, the product defining N(n)N^{(n)}N(n) is the empty product 111, and the word spaces each contain the unique empty word.

QAlgorithms.Papers.Independent.Gap48.P21.bookConditional

For arbitrary types X,YX,YX,Y with YYY finite, natural numbers n,bn,bn,b, a discrete channel NNN with nonnegative transition probabilities N(a,c)N(a,c)N(a,c) summing to 111 over c∈Yc\in Yc∈Y for each a∈Xa\in Xa∈X, and codebook data consisting of a finite index set {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, nonnegative weights summing to 111, nonempty sets Ci⊆YnC_i\subseteq Y^nCi​⊆Yn of size at most 2b2^b2b, and designated words fi∈Cif_i\in C_ifi​∈Ci​, this defines a real number for each index iii, input word x∈Xnx\in X^nx∈Xn, and output word y∈Yny\in Y^ny∈Yn. Set

pN(z∣x)=∏j=0n−1N(xj,zj),mi(x)=∑z∈CipN(z∣x).p_N(z\mid x)=\prod_{j=0}^{n-1}N(x_j,z_j), \qquad m_i(x)=\sum_{z\in C_i}p_N(z\mid x).pN​(z∣x)=j=0∏n−1​N(xj​,zj​),mi​(x)=z∈Ci​∑​pN​(z∣x).

The defined value is

{1,mi(x)=0 and y=fi,0,mi(x)=0 and y≠fi,pN(y∣x)/mi(x),mi(x)≠0 and y∈Ci,0,mi(x)≠0 and y∉Ci.\begin{cases} 1,&m_i(x)=0\text{ and }y=f_i,\\ 0,&m_i(x)=0\text{ and }y\ne f_i,\\ p_N(y\mid x)/m_i(x),&m_i(x)\ne0\text{ and }y\in C_i,\\ 0,&m_i(x)\ne0\text{ and }y\notin C_i. \end{cases}⎩⎨⎧​1,0,pN​(y∣x)/mi​(x),0,​mi​(x)=0 and y=fi​,mi​(x)=0 and y=fi​,mi​(x)=0 and y∈Ci​,mi​(x)=0 and y∈/Ci​.​

The codebook weights do not enter this formula. Zero mass is handled by the designated word rather than division. The case n=0n=0n=0 is included: the empty product is 111, each codebook contains the unique empty word, and its conditional value is 111.

QAlgorithms.Papers.Independent.Gap48.P21.classicalErasure

For any type AAA with decidable equality and any real number xxx, this defines a function from AAA to real-valued functions on AAA together with an extra symbol ⊥\bot⊥:

P(a,b)={x,b=⊥,1−x,b=c∈A and a=c,0,b=c∈A and a≠c.P(a,b)= \begin{cases} x,&b=\bot,\\ 1-x,&b=c\in A\text{ and }a=c,\\ 0,&b=c\in A\text{ and }a\ne c. \end{cases}P(a,b)=⎩⎨⎧​x,1−x,0,​b=⊥,b=c∈A and a=c,b=c∈A and a=c.​

The type AAA need not be finite or nonempty, and xxx is not restricted to [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Gap48.P21.denseKernel

For every natural number d>0d>0d>0 and any function N:Cd×d→Cd×dN:\mathbb C^{d\times d}\to\mathbb C^{d\times d}N:Cd×d→Cd×d, define the shift and clock matrices by Sij=1S_{ij}=1Sij​=1 if i≡j+1(modd)i\equiv j+1\pmod di≡j+1(modd) and zero otherwise, and C=diag⁡(exp⁡(2πi j/d))C=\operatorname{diag}(\exp(2\pi\mathrm i\,j/d))C=diag(exp(2πij/d)). For each pair s=(a,b)s=(a,b)s=(a,b), put Ws=SaCbW_s=S^aC^bWs​=SaCb, vs(i,j)=(Ws)ji/dv_s(i,j)=(W_s)_{ji}/\sqrt dvs​(i,j)=(Ws​)ji​/d​, and Rs=vsvs†R_s=v_sv_s^\daggerRs​=vs​vs†​. For any matrix YYY indexed by pairs, define N(Y)(i,j),(i′,j′)=[N(Y(i,⋅),(i′,⋅))]jj′\mathcal N(Y)_{(i,j),(i',j')}=[N(Y_{(i,\cdot),(i',\cdot)})]_{jj'}N(Y)(i,j),(i′,j′)​=[N(Y(i,⋅),(i′,⋅)​)]jj′​. This declaration defines the real-valued function

K(s,t)=Re⁡tr⁡ ⁣(Rt N(Rs))K(s,t)=\operatorname{Re}\operatorname{tr}\!\bigl(R_t\,\mathcal N(R_s)\bigr)K(s,t)=Retr(Rt​N(Rs​))

on pairs of index pairs s,ts,ts,t. No linearity or channel assumption is imposed on NNN, and the definition imposes no nonnegativity or row-normalization requirement on KKK. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Gap48.P21.denseRate

For every natural number d>0d>0d>0 and any function N:Cd×d→Cd×dN:\mathbb C^{d\times d}\to\mathbb C^{d\times d}N:Cd×d→Cd×d, let Sij=1S_{ij}=1Sij​=1 if i≡j+1(modd)i\equiv j+1\pmod di≡j+1(modd) and zero otherwise, let C=diag⁡(exp⁡(2πi j/d))C=\operatorname{diag}(\exp(2\pi\mathrm i\,j/d))C=diag(exp(2πij/d)), and, for s=(a,b)s=(a,b)s=(a,b), set vs(i,j)=(SaCb)ji/dv_s(i,j)=(S^aC^b)_{ji}/\sqrt dvs​(i,j)=(SaCb)ji​/d​ and Rs=vsvs†R_s=v_sv_s^\daggerRs​=vs​vs†​. Define N(Y)(i,j),(i′,j′)=[N(Y(i,⋅),(i′,⋅))]jj′\mathcal N(Y)_{(i,j),(i',j')}=[N(Y_{(i,\cdot),(i',\cdot)})]_{jj'}N(Y)(i,j),(i′,j′)​=[N(Y(i,⋅),(i′,⋅)​)]jj′​ and K(s,t)=Re⁡tr⁡(RtN(Rs))K(s,t)=\operatorname{Re}\operatorname{tr}(R_t\mathcal N(R_s))K(s,t)=Retr(Rt​N(Rs​)). This declaration defines zero if any entry of KKK is negative or any row fails to sum to 111; otherwise it defines the real supremum, over nonnegative weights qsq_sqs​ summing to 111, of

∑s,tJstlog⁡2 ⁣(Jst(∑t′Jst′)(∑s′Js′t)),Jst=qsK(s,t).\sum_{s,t}J_{st}\log_2\!\left( \frac{J_{st}}{(\sum_{t'}J_{st'})(\sum_{s'}J_{s't})} \right), \qquad J_{st}=q_sK(s,t).s,t∑​Jst​log2​((∑t′​Jst′​)(∑s′​Js′t​)Jst​​),Jst​=qs​K(s,t).

No channel assumption is imposed on NNN. Division by zero is zero, and the real logarithm equals ln⁡∣r∣/ln⁡2\ln|r|/\ln2ln∣r∣/ln2 for r≠0r\ne0r=0 and zero at r=0r=0r=0; the real supremum is totalized to zero for an empty or unbounded-above set. The case d=1d=1d=1 is permitted.

QAlgorithms.Papers.Independent.Gap48.P21.ebitTransmissionCapacity

For arbitrary finite types A,BA,BA,B with decidable equality and an arbitrary function N:Mat⁡(A)→Mat⁡(B)N:\operatorname{Mat}(A)\to\operatorname{Mat}(B)N:Mat(A)→Mat(B), this defines the real supremum of the following set of rates RRR: R≥0R\ge0R≥0, and for every ε,δ>0\varepsilon,\delta>0ε,δ>0, all sufficiently large positive natural numbers nnn admit natural numbers k,ek,ek,e with (R−δ)n≤k(R-\delta)n\le k(R−δ)n≤k, an encoder Enc:Mat⁡(Qk×Qe)→Mat⁡(An)\mathrm{Enc}:\operatorname{Mat}(Q_k\times Q_e)\to\operatorname{Mat}(A^n)Enc:Mat(Qk​×Qe​)→Mat(An), and a decoder Dec:Mat⁡(Qe×Bn)→Mat⁡(Qk)\mathrm{Dec}:\operatorname{Mat}(Q_e\times B^n)\to\operatorname{Mat}(Q_k)Dec:Mat(Qe​×Bn)→Mat(Qk​), such that each map has a finite Kraus representation normalized by ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I and

Re⁡tr⁡(ψψ†C(ψψ†))≥1−εfor every ∥ψ∥2=1.\operatorname{Re}\operatorname{tr} \bigl(\psi\psi^\dagger\mathcal C(\psi\psi^\dagger)\bigr) \ge1-\varepsilon \quad\text{for every }\|\psi\|_2=1.Retr(ψψ†C(ψψ†))≥1−εfor every ∥ψ∥2​=1.

Here Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r, and C(ρ)\mathcal C(\rho)C(ρ) is obtained by forming

Rρ((u,(a,v)),(u′,(b,v′)))=ρabΩe(u,v)Ωe(u′,v′)‾,Ωe(u,v)=2−e/21u=v,R_\rho\bigl((u,(a,v)),(u',(b,v'))\bigr) =\rho_{ab}\Omega_e(u,v)\overline{\Omega_e(u',v')}, \qquad \Omega_e(u,v)=2^{-e/2}\mathbf1_{u=v},Rρ​((u,(a,v)),(u′,(b,v′)))=ρab​Ωe​(u,v)Ωe​(u′,v′)​,Ωe​(u,v)=2−e/21u=v​,

applying the encoder to the last two registers while retaining the first QeQ_eQe​ register, applying N[n]N^{[n]}N[n] to the encoded register, and finally applying the decoder. Preserving a register means applying the relevant function to each matrix block indexed by that register, and the function used for nnn copies is explicitly

[N[n](X)]y,z=∑a,b∈AnXa,b∏i=0n−1[N(Eai,bi)]yi,zi.[N^{[n]}(X)]_{y,z} =\sum_{a,b\in A^n}X_{a,b} \prod_{i=0}^{n-1}[N(E_{a_i,b_i})]_{y_i,z_i}.[N[n](X)]y,z​=a,b∈An∑​Xa,b​i=0∏n−1​[N(Eai​,bi​​)]yi​,zi​​.

There is no hypothesis that NNN is a channel, no nonemptiness hypothesis on A,BA,BA,B, and no bound on eee; k,ek,ek,e may be zero. The supremum is the total real supremum operation, which returns 000 for an empty set or a set unbounded above, rather than an extended-real value +∞+\infty+∞.

QAlgorithms.Papers.Independent.Gap48.P21.encodedBell

For every natural number d>0d>0d>0 and every pair s=(a,b)s=(a,b)s=(a,b) of indices in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, define S,C∈Cd×dS,C\in\mathbb C^{d\times d}S,C∈Cd×d by Sij=1S_{ij}=1Sij​=1 when i≡j+1(modd)i\equiv j+1\pmod di≡j+1(modd) and zero otherwise, and Cjj=exp⁡(2πi j/d)C_{jj}=\exp(2\pi\mathrm i\,j/d)Cjj​=exp(2πij/d), with all off-diagonal entries of CCC zero. Writing Wa,b=SaCbW_{a,b}=S^aC^bWa,b​=SaCb, this defines the vector obtained by applying Id⊗Wa,bI_d\otimes W_{a,b}Id​⊗Wa,b​ to the vector whose (i,j)(i,j)(i,j)-coordinate is 1/d1/\sqrt d1/d​ when i=ji=ji=j and zero otherwise. Equivalently, its (i,j)(i,j)(i,j)-coordinate is

(Wa,b)jid.\frac{(W_{a,b})_{ji}}{\sqrt d}.d​(Wa,b​)ji​​.

The case d=1d=1d=1 is included; d=0d=0d=0 is excluded by the positivity hypothesis.

QAlgorithms.Papers.Independent.Gap48.P21.erasureBellEffect

For every natural number d>0d>0d>0 and every label ttt that is either an ordered pair in {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 or the additional symbol ⊥\bot⊥, this defines a complex matrix EtE_tEt​ indexed by pairs (a,u)(a,u)(a,u) with 0≤a<d0\le a<d0≤a<d and u∈{0,…,d−1}∪{⊥}u\in\{0,\ldots,d-1\}\cup\{\bot\}u∈{0,…,d−1}∪{⊥}. To specify its entries, put ζ=e2πi/d\zeta=e^{2\pi i/d}ζ=e2πi/d, define Wr,s∣j⟩=ζsj∣j+r mod d⟩W_{r,s}|j\rangle=\zeta^{sj}|j+r\bmod d\rangleWr,s​∣j⟩=ζsj∣j+rmodd⟩, and set

βr,s=(I⊗Wr,s)1d∑j=0d−1∣j,j⟩.\beta_{r,s}=(I\otimes W_{r,s})\frac1{\sqrt d}\sum_{j=0}^{d-1}|j,j\rangle.βr,s​=(I⊗Wr,s​)d​1​j=0∑d−1​∣j,j⟩.

Then

(Et)(a,u),(b,v)={βr,s(a,u) βr,s(b,v)‾,t=(r,s), u,v≠⊥,1,t=⊥, u=v=⊥, a=b,0,otherwise.(E_t)_{(a,u),(b,v)}= \begin{cases} \beta_{r,s}(a,u)\,\overline{\beta_{r,s}(b,v)}, &t=(r,s),\ u,v\ne\bot,\\ 1,&t=\bot,\ u=v=\bot,\ a=b,\\ 0,&\text{otherwise}. \end{cases}(Et​)(a,u),(b,v)​=⎩⎨⎧​βr,s​(a,u)βr,s​(b,v)​,1,0,​t=(r,s), u,v=⊥,t=⊥, u=v=⊥, a=b,otherwise.​

Thus a pair label uses the indicated Bell-vector outer product on the sector with no erasure flag, while the label ⊥\bot⊥ uses the identity on the flagged sector. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Gap48.P21.erasureDenseKernel

For every natural number d>0d>0d>0 and every real number xxx, this defines a real function Kx(s,t)K_x(s,t)Kx​(s,t), where sss is a pair in {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 and ttt is either such a pair or an additional symbol ⊥\bot⊥. Put ζ=e2πi/d\zeta=e^{2\pi i/d}ζ=e2πi/d, Wr,s∣j⟩=ζsj∣j+r mod d⟩W_{r,s}|j\rangle=\zeta^{sj}|j+r\bmod d\rangleWr,s​∣j⟩=ζsj∣j+rmodd⟩, βs=(I⊗Ws)d−1/2∑j∣j,j⟩\beta_s=(I\otimes W_s)d^{-1/2}\sum_j|j,j\rangleβs​=(I⊗Ws​)d−1/2∑j​∣j,j⟩, and Bs=βsβs†B_s=\beta_s\beta_s^\daggerBs​=βs​βs†​. Form a matrix Ωs\Omega_sΩs​ indexed by {0,…,d−1}×({0,…,d−1}∪{⊥})\{0,\ldots,d-1\}\times(\{0,\ldots,d-1\}\cup\{\bot\}){0,…,d−1}×({0,…,d−1}∪{⊥}) with entries

(Ωs)(a,u),(b,v)={(1−x)(Bs)(a,u),(b,v),u,v≠⊥,x∑j(Bs)(a,j),(b,j),u=v=⊥,0,otherwise.(\Omega_s)_{(a,u),(b,v)}= \begin{cases} (1-x)(B_s)_{(a,u),(b,v)},&u,v\ne\bot,\\ x\displaystyle\sum_j(B_s)_{(a,j),(b,j)},&u=v=\bot,\\ 0,&\text{otherwise}. \end{cases}(Ωs​)(a,u),(b,v)​=⎩⎨⎧​(1−x)(Bs​)(a,u),(b,v)​,xj∑​(Bs​)(a,j),(b,j)​,0,​u,v=⊥,u=v=⊥,otherwise.​

For a pair ttt, let EtE_tEt​ equal BtB_tBt​ on the unflagged sector and zero elsewhere; let E⊥E_\botE⊥​ equal the identity on the flagged sector and zero elsewhere. The definition is

Kx(s,t)=Re⁡tr⁡(EtΩs).K_x(s,t)=\operatorname{Re}\operatorname{tr}(E_t\Omega_s).Kx​(s,t)=Retr(Et​Ωs​).

No condition 0≤x≤10\le x\le10≤x≤1 is imposed, so the definition includes real parameters outside the probability range; d=1d=1d=1 is also included.

QAlgorithms.Papers.Independent.Gap48.P21.erasureTeleportMap

For every natural number d>0d>0d>0 and every real array Ps,tP_{s,t}Ps,t​ with s∈{0,…,d−1}2s\in\{0,\ldots,d-1\}^2s∈{0,…,d−1}2 and t∈{0,…,d−1}2∪{⊥}t\in\{0,\ldots,d-1\}^2\cup\{\bot\}t∈{0,…,d−1}2∪{⊥}, this defines a function sending an arbitrary complex d×dd\times dd×d matrix XXX to a matrix YYY indexed by {0,…,d−1}∪{⊥}\{0,\ldots,d-1\}\cup\{\bot\}{0,…,d−1}∪{⊥}. Write ζ=e2πi/d\zeta=e^{2\pi i/d}ζ=e2πi/d and Wr,s∣j⟩=ζsj∣j+r mod d⟩W_{r,s}|j\rangle=\zeta^{sj}|j+r\bmod d\rangleWr,s​∣j⟩=ζsj∣j+rmodd⟩. Its entries are

Yuv={[1d2∑s,t∈{0,…,d−1}2Ps,t (WtWs†)X(WtWs†)†]uv,u,v≠⊥,∑sPs,⊥d2tr⁡X,u=v=⊥,0,otherwise.Y_{uv}= \begin{cases} \displaystyle\left[ \frac1{d^2}\sum_{s,t\in\{0,\ldots,d-1\}^2} P_{s,t}\,(W_tW_s^\dagger)X(W_tW_s^\dagger)^\dagger \right]_{uv},&u,v\ne\bot,\\[6pt] \displaystyle\frac{\sum_sP_{s,\bot}}{d^2}\operatorname{tr}X, &u=v=\bot,\\ 0,&\text{otherwise}. \end{cases}Yuv​=⎩⎨⎧​​d21​s,t∈{0,…,d−1}2∑​Ps,t​(Wt​Ws†​)X(Wt​Ws†​)†​uv​,d2∑s​Ps,⊥​​trX,0,​u,v=⊥,u=v=⊥,otherwise.​

The array PPP need not be nonnegative or have normalized rows, and XXX need not be a density matrix; no channel property is part of the definition. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Gap48.P21.kernelCapacity

For finite types X,YX,YX,Y and any real-valued function P:X×Y→RP:X\times Y\to\mathbb RP:X×Y→R, this defines zero unless every row satisfies P(x,y)≥0P(x,y)\ge0P(x,y)≥0 for all yyy and ∑yP(x,y)=1\sum_yP(x,y)=1∑y​P(x,y)=1. If these conditions hold, it defines the real supremum, over all functions q:X→Rq:X\to\mathbb Rq:X→R satisfying q(x)≥0q(x)\ge0q(x)≥0 and ∑xq(x)=1\sum_xq(x)=1∑x​q(x)=1, of

∑x∈X∑y∈YJ(x,y)log⁡2 ⁣(J(x,y)(∑y′J(x,y′))(∑x′J(x′,y))),J(x,y)=q(x)P(x,y).\sum_{x\in X}\sum_{y\in Y} J(x,y)\log_2\!\left( \frac{J(x,y)} {(\sum_{y'}J(x,y'))(\sum_{x'}J(x',y))} \right), \qquad J(x,y)=q(x)P(x,y).x∈X∑​y∈Y∑​J(x,y)log2​((∑y′​J(x,y′))(∑x′​J(x′,y))J(x,y)​),J(x,y)=q(x)P(x,y).

Division by zero is zero, and log⁡2r=ln⁡∣r∣/ln⁡2\log_2 r=\ln|r|/\ln2log2​r=ln∣r∣/ln2 for nonzero rrr, with log⁡20=0\log_2 0=0log2​0=0. The supremum is totalized to zero for an empty or unbounded-above set. Empty types are permitted: if XXX is empty, no such qqq exists and the value is zero; if XXX is nonempty and YYY is empty, the row conditions fail and the value is zero.

QAlgorithms.Papers.Independent.Gap48.P21.measurePrepare

For every natural number ddd and every real array P=(Pij)0≤i,j<dP=(P_{ij})_{0\le i,j<d}P=(Pij​)0≤i,j<d​, this defines a function from complex d×dd\times dd×d matrices to complex d×dd\times dd×d matrices by

X⟼∫U(d)∑i,j=0d−1Pijtr⁡(ΠU,iX) ΠU,j dμd(U),(ΠU,i)ab=UaiUbi‾,X\longmapsto \int_{U(d)} \sum_{i,j=0}^{d-1} P_{ij}\operatorname{tr}(\Pi_{U,i}X)\,\Pi_{U,j}\,d\mu_d(U), \qquad (\Pi_{U,i})_{ab}=U_{ai}\overline{U_{bi}},X⟼∫U(d)​i,j=0∑d−1​Pij​tr(ΠU,i​X)ΠU,j​dμd​(U),(ΠU,i​)ab​=Uai​Ubi​​,

where μd\mu_dμd​ is Haar measure on the unitary group normalized to have total mass 111, and ΠU,i\Pi_{U,i}ΠU,i​ is the outer product of the iiith column of UUU with itself. The integral is matrix valued. There are no positivity or normalization assumptions on PPP, and XXX is arbitrary; the definition does not require this function to be a quantum channel. The case d=0d=0d=0 is included: the sums are empty and the output is the unique empty matrix.

QAlgorithms.Papers.Independent.Gap48.P21.oneShotCapacity

For finite types A,BA,BA,B, each with decidable equality, and any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, this defines the real supremum of

∑i=0m−1∑j=0l−1Pijlog⁡2 ⁣(Pij(∑j′Pij′)(∑i′Pi′j)),Pij=qiRe⁡tr⁡(MjN(ρi)),\sum_{i=0}^{m-1}\sum_{j=0}^{l-1} P_{ij}\log_2\!\left( \frac{P_{ij}}{(\sum_{j'}P_{ij'})(\sum_{i'}P_{i'j})} \right), \qquad P_{ij}=q_i\operatorname{Re}\operatorname{tr}(M_jN(\rho_i)),i=0∑m−1​j=0∑l−1​Pij​log2​((∑j′​Pij′​)(∑i′​Pi′j​)Pij​​),Pij​=qi​Retr(Mj​N(ρi​)),

over all natural numbers m,lm,lm,l, nonnegative real weights qiq_iqi​ summing to 111, positive semidefinite input matrices ρi\rho_iρi​ of trace 111, and positive semidefinite output matrices MjM_jMj​ summing to IBI_BIB​. No channel assumption is imposed on NNN. Division by zero is zero, and log⁡2r=ln⁡∣r∣/ln⁡2\log_2 r=\ln|r|/\ln2log2​r=ln∣r∣/ln2 for nonzero real rrr, with log⁡20=0\log_2 0=0log2​0=0. This is a supremum, with no assertion of attainment; the totalized real supremum is zero if the set is empty or unbounded above. In particular, m=0m=0m=0 cannot satisfy the weight condition, l=0l=0l=0 requires BBB empty, and AAA empty makes the set empty.

QAlgorithms.Papers.Independent.Gap48.P21.quantumCodeMap

For arbitrary finite types A,BA,BA,B with decidable equality, natural numbers n,k,en,k,en,k,e, an arbitrary function N:Mat⁡(A)→Mat⁡(B)N:\operatorname{Mat}(A)\to\operatorname{Mat}(B)N:Mat(A)→Mat(B), and an encoding–decoding pair PPP whose encoder Enc:Mat⁡({0,1}k×{0,1}e)→Mat⁡(An)\mathrm{Enc}:\operatorname{Mat}(\{0,1\}^k\times\{0,1\}^e)\to\operatorname{Mat}(A^n)Enc:Mat({0,1}k×{0,1}e)→Mat(An) and decoder Dec:Mat⁡({0,1}e×Bn)→Mat⁡({0,1}k)\mathrm{Dec}:\operatorname{Mat}(\{0,1\}^e\times B^n)\to\operatorname{Mat}(\{0,1\}^k)Dec:Mat({0,1}e×Bn)→Mat({0,1}k) each admit a finite Kraus representation with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I, this defines an effective function on kkk-bit matrices. Write Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r and let

Ωe(u,v)={2−e/2,u=v,0,u≠v,Rρ((u,(a,v)),(u′,(b,v′)))=ρabΩe(u,v)Ωe(u′,v′)‾.\Omega_e(u,v)= \begin{cases}2^{-e/2},&u=v,\\0,&u\ne v,\end{cases} \qquad R_\rho\bigl((u,(a,v)),(u',(b,v'))\bigr) =\rho_{ab}\Omega_e(u,v)\overline{\Omega_e(u',v')}.Ωe​(u,v)={2−e/2,0,​u=v,u=v,​Rρ​((u,(a,v)),(u′,(b,v′)))=ρab​Ωe​(u,v)Ωe​(u′,v′)​.

For any matrix function Φ\PhiΦ, define its extension preserving a first register by

[(id⊗Φ)(X)](u,y),(v,z)=Φ([X(u,a),(v,b)]a,b)y,z,[(\mathrm{id}\otimes\Phi)(X)]_{(u,y),(v,z)} =\Phi\bigl([X_{(u,a),(v,b)}]_{a,b}\bigr)_{y,z},[(id⊗Φ)(X)](u,y),(v,z)​=Φ([X(u,a),(v,b)​]a,b​)y,z​,

and define

[N[n](X)]y,z=∑a,b∈AnXa,b∏i=0n−1[N(Eai,bi)]yi,zi,[N^{[n]}(X)]_{y,z} =\sum_{a,b\in A^n}X_{a,b} \prod_{i=0}^{n-1}[N(E_{a_i,b_i})]_{y_i,z_i},[N[n](X)]y,z​=a,b∈An∑​Xa,b​i=0∏n−1​[N(Eai​,bi​​)]yi​,zi​​,

where Eai,biE_{a_i,b_i}Eai​,bi​​ is the single-entry matrix with entry 111 at (ai,bi)(a_i,b_i)(ai​,bi​). The effective function is

ρ⟼Dec ⁣((idQe⊗N[n])((idQe⊗Enc)(Rρ))).\rho\longmapsto \mathrm{Dec}\!\left((\mathrm{id}_{Q_e}\otimes N^{[n]}) \bigl((\mathrm{id}_{Q_e}\otimes\mathrm{Enc})(R_\rho)\bigr)\right).ρ⟼Dec((idQe​​⊗N[n])((idQe​​⊗Enc)(Rρ​))).

The definition does not assume NNN is linear or a channel. All three natural parameters may be zero; in particular the product defining N[0]N^{[0]}N[0] is 111, and Ω0\Omega_0Ω0​ has its sole coordinate equal to 111.

QAlgorithms.Papers.Independent.Gap48.P21.randomizing

For any finite type AAA with decidable equality and any real number xxx, this defines the real-valued function on A×AA\times AA×A

P(a,b)={1−x,a=b,0,a≠b+x∣A∣.P(a,b)= \begin{cases} 1-x,&a=b,\\ 0,&a\ne b \end{cases} +\frac{x}{|A|}.P(a,b)={1−x,0,​a=b,a=b​+∣A∣x​.

No restriction on xxx or nonemptiness assumption on AAA is imposed, and no nonnegativity condition is part of the definition. Division by zero is zero; if AAA is empty, the resulting function has no arguments at which it can be evaluated.

QAlgorithms.Papers.Independent.Gap48.P21.replaceFlag

For every natural number ddd, this defines a function from complex matrices indexed by {0,…,d−1}∪{⊥}\{0,\ldots,d-1\}\cup\{\bot\}{0,…,d−1}∪{⊥} to complex d×dd\times dd×d matrices by

X⟼Y,Yij=Xij+δijX⊥⊥d(0≤i,j<d).X\longmapsto Y,\qquad Y_{ij}=X_{ij}+\delta_{ij}\frac{X_{\bot\bot}}d \quad(0\le i,j<d).X⟼Y,Yij​=Xij​+δij​dX⊥⊥​​(0≤i,j<d).

Here entries involving ordinary indices mean the corresponding nonflagged entries of XXX, and δij\delta_{ij}δij​ is 111 when i=ji=ji=j and 000 otherwise. There are no assumptions on XXX; its entries connecting the flag to an ordinary index do not enter the formula. The case d=0d=0d=0 is included and produces the unique empty matrix, with no output entry at which the displayed division is evaluated.

QAlgorithms.Papers.Independent.Gap48.P21.symmetricEntropy

For every natural number ddd and every real number ppp, this defines

−plog⁡2p−(1−p)log⁡2 ⁣(1−pmax⁡(d−1,0)),-p\log_2 p-(1-p)\log_2\!\left(\frac{1-p}{\max(d-1,0)}\right),−plog2​p−(1−p)log2​(max(d−1,0)1−p​),

where the denominator is obtained by subtracting 111 from ddd in the natural numbers before converting to a real number. No assumption d≥2d\ge2d≥2 or 0≤p≤10\le p\le10≤p≤1 is made. Division by zero is zero, and the real logarithm is log⁡2r=ln⁡∣r∣/ln⁡2\log_2 r=\ln|r|/\ln2log2​r=ln∣r∣/ln2 for r≠0r\ne0r=0, with log⁡20=0\log_2 0=0log2​0=0. Thus for d=0d=0d=0 or d=1d=1d=1, the second term is zero and the value is −plog⁡2p-p\log_2 p−plog2​p.

QAlgorithms.Papers.Independent.Gap48.P21.teleportMap

For every natural number d>0d>0d>0 and every arbitrary real-valued function PPP on two pairs of indices from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, define Sij=1S_{ij}=1Sij​=1 if i≡j+1(modd)i\equiv j+1\pmod di≡j+1(modd) and zero otherwise, C=diag⁡(exp⁡(2πi j/d))C=\operatorname{diag}(\exp(2\pi\mathrm i\,j/d))C=diag(exp(2πij/d)), and Wa,b=SaCbW_{a,b}=S^aC^bWa,b​=SaCb. This declaration defines the function on all complex d×dd\times dd×d matrices XXX given by

X⟼∑s∈{0,…,d−1}2∑t∈{0,…,d−1}2P(s,t)d2 (WtWs†) X (WtWs†)†.X\longmapsto \sum_{s\in\{0,\ldots,d-1\}^2} \sum_{t\in\{0,\ldots,d-1\}^2} \frac{P(s,t)}{d^2}\, (W_tW_s^\dagger)\,X\,(W_tW_s^\dagger)^\dagger.X⟼s∈{0,…,d−1}2∑​t∈{0,…,d−1}2∑​d2P(s,t)​(Wt​Ws†​)X(Wt​Ws†​)†.

The real coefficients are regarded as complex scalars. No nonnegativity or normalization assumptions on PPP are imposed, and no channel property is included in the definition. For d=1d=1d=1, this reduces to X↦P((0,0),(0,0))XX\mapsto P((0,0),(0,0))XX↦P((0,0),(0,0))X.

Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me