Definitions for Positivity of linear maps under tensor powers
DefinitionQAlgorithms_Papers_Independent_Bridge50_P37The objects the formalized statements of Positivity of linear maps under tensor powers (arXiv:1502.05630) are stated in. Each was checked against the paper by a blind read-back and a moderator.
matrixUnitExtension: Matrix-unit linear extension (§II p.4); bundles the explicit coordinate formulas.tensorLinearMap: Full tensor action, including entangled inputs (§I p.2).tensorLinearPower: Bundled constant-family piSuperop formula (Definition 1 p.2). At degree zero the register is the one-dimensional empty product.NTensorStable: Positive map with positive full n-copy action, at positive degree (Definition 1 p.2). The base positivity implements the explicit p.2 convention that every n-tensor-stable positive map is positive. Without it, -id would pass at even n; see the discrepancy log.TensorStable: One map positive at every positive tensor degree (Definition 1 p.2).basisTransposeLinearMap: Fixed-basis transpose (§II p.4).OutputCoPositive: Output transpose composed with P is CP (Example I.1 p.2).Nontrivial: Nontriviality alone, separate from finite- or all-degree positivity (p.2).hsAdjoint: Hilbert--Schmidt adjoint, not entrywise conjugation (§II p.4).inducedTrace: Induced trace norm on the compact unit ball; equivalent to the source sphere (p.4).inducedInfinity: Induced operator norm, using the Euclidean spectral norm (§II p.4).normalizedEntangledProjection: Normalized maximally entangled projection (§II p.4), using the frozen vector.productValues: Unit vectors on each entire local space, allowing entanglement among copies (p.5).minProduct: Compact product-state minimum (p.5); Lemma 3 also states attainment.NoProductKernel: No nonzero product vector in the kernel, across A:B only (p.5).ProductBlockPositive: Hermitian product-positive cone, not merely a real-part test (pp.4,23).SeparableMap: Arbitrary rectangular separable CP maps; Kraus families are unnormalized (p.17).RectangularEBPositive: EB on every PSD input and every finite ancilla, without TP (Theorem 9 p.24).FullySeparablePositive: Full multipartite separability, with arbitrary unnormalized PSD factors (p.7).LocallyEA: k-local entanglement annihilation of the full output (§IV A p.7).InfinityEA: The same channel annihilates at every positive tensor degree (§IV A p.7).Distillable: Finite-copy two-qubit local-filter distillability, equivalent to LOCC distillability by quant-ph/9801069 after Eq. (9). Same body as accepted Support50.P39.IsDistillable, with second instead of first partial transpose (equivalent by full transpose). Filters can be rescaled to Kraus contractions; trace>0 excludes zero postselection (p.18).NPPTBound: A normalized entangled NPPT state that is LOCC-undistillable (pp.3--4).wernerMap: Werner--Holevo family Eq. (2) p.3; theorems require d>=2.candidateMap: W_p tensor (transpose composed with W_p), with exactly this grouping (p.3).flipParamWernerState: Werner state with swap expectation p, Eq. (A1), p.23.isotropicState: Isotropic state with maximally entangled overlap p (Appendix A p.23).reductionMap: Reduction map Gamma(X)=tr(X)I-X (Lemma 8 p.19).distanceCP: Negative spectral mass of the normalized Choi matrix, Eq. (15), p.14.unitalize: Filtered unitalization constructed from R itself (p.9).recurrenceParameter: The actual p constructed by Eq. (22), using its generalized inverse (p.21).recurrenceR: The recurrence update r_d(p), Eq. (20), p.20.recurrenceG: Canceled expression for g, resolving its removable endpoint p=1 (p.21).bipartiteHaarTwirl: Both normalized Haar twirls (pp.22--24). In the isotropic case the second factor is conjugate U, not U-adjoint. Continuous compact-group integrands are integrable.outputEigenvalues: Eigenvalue objective on every density input, Eq. (4), p.5.minimumOutputEigenvalue: Minimum output eigenvalue including the kernel (pp.5,24), with attainment below.cpCodingErrors: All finite CP coding sums, Eq. (17), p.15; no TP or contraction imposed.separableErrors: Separable Choi-distillation errors at k actual copies, Eq. (19), p.17.parallelError: Actual parallel coding error, with factor one half only here (Definition 2 p.8).parallelErrors: The infimum ranges over actual CPTP encoders and decoders (Lemma 5 p.13).ParallelCode: Actual parallel code on n copies of the output register (Eq. (14), p.13). This is the source's fixed-base presentation with d equal to the output dimension.ParallelCode.error: Half-diamond error of the code's actual channel (Eq. (8), p.8).ParallelCode.rate: Rate for fixed base equal to the output dimension, in bits per call (p.13).DiamondAchievable: Exactly the optimized-error definition in Eq. (8), p.8, with fixed d=2. The value sets contain replacement channels and lie in [0,1]. EReal limsup avoids identifying divergent rates with a default real value.diamondQuantumCapacity: Operational quantum capacity (Definition 2 p.8). For finite channels the feasible rate set is bounded by the input/output log dimension. Zero is included explicitly as the nonnegative supremum convention, also when no positive-length rate is feasible.ParallelStrongConverse: Strong converse on actual parallel codes: positive rate gap, block lengths tending infinity, computed errors tending to one exponentially (Eq. (14), p.13).flatProduct: Product channel on canonically enumerated product bases (Eq. (11), p.10).messageKraus: Product Kraus branch with both classical outcomes sent to the other party (Eq. (11)).messageRound: One complete message-exchange round, with local normalized Kraus families (p.10).SequentialLOCC: Finite sequential LOCC channels generated by local CPTP operations and the explicit classical-message rounds of Eq. (11), p.10. Local CPTP operations also allow retaining, discarding and relabelling local registers between rounds. This is distinct from PPT preservation and contains no communication channel calls.flatTranspose: Whole-B partial transpose on an enumerated A:B register (pp.10--11).AllowedAssistance: Assistance class: actual LOCC, or arbitrary CPTP PPT-preserving channels (p.11). All four local dimensions are positive; this does not define LOCC by PPT preservation.sendMap: One actual channel use moves Alice's port to Bob, leaving both memories intact (Definition 3 pp.10--11). Off-diagonal memory blocks are retained.CommunicationProtocol: Actual sequential protocol, with the use count tied to sendMap constructors. Arbitrary assistance can occur before, between and after all calls (Eq. (12), p.11).TwoPartyCode: Actual (N,m,epsilon) scheme of Definition 3 (pp.10--11); epsilon is computed below.TwoPartyCode.endChannel: Identify the one-dimensional end memories with the scalar algebra (Eq. (12)).TwoPartyCode.error: Computed half-diamond error of the actual full channel, Eq. (12), p.11.TwoPartyCode.rate: Rate in bits per call, Definition 3 p.11.AssistedAchievable: The source's vanishing-error, limsup achievable rates; assistance class kept explicit (p.11).diamondAssistedCapacity: Q2 for ppt=false; capacity with arbitrary PPT-preserving assistance for ppt=true (p.11).AssistedStrongConverse: Strong converse keeps liminf distinct from achievability's limsup (Theorem 7 p.12).capacityBound: Theorem 6's explicit expression; inverse and map remain actual data (p.8).converseBound: Eq. (14) uses the normalized Choi trace norm in its denominator, p.13.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Defs_Hamiltonian
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Defs_SchurUnitaryEnsembles
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P04
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P30
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P50
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P69
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P76
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P39
/-! Statements of arXiv:1502.05630v2. Positive finite dimensions, fixed orthonormal
bases, complex-linear maps, normalized reference-first Choi matrices throughout.
Theorem 8 uses its proof's normalized conclusion; see SOURCE_CORRECTIONS.md.
-/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
open Filter MeasureTheory
-- Only the following exact definition bodies are reused from pinned accepted papers.
open QAlgorithms.Papers.Independent.Information100.P04 (gamma copies)
open QAlgorithms.Papers.Independent.Information100.P30 (MatrixMap IsPositiveMap)
open QAlgorithms.Papers.Independent.Information100.P50 (maxEigenvalue)
open QAlgorithms.Papers.Independent.Information100.P63 (Mat)
open QAlgorithms.Papers.Independent.Information100.P69 (diamond)
open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)
open QAlgorithms.Papers.Independent.Information100.P76 (swapMatrix)
open QAlgorithms.Papers.Independent.Next46.P39 (inverseSqrt)
namespace QAlgorithms.Papers.Independent.Bridge50.P37
attribute [local instance] Classical.propDecidable Classical.decEq
variable {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
[DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D]
/-- Matrix-unit linear extension (§II p.4); bundles the explicit coordinate formulas. -/
def matrixUnitExtension (c : B → B → A → A → ℂ) : MatrixMap A B where
toFun X := fun a b => ∑ i, ∑ j, c a b i j * X i j
map_add' X Y := by
ext a b
change (∑ i, ∑ j, c a b i j * (X i j + Y i j)) =
(∑ i, ∑ j, c a b i j * X i j) + (∑ i, ∑ j, c a b i j * Y i j)
simp only [mul_add, Finset.sum_add_distrib]
map_smul' z X := by
ext a b
change (∑ i, ∑ j, c a b i j * (z * X i j)) =
z * (∑ i, ∑ j, c a b i j * X i j)
simp [Finset.mul_sum, mul_comm, mul_left_comm, mul_assoc]
/-- Full tensor action, including entangled inputs (§I p.2). -/
def tensorLinearMap (P : MatrixMap A B) (Q : MatrixMap C D) : MatrixMap (A × C) (B × D) :=
matrixUnitExtension fun a b i j =>
P (Matrix.single i.1 j.1 1) a.1 b.1 * Q (Matrix.single i.2 j.2 1) a.2 b.2
/-- Bundled constant-family piSuperop formula (Definition 1 p.2).
At degree zero the register is the one-dimensional empty product. -/
def tensorLinearPower (P : MatrixMap A B) (n : ℕ) : MatrixMap (Fin n → A) (Fin n → B) :=
matrixUnitExtension fun a b i j => ∏ k, P (Matrix.single (i k) (j k) 1) (a k) (b k)
/-- Positive map with positive full n-copy action, at positive degree (Definition 1 p.2).
The base positivity implements the explicit p.2 convention that every n-tensor-stable
positive map is positive. Without it, -id would pass at even n; see the discrepancy log. -/
def NTensorStable (P : MatrixMap A B) (n : ℕ) : Prop :=
0 < n ∧ IsPositiveMap P ∧ IsPositiveMap (tensorLinearPower P n)
/-- One map positive at every positive tensor degree (Definition 1 p.2). -/
def TensorStable (P : MatrixMap A B) : Prop := ∀ n, 0 < n → NTensorStable P n
/-- Fixed-basis transpose (§II p.4). -/
def basisTransposeLinearMap (A : Type) [Fintype A] : MatrixMap A A where
toFun X := X.transpose
map_add' _ _ := rfl
map_smul' _ _ := rfl
/-- Output transpose composed with P is CP (Example I.1 p.2). -/
def OutputCoPositive (P : MatrixMap A B) : Prop := Entanglement.IsCompletelyPositive ((basisTransposeLinearMap B).comp P)
/-- Nontriviality alone, separate from finite- or all-degree positivity (p.2). -/
def Nontrivial (P : MatrixMap A B) : Prop := ¬ Entanglement.IsCompletelyPositive P ∧ ¬ OutputCoPositive P
/-- Hilbert--Schmidt adjoint, not entrywise conjugation (§II p.4). -/
def hsAdjoint (P : MatrixMap A B) : MatrixMap B A :=
matrixUnitExtension fun a b i j => conj (P (Matrix.single a b 1) i j)
/-- Induced trace norm on the compact unit ball; equivalent to the source sphere (p.4). -/
def inducedTrace (P : MatrixMap A B) : ℝ :=
sSup {r | ∃ X : Mat A, traceNorm X ≤ 1 ∧ r = traceNorm (P X)}
/-- Induced operator norm, using the Euclidean spectral norm (§II p.4). -/
def inducedInfinity (P : MatrixMap A B) : ℝ :=
sSup {r | ∃ X : Mat A, specNorm X ≤ 1 ∧ r = specNorm (P X)}
/-- Normalized maximally entangled projection (§II p.4), using the frozen vector. -/
def normalizedEntangledProjection (A : Type) [Fintype A] [Nonempty A] [DecidableEq A] : Mat (A × A) :=
pureDensity (finiteMaxEntangled A)
/-- Unit vectors on each entire local space, allowing entanglement among copies (p.5). -/
def productValues (X : Mat (A × B)) : Set ℝ :=
{r | ∃ u : EuclideanSpace ℂ A, ∃ v : EuclideanSpace ℂ B,
‖u‖ = 1 ∧ ‖v‖ = 1 ∧ r = (inner ℂ (tensorVec u v) (act X (tensorVec u v))).re}
/-- Compact product-state minimum (p.5); Lemma 3 also states attainment. -/
def minProduct (X : Mat (A × B)) : ℝ := sInf (productValues X)
/-- No nonzero product vector in the kernel, across A:B only (p.5). -/
def NoProductKernel (X : Mat (A × B)) : Prop :=
∀ u : EuclideanSpace ℂ A, ∀ v : EuclideanSpace ℂ B,
u ≠ 0 → v ≠ 0 → act X (tensorVec u v) ≠ 0
/-- Hermitian product-positive cone, not merely a real-part test (pp.4,23). -/
def ProductBlockPositive (X : Mat (A × B)) : Prop :=
X.IsHermitian ∧ ∀ u : EuclideanSpace ℂ A, ∀ v : EuclideanSpace ℂ B,
0 ≤ (inner ℂ (tensorVec u v) (act X (tensorVec u v))).re
/-- Arbitrary rectangular separable CP maps; Kraus families are unnormalized (p.17). -/
def SeparableMap (S : MatrixMap (A × B) (C × D)) : Prop :=
∃ m : ℕ, ∃ F : Fin m → Matrix C A ℂ, ∃ G : Fin m → Matrix D B ℂ,
∀ X, S X = ∑ i, Matrix.kronecker (F i) (G i) * X * (Matrix.kronecker (F i) (G i))ᴴ
/-- EB on every PSD input and every finite ancilla, without TP (Theorem 9 p.24). -/
def RectangularEBPositive (T : MatrixMap A B) : Prop :=
∀ r : ℕ, 0 < r → ∀ X : Mat (Fin r × A), X.PosSemidef →
Entanglement.IsSeparablePositive (idTensorSuperop T X)
/-- Full multipartite separability, with arbitrary unnormalized PSD factors (p.7). -/
def FullySeparablePositive {k : ℕ} (X : Mat (Fin k → A)) : Prop :=
∃ m : ℕ, ∃ F : Fin m → Fin k → Mat A,
(∀ i j, (F i j).PosSemidef) ∧ X = ∑ i, (fun a b => ∏ j, F i j (a j) (b j))
/-- k-local entanglement annihilation of the full output (§IV A p.7). -/
def LocallyEA (T : MatrixMap A B) (k : ℕ) : Prop :=
0 < k ∧ ∀ X : Mat (Fin k → A), X.PosSemidef → FullySeparablePositive (tensorLinearPower T k X)
/-- The same channel annihilates at every positive tensor degree (§IV A p.7). -/
def InfinityEA (T : MatrixMap A B) : Prop := ∀ k, 0 < k → LocallyEA T k
/-- Finite-copy two-qubit local-filter distillability, equivalent to LOCC distillability
by quant-ph/9801069 after Eq. (9). Same body as accepted Support50.P39.IsDistillable,
with second instead of first partial transpose (equivalent by full transpose).
Filters can be rescaled to Kraus contractions; trace>0 excludes zero postselection (p.18). -/
def Distillable (X : Mat (A × B)) : Prop :=
∃ n : ℕ, 0 < n ∧ ∃ F : Matrix (Fin 2) (Fin n → A) ℂ,
∃ G : Matrix (Fin 2) (Fin n → B) ℂ,
let Y := Matrix.kronecker F G * copies X n * (Matrix.kronecker F G)ᴴ
0 < Y.trace.re ∧ ¬ (gamma Y).PosSemidef
/-- A normalized entangled NPPT state that is LOCC-undistillable (pp.3--4). -/
def NPPTBound (X : Mat (A × B)) : Prop :=
IsDensityMatrix X ∧ ¬ Entanglement.IsSeparablePositive X ∧
¬ (gamma X).PosSemidef ∧ ¬ Distillable X
/-- Werner--Holevo family Eq. (2) p.3; theorems require d>=2. -/
def wernerMap (d : ℕ) (p : ℝ) : MatrixMap (Fin d) (Fin d) :=
matrixUnitExtension fun a b i j => (1 / ((d : ℂ)^2 - 1)) *
(((d : ℂ) - p) * (if i = j then 1 else 0) * (if a = b then 1 else 0) -
(1 - (d : ℂ) * p) * (if a = j ∧ b = i then 1 else 0))
/-- W_p tensor (transpose composed with W_p), with exactly this grouping (p.3). -/
def candidateMap (d : ℕ) (p : ℝ) : MatrixMap (Fin d × Fin d) (Fin d × Fin d) :=
tensorLinearMap (wernerMap d p) ((basisTransposeLinearMap (Fin d)).comp (wernerMap d p))
/-- Werner state with swap expectation p, Eq. (A1), p.23. -/
def flipParamWernerState (d : ℕ) (p : ℝ) : Mat (Fin d × Fin d) :=
(((d : ℝ) - p) / (d * ((d : ℝ)^2 - 1)) : ℂ) • 1 +
(((d : ℝ) * p - 1) / (d * ((d : ℝ)^2 - 1)) : ℂ) • (swapMatrix (I := Fin d))
/-- Isotropic state with maximally entangled overlap p (Appendix A p.23). -/
def isotropicState (d : ℕ) [NeZero d] (p : ℝ) : Mat (Fin d × Fin d) :=
(p : ℂ) • normalizedEntangledProjection (Fin d) + (((1-p) / ((d : ℝ)^2-1) : ℝ) : ℂ) • (1-normalizedEntangledProjection (Fin d))
/-- Reduction map Gamma(X)=tr(X)I-X (Lemma 8 p.19). -/
def reductionMap (A : Type) [Fintype A] [DecidableEq A] : MatrixMap A A :=
matrixUnitExtension fun a b i j =>
(if i = j then 1 else 0) * (if a = b then 1 else 0) -
(if a = i ∧ b = j then 1 else 0)
/-- Negative spectral mass of the normalized Choi matrix, Eq. (15), p.14. -/
def distanceCP [Nonempty A] (P : MatrixMap A B) : ℝ :=
(traceNorm (normalizedChoi P) - (normalizedChoi P).trace.re) / 2
/-- Filtered unitalization constructed from R itself (p.9). -/
def unitalize [Nonempty B] (R : MatrixMap A B) : MatrixMap A B :=
(matrixUnitExtension fun a b i j => inverseSqrt (R 1) a i * conj (inverseSqrt (R 1) b j)).comp R
/-- The actual p constructed by Eq. (22), using its generalized inverse (p.21). -/
def recurrenceParameter [Nonempty A] [Nonempty B] (P : MatrixMap A B) : ℝ :=
let Z := inverseSqrt (Matrix.kronecker (1 : Mat A) (P 1))
maxEigenvalue (Z * normalizedChoi P * Z)
/-- The recurrence update r_d(p), Eq. (20), p.20. -/
def recurrenceR (d : ℕ) (p : ℝ) : ℝ :=
(1+p*(p*d*(d^2+d-1)-2)) / (p^2*d^3-2*p*d+d^2+d-1)
/-- Sanity: the maximally entangled endpoint is fixed by recurrence, p.20. -/
example : recurrenceR 2 1 = 1 := by norm_num [recurrenceR]
/-- Canceled expression for g, resolving its removable endpoint p=1 (p.21). -/
def recurrenceG (d : ℕ) (p : ℝ) : ℝ :=
((d : ℝ)-1) * (d*(1+p)+2) / (p^2*d^3-2*p*d+d^2+d-1)
/-- Both normalized Haar twirls (pp.22--24). In the isotropic case the second factor
is conjugate U, not U-adjoint. Continuous compact-group integrands are integrable. -/
def bipartiteHaarTwirl (d : ℕ) (isotropic : Bool) (X : Mat (Fin d × Fin d)) : Mat (Fin d × Fin d) :=
fun a b => ∫ U : Matrix.unitaryGroup (Fin d) ℂ,
let V := if isotropic then (fun i j => conj ((U : Mat (Fin d)) i j)) else (U : Mat (Fin d))
let K := Matrix.kronecker (U : Mat (Fin d)) V
(K * X * Kᴴ) a b ∂Schur.unitaryHaar d
/-- Eigenvalue objective on every density input, Eq. (4), p.5. -/
def outputEigenvalues (T : MatrixMap A B) : Set ℝ :=
{r | ∃ X : Mat A, IsDensityMatrix X ∧ r = minEigenvalue (T X)}
/-- Minimum output eigenvalue including the kernel (pp.5,24), with attainment below. -/
def minimumOutputEigenvalue (T : MatrixMap A B) : ℝ := sInf (outputEigenvalues T)
/-- All finite CP coding sums, Eq. (17), p.15; no TP or contraction imposed. -/
def cpCodingErrors (P : MatrixMap A B) (k : ℕ) : Set ℝ :=
{r | ∃ m : ℕ, 0 < m ∧ ∃ E : Fin m → MatrixMap A (Fin k → A),
∃ F : Fin m → MatrixMap (Fin k → B) A,
(∀ i, Entanglement.IsCompletelyPositive (E i) ∧ Entanglement.IsCompletelyPositive (F i)) ∧
r = diamond ((LinearMap.id : MatrixMap A A) - ∑ i, (F i).comp ((tensorLinearPower P k).comp (E i)))}
/-- Separable Choi-distillation errors at k actual copies, Eq. (19), p.17. -/
def separableErrors [Nonempty A] (P : MatrixMap A B) (k : ℕ) : Set ℝ :=
{r | ∃ S : MatrixMap ((Fin k → A) × (Fin k → B)) (A × A),
SeparableMap S ∧ r = traceNorm (normalizedEntangledProjection A - S (copies (normalizedChoi P) k))}
/-- Sanity: the bundled power is exactly the frozen full-register tensor formula (p.2). -/
example (P : MatrixMap A B) (n : ℕ) (X : Mat (Fin n → A)) :
tensorLinearPower P n X = piSuperop (fun _ : Fin n => P) X := by
ext a b
change (∑ i, ∑ j, (∏ k, P (Matrix.single (i k) (j k) 1) (a k) (b k)) * X i j) =
∑ i, ∑ j, X i j * ∏ k, P (Matrix.single (i k) (j k) 1) (a k) (b k)
simp only [mul_comm]
/-- Sanity: the canceled recurrence reaches the source's threshold value (p.21). -/
example : recurrenceG 2 (1/2) = 1 := by norm_num [recurrenceG]
/-- Sanity: transpose is an involution in the fixed basis (p.4). -/
example (X : Mat A) : basisTransposeLinearMap A (basisTransposeLinearMap A X) = X := rfl
/-- Sanity: generalized inverse square root keeps zero on the kernel (p.21). -/
example [Nonempty A] : inverseSqrt (0 : Mat A) = 0 := by simp [inverseSqrt, cfc_zero]
/-- Sanity: canceled endpoint at the smallest nontrivial dimension (p.21). -/
example : recurrenceG 2 1 = 2 / 3 := by norm_num [recurrenceG]
/-- Sanity: zero-copy matrix tensors are scalar one, not the zero algebra (p.15). -/
example (X : Mat (A × B)) (a b : (Fin 0 → A) × (Fin 0 → B)) :
copies X 0 a b = 1 := by simp [copies]
/-- Sanity: maximally entangled projection is normalized at scalar dimension (p.4). -/
example : normalizedEntangledProjection Unit ((),()) ((),()) = 1 := by simp [normalizedEntangledProjection, pureDensity, finiteMaxEntangled]
/-- Actual parallel coding error, with factor one half only here (Definition 2 p.8). -/
def parallelError {L : Type} [Fintype L] [DecidableEq L] (T : MatrixMap A B) (m : ℕ)
(E : MatrixMap L (Fin m → A)) (F : MatrixMap (Fin m → B) L) : ℝ :=
diamond ((LinearMap.id : MatrixMap L L) - F.comp ((tensorLinearPower T m).comp E)) / 2
/-- The infimum ranges over actual CPTP encoders and decoders (Lemma 5 p.13). -/
def parallelErrors {L : Type} [Fintype L] [DecidableEq L]
(T : MatrixMap A B) (m : ℕ) : Set ℝ :=
{r | ∃ E : MatrixMap L (Fin m → A), ∃ F : MatrixMap (Fin m → B) L,
IsChannel E ∧ IsChannel F ∧ r = parallelError T m E F}
/-- Actual parallel code on n copies of the output register (Eq. (14), p.13).
This is the source's fixed-base presentation with d equal to the output dimension. -/
structure ParallelCode (T : MatrixMap A B) where
n : ℕ
m : ℕ
npos : 0 < n
mpos : 0 < m
encoder : MatrixMap (Fin n → B) (Fin m → A)
decoder : MatrixMap (Fin m → B) (Fin n → B)
encoderChannel : IsChannel encoder
decoderChannel : IsChannel decoder
/-- Half-diamond error of the code's actual channel (Eq. (8), p.8). -/
def ParallelCode.error {T : MatrixMap A B} (K : ParallelCode T) : ℝ :=
parallelError T K.m K.encoder K.decoder
/-- Rate for fixed base equal to the output dimension, in bits per call (p.13). -/
def ParallelCode.rate {T : MatrixMap A B} (K : ParallelCode T) : ℝ :=
(K.n : ℝ) * Real.logb 2 (Fintype.card B) / K.m
/-- Exactly the optimized-error definition in Eq. (8), p.8, with fixed d=2.
The value sets contain replacement channels and lie in [0,1]. EReal limsup avoids
identifying divergent rates with a default real value. -/
def DiamondAchievable (T : MatrixMap A B) (r : ℝ) : Prop :=
0 ≤ r ∧ ∃ n m : ℕ → ℕ, (∀ v, 0 < n v ∧ 0 < m v) ∧
Tendsto (fun v => sInf (parallelErrors (L := Fin (n v) → Fin 2) T (m v))) atTop (nhds 0) ∧
Filter.limsup (fun v => (((n v : ℝ) / m v) : EReal)) atTop = (r : EReal)
/-- Operational quantum capacity (Definition 2 p.8). For finite channels the feasible
rate set is bounded by the input/output log dimension. Zero is included explicitly
as the nonnegative supremum convention, also when no positive-length rate is feasible. -/
def diamondQuantumCapacity (T : MatrixMap A B) : ℝ := sSup ({0} ∪ {r | DiamondAchievable T r})
/-- Strong converse on actual parallel codes: positive rate gap, block lengths tending
infinity, computed errors tending to one exponentially (Eq. (14), p.13). -/
def ParallelStrongConverse (T : MatrixMap A B) (r : ℝ) : Prop :=
∀ K : ℕ → ParallelCode T, Tendsto (fun v => (K v).m) atTop atTop →
(r : EReal) < Filter.liminf (fun v => ((K v).rate : EReal)) atTop →
Tendsto (fun v => (K v).error) atTop (nhds 1) ∧
∃ c : ℝ, 0 < c ∧ ∃ v0 : ℕ, ∀ v ≥ v0,
1 - (K v).error ≤ Real.exp (-c * (K v).m)
/-- Product channel on canonically enumerated product bases (Eq. (11), p.10). -/
def flatProduct {a b c d : ℕ} (E : MatrixMap (Fin a) (Fin c)) (F : MatrixMap (Fin b) (Fin d)) :
MatrixMap (Fin (a*b)) (Fin (c*d)) :=
matrixUnitExtension fun o p x y =>
let oo : Fin c × Fin d := finProdFinEquiv.symm o
let pp : Fin c × Fin d := finProdFinEquiv.symm p
let xx : Fin a × Fin b := finProdFinEquiv.symm x
let yy : Fin a × Fin b := finProdFinEquiv.symm y
E (Matrix.single xx.1 yy.1 1) oo.1 pp.1 * F (Matrix.single xx.2 yy.2 1) oo.2 pp.2
/-- Product Kraus branch with both classical outcomes sent to the other party (Eq. (11)). -/
def messageKraus {a b c d i j : ℕ}
(E : Fin i → Matrix (Fin c) (Fin a) ℂ) (F : Fin j → Matrix (Fin d) (Fin b) ℂ)
(s : Fin i) (t : Fin j) : Matrix (Fin ((c*j)*(d*i))) (Fin (a*b)) ℂ :=
fun o x =>
let oo : Fin (c*j) × Fin (d*i) := finProdFinEquiv.symm o
let aa : Fin c × Fin j := finProdFinEquiv.symm oo.1
let bb : Fin d × Fin i := finProdFinEquiv.symm oo.2
let xx : Fin a × Fin b := finProdFinEquiv.symm x
if aa.2 = t ∧ bb.2 = s then E s aa.1 xx.1 * F t bb.1 xx.2 else 0
/-- One complete message-exchange round, with local normalized Kraus families (p.10). -/
def messageRound {a b c d i j : ℕ}
(E : Fin i → Matrix (Fin c) (Fin a) ℂ) (F : Fin j → Matrix (Fin d) (Fin b) ℂ) :
MatrixMap (Fin (a*b)) (Fin ((c*j)*(d*i))) :=
matrixUnitExtension fun o p x y => ∑ s, ∑ t,
messageKraus E F s t o x * conj (messageKraus E F s t p y)
/-- Finite sequential LOCC channels generated by local CPTP operations and the
explicit classical-message rounds of Eq. (11), p.10. Local CPTP operations also allow
retaining, discarding and relabelling local registers between rounds. This is distinct
from PPT preservation and contains no communication channel calls. -/
inductive SequentialLOCC : (a b c d : ℕ) → MatrixMap (Fin (a*b)) (Fin (c*d)) → Prop
| local {a b c d : ℕ} (E : MatrixMap (Fin a) (Fin c)) (F : MatrixMap (Fin b) (Fin d))
(hE : IsChannel E) (hF : IsChannel F) : SequentialLOCC a b c d (flatProduct E F)
| message {a b c d i j : ℕ}
(E : Fin i → Matrix (Fin c) (Fin a) ℂ) (F : Fin j → Matrix (Fin d) (Fin b) ℂ)
(hE : IsKrausFamily E) (hF : IsKrausFamily F) :
SequentialLOCC a b (c*j) (d*i) (messageRound E F)
| comp {a b c d e f : ℕ} {E : MatrixMap (Fin (a*b)) (Fin (c*d))}
{F : MatrixMap (Fin (c*d)) (Fin (e*f))} (hE : SequentialLOCC a b c d E) (hF : SequentialLOCC c d e f F) :
SequentialLOCC a b e f (F.comp E)
/-- Whole-B partial transpose on an enumerated A:B register (pp.10--11). -/
def flatTranspose (a b : ℕ) : MatrixMap (Fin (a*b)) (Fin (a*b)) :=
flatProduct (LinearMap.id : MatrixMap (Fin a) (Fin a)) (basisTransposeLinearMap (Fin b))
/-- Assistance class: actual LOCC, or arbitrary CPTP PPT-preserving channels (p.11).
All four local dimensions are positive; this does not define LOCC by PPT preservation. -/
def AllowedAssistance (ppt : Bool) (a b c d : ℕ) (L : MatrixMap (Fin (a*b)) (Fin (c*d))) : Prop :=
0 < a ∧ 0 < b ∧ 0 < c ∧ 0 < d ∧
if ppt then IsChannel L ∧ Entanglement.IsCompletelyPositive
((flatTranspose c d).comp (L.comp (flatTranspose a b))) else SequentialLOCC a b c d L
/-- One actual channel use moves Alice's port to Bob, leaving both memories intact
(Definition 3 pp.10--11). Off-diagonal memory blocks are retained. -/
def sendMap {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (u v : ℕ) :
MatrixMap (Fin ((a*u)*v)) (Fin (u*(b*v))) :=
matrixUnitExtension fun o p x y =>
let oo : Fin u × Fin (b*v) := finProdFinEquiv.symm o
let pp : Fin u × Fin (b*v) := finProdFinEquiv.symm p
let ox : Fin b × Fin v := finProdFinEquiv.symm oo.2
let px : Fin b × Fin v := finProdFinEquiv.symm pp.2
let xx : Fin (a*u) × Fin v := finProdFinEquiv.symm x
let yy : Fin (a*u) × Fin v := finProdFinEquiv.symm y
let ax : Fin a × Fin u := finProdFinEquiv.symm xx.1
let ay : Fin a × Fin u := finProdFinEquiv.symm yy.1
if oo.1 = ax.2 ∧ pp.1 = ay.2 ∧ ox.2 = xx.2 ∧ px.2 = yy.2
then T (Matrix.single ax.1 ay.1 1) ox.1 px.1 else 0
/-- Actual sequential protocol, with the use count tied to sendMap constructors.
Arbitrary assistance can occur before, between and after all calls (Eq. (12), p.11). -/
inductive CommunicationProtocol {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (ppt : Bool) :
(u v x y m : ℕ) → MatrixMap (Fin (u*v)) (Fin (x*y)) → Prop
| assistance {u v x y : ℕ} (L : MatrixMap (Fin (u*v)) (Fin (x*y)))
(h : AllowedAssistance ppt u v x y L) : CommunicationProtocol T ppt u v x y 0 L
| call (u v : ℕ) (hu : 0 < u) (hv : 0 < v) :
CommunicationProtocol T ppt (a*u) v u (b*v) 1 (sendMap T u v)
| comp {u v x y z w m n : ℕ} {E : MatrixMap (Fin (u*v)) (Fin (x*y))}
{F : MatrixMap (Fin (x*y)) (Fin (z*w))} (hE : CommunicationProtocol T ppt u v x y m E)
(hF : CommunicationProtocol T ppt x y z w n F) : CommunicationProtocol T ppt u v z w (m+n) (F.comp E)
/-- Actual (N,m,epsilon) scheme of Definition 3 (pp.10--11); epsilon is computed below. -/
structure TwoPartyCode {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (ppt : Bool) where
N : ℕ
m : ℕ
Npos : 0 < N
mpos : 0 < m
channel : MatrixMap (Fin (N*1)) (Fin (1*N))
valid : CommunicationProtocol T ppt N 1 1 N m channel
/-- Identify the one-dimensional end memories with the scalar algebra (Eq. (12)). -/
def TwoPartyCode.endChannel {a b : ℕ} {T : MatrixMap (Fin a) (Fin b)} {ppt : Bool}
(K : TwoPartyCode T ppt) : MatrixMap (Fin K.N) (Fin K.N) :=
matrixUnitExtension fun o p x y => K.channel
(Matrix.single (finProdFinEquiv (x, (0 : Fin 1))) (finProdFinEquiv (y, (0 : Fin 1))) 1)
(finProdFinEquiv ((0 : Fin 1),o)) (finProdFinEquiv ((0 : Fin 1),p))
/-- Computed half-diamond error of the actual full channel, Eq. (12), p.11. -/
def TwoPartyCode.error {a b : ℕ} {T : MatrixMap (Fin a) (Fin b)} {ppt : Bool}
(K : TwoPartyCode T ppt) : ℝ :=
diamond ((LinearMap.id : MatrixMap (Fin K.N) (Fin K.N)) - K.endChannel) / 2
/-- Rate in bits per call, Definition 3 p.11. -/
def TwoPartyCode.rate {a b : ℕ} {T : MatrixMap (Fin a) (Fin b)} {ppt : Bool}
(K : TwoPartyCode T ppt) : ℝ := Real.logb 2 K.N / K.m
/-- The source's vanishing-error, limsup achievable rates; assistance class kept explicit (p.11). -/
def AssistedAchievable {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (ppt : Bool) (r : ℝ) : Prop :=
0 ≤ r ∧ ∃ K : ℕ → TwoPartyCode T ppt,
Tendsto (fun v => (K v).error) atTop (nhds 0) ∧
Filter.limsup (fun v => ((K v).rate : EReal)) atTop = (r : EReal)
/-- Q2 for ppt=false; capacity with arbitrary PPT-preserving assistance for ppt=true (p.11). -/
def diamondAssistedCapacity {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (ppt : Bool) : ℝ :=
sSup {r | AssistedAchievable T ppt r}
/-- Strong converse keeps liminf distinct from achievability's limsup (Theorem 7 p.12). -/
def AssistedStrongConverse {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (ppt : Bool) (r : ℝ) : Prop :=
∀ K : ℕ → TwoPartyCode T ppt, Tendsto (fun v => (K v).m) atTop atTop →
(r : EReal) < Filter.liminf (fun v => ((K v).rate : EReal)) atTop →
Tendsto (fun v => (K v).error) atTop (nhds 1) ∧
∃ c : ℝ, 0 < c ∧ ∃ v0 : ℕ, ∀ v ≥ v0,
1 - (K v).error ≤ Real.exp (-c * (K v).m)
/-- Theorem 6's explicit expression; inverse and map remain actual data (p.8). -/
def capacityBound (T : MatrixMap A B) (P : MatrixMap C B) (R : MatrixMap B C) : ℝ :=
Real.logb 2 (diamond (R.comp T) * specNorm (hsAdjoint P 1)) *
Real.logb 2 (Fintype.card B) / Real.logb 2 (diamond (hsAdjoint P))
/-- Eq. (14) uses the normalized Choi trace norm in its denominator, p.13. -/
def converseBound [Nonempty B] (T : MatrixMap A B) (P : MatrixMap C B) (R : MatrixMap B C) : ℝ :=
Real.logb 2 (diamond (R.comp T) * specNorm (hsAdjoint P 1)) *
Real.logb 2 (Fintype.card B) /
Real.logb 2 (traceNorm (tensorLinearMap (hsAdjoint P) (LinearMap.id : MatrixMap B B) (normalizedEntangledProjection B)))
/-- Sanity: an actual code's error has the specified half factor, p.8. -/
example {T : MatrixMap A B} (K : ParallelCode T) :
K.error = parallelError T K.m K.encoder K.decoder := rfl
/-- Sanity: call counting is structural, not an unrelated free cost, p.11. -/
example {a b : ℕ} (T : MatrixMap (Fin a) (Fin b)) (u v : ℕ) (hu : 0 < u) (hv : 0 < v) :
CommunicationProtocol T false (a*u) v u (b*v) 1 (sendMap T u v) := CommunicationProtocol.call u v hu hv
end QAlgorithms.Papers.Independent.Bridge50.P37
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P37.AllowedAssistance
For a Boolean flag , natural numbers , and a complex-linear map , this predicate first requires . If is true, it additionally requires that have a finite Kraus representation with , and that be completely positive, where
Complete positivity here means that, for every natural number , including , applying the map to each block of any positive semidefinite matrix indexed by times the input index set yields a positive semidefinite matrix. If is false, must instead have a finite derivation generated under composition by tensor products of channels and by rounds , from dimensions to , with normalized families , , and
Each channel in this construction has a finite normalized Kraus representation. The predicate is false if any of the four outer dimensions is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.AssistedAchievable
For arbitrary natural numbers , a complex-linear map , a Boolean flag , and a real number , this predicate means that and there exists a sequence of codes , indexed by all natural numbers , such that
where the limsup is taken in the extended real numbers and equals the finite extended-real value of . Each code has and a finite protocol map from party dimensions to with count . Protocols are generated under composition with additive counts by one-count calls applying and transferring its output factor to the second party, and zero-count assistance with positive party dimensions. For a true flag, assistance is a finite normalized Kraus channel whose composition with second-factor transposition before and after is completely positive; for a false flag, it is generated under composition by product channels and normalized paired Kraus rounds, with local Kraus labels placed in the opposite output factors. Complete positivity requires positivity under every finite identity amplification. If is the protocol map after removing its one-dimensional input and output factors, its error is
The test matrices are arbitrary complex matrices. There is no requirement that or tend to infinity, nor that the rates themselves converge.
QAlgorithms.Papers.Independent.Bridge50.P37.AssistedStrongConverse
For natural numbers , a complex-linear map , a Boolean parameter , and any real number , this predicate means the following. Consider every sequence of two-party codes , indexed by . Each code has positive integers and a linear map implemented by a finite protocol that starts with Alice holding a register of dimension and Bob a register of dimension , ends with Alice holding dimension and Bob dimension , and makes exactly calls to . Such protocols are generated by composition from assistance operations and calls: a call applies to an -dimensional register held by Alice and transfers its -dimensional output to Bob, leaving both parties’ other registers untouched. All local memory dimensions in a call are positive. If is true, an assistance operation , between positive local dimensions, must be a channel and must remain completely positive after transposing Bob’s input before and Bob’s output after . If is false, assistance operations are finite compositions of products of local channels and message rounds: in a message round, local Kraus families , , satisfying and , apply , with Alice receiving a classical flag and Bob receiving a classical flag . Here a channel means a map with finitely many Kraus matrices satisfying , and complete positivity means that every finite identity amplification, including ancillary dimension zero, preserves positive semidefinite matrices. Define the code’s rate and error by
where, for a linear map ,
and the amplification applies to each matrix block indexed by the ancillary register. Whenever and , with the latter comparison taken in the extended real numbers, the errors satisfy , and there exist a real and , depending on the sequence, such that for every . No channel assumption on , positivity assumption on , or nonnegativity assumption on is part of this definition.
QAlgorithms.Papers.Independent.Bridge50.P37.CommunicationProtocol
For arbitrary natural numbers , a complex-linear map , and a Boolean flag , this defines the least relation on natural numbers and complex-linear maps generated by three rules. An allowed assistance map gives a related map with : its four dimensions must be positive, and, when is true, it must be a channel whose composition with second-factor transposition both before and after is completely positive; when the flag is false, it must be generated under composition by product channels and normalized paired Kraus rounds. A channel has the form with ; a paired round uses normalized families and matrices
Complete positivity means positivity of every finite identity amplification, including amplification size zero. The second rule, for every , gives a related map with , from dimensions to , whose entries are
Finally, related maps with matching intermediate dimensions and counts compose in execution order to give with count . Membership requires a finite derivation. There is no assumption that itself is a channel, and may be zero.
QAlgorithms.Papers.Independent.Bridge50.P37.DiamondAchievable
For finite types with decidable equality, a complex-linear map , and a real number , this predicate means that and there exist sequences , both strictly positive for every , such that, writing ,
The limsup equality is taken in the extended real numbers. A channel means a finite Kraus representation for all , with . The tensor map is the linear extension of . For a map on , its diamond quantity is the real supremum of over indexed by with , where amplification is blockwise and . The infima are real-valued and need not be attained; an empty error set has real infimum . No channel assumption on , nonemptiness assumption on , or requirement that either or tend to infinity is included.
QAlgorithms.Papers.Independent.Bridge50.P37.Distillable
For finite index types , with decidable equality, and a complex matrix on , this predicate says that there exist a natural number and complex matrices and , each with two rows and with columns indexed respectively by functions and , such that, on defining
one has and the matrix with entries , indexed by , is not positive semidefinite. No density, Hermiticity, or positivity assumption is imposed on , and no normalization or contraction condition is imposed on . The value is excluded.
QAlgorithms.Papers.Independent.Bridge50.P37.FullySeparablePositive
For a finite index type , a natural number , and a complex matrix indexed by functions , this predicate says that there exist a natural number and positive semidefinite complex matrices on , for and , such that for every pair of index functions ,
No trace normalization is required of or the factors. The value represents zero. When , the index type has one element and every empty product is , so the condition says that the sole entry of equals some natural number , viewed as a complex number.
QAlgorithms.Papers.Independent.Bridge50.P37.InfinityEA
For finite index types , with decidable equality, and a complex-linear map , this predicate says that for every natural number and every positive semidefinite matrix indexed by functions , the matrix
can be written as
for some natural number and positive semidefinite matrices on , where and is the elementary matrix with entry at . The representation may depend on and ; its factors need not be normalized, and is permitted. There is no requirement at and no separate trace-preservation requirement on .
QAlgorithms.Papers.Independent.Bridge50.P37.LocallyEA
For finite index types , with decidable equality, a complex-linear map , and a natural number , this predicate requires and the following property: for every positive semidefinite matrix indexed by functions , the matrix
where and has its sole nonzero entry at , admits a representation
for some natural number and positive semidefinite matrices on . Neither the input nor the factors are required to have trace ; is allowed. For , the predicate is false because its first requirement fails.
QAlgorithms.Papers.Independent.Bridge50.P37.NPPTBound
For finite index types , with decidable equality, and a complex matrix on , this predicate is the conjunction of four conditions: is positive semidefinite with trace ; there is no representation with , , and positive semidefinite trace-one matrices on , respectively, with no requirement that the weights sum to ; the matrix , defined by , is not positive semidefinite; and there exist no and two-row complex matrices , with columns indexed respectively by , for which
satisfies both and failure of positive semidefiniteness of . The filters have no normalization constraint. If either or is empty, the trace-one condition cannot hold.
QAlgorithms.Papers.Independent.Bridge50.P37.NTensorStable
For finite index types , with decidable equality on , a complex-linear map , and a natural number , this predicate means that , that is positive semidefinite whenever is positive semidefinite, and that the map
also sends every positive semidefinite matrix to a positive semidefinite matrix. Here denotes a matrix unit. The predicate is false for ; it imposes no trace-preservation or normalization requirement.
QAlgorithms.Papers.Independent.Bridge50.P37.NoProductKernel
For finite index types , with decidable equality, and a complex matrix indexed by , this predicate says that for every and , if and , then the vector with coordinates
is nonzero. The vectors need not be normalized, and need not be Hermitian or positive. If either index type is empty, the implication holds vacuously because that factor has no nonzero vector.
QAlgorithms.Papers.Independent.Bridge50.P37.Nontrivial
For finite index types and a complex-linear map , this predicate means that neither nor the map is completely positive. For a map , complete positivity here means that for every natural number and every positive semidefinite matrix indexed by , the matrix with entries is positive semidefinite. Thus both of these universal positivity conditions are denied; the definition does not additionally require itself to preserve positivity.
QAlgorithms.Papers.Independent.Bridge50.P37.OutputCoPositive
For finite index types and a complex-linear map , this predicate means that transposing the output of gives a completely positive map. Explicitly, for every natural number , including , and every positive semidefinite matrix indexed by , the matrix indexed by , defined by
is positive semidefinite. The transpose here does not conjugate entries.
QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode.error
For finite types with decidable equality, a complex-linear map , and a code consisting of positive natural numbers and channel maps , , this defines
For each of , being a channel means possessing a finite representation for all , with on its input space. The tensor map is the linear extension of , where and similarly for . With , the diamond quantity is the real supremum of over matrices indexed by with , using blockwise amplification and . No channel assumption is imposed on , and the definition itself supplies no bound of on the error. Empty or are allowed whenever the required code data exist.
QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode
For finite types with decidable equality and any complex-linear map , this structure consists of two natural numbers , proofs that and , a complex-linear encoder
and a complex-linear decoder , together with proofs that both are channels. Here , and likewise for the other function index types. Each channel proof requires a finite Kraus representation , valid for every input matrix, with equal to the input identity; the number of Kraus matrices may be zero when that identity is zero. The structure imposes no channel assumption on , no relation between and , and no accuracy requirement on the encoder and decoder. The underlying types are not required to be nonempty.
QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode.rate
For finite types with decidable equality, any complex-linear map , and a code with positive natural numbers , a channel encoder from matrices indexed by to matrices indexed by , and a channel decoder from matrices indexed by back to matrices indexed by , this defines
The channel fields require finite Kraus representations with for each map. The value of the rate uses only and ; it does not depend on the action of , the encoder, or the decoder, and no accuracy condition is required. The denominator is nonzero because . The type may be empty or a singleton; the total real logarithm used in the definition gives and , hence rate in either case.
QAlgorithms.Papers.Independent.Bridge50.P37.ParallelStrongConverse
For finite types with decidable equality, a complex-linear map , and , this predicate says that every sequence of codes , each having positive integers , a channel encoder , and a channel decoder , satisfies the following implication: if and
in the extended reals, then, putting , one has , and there exist a real and such that for every . Each channel must have a finite Kraus representation with , valid for all . The tensor map is the linear extension of . For , the diamond quantity is the real supremum of over matrices indexed by with , using blockwise amplification and . The constants may depend on the code sequence. No channel assumption on , nonemptiness assumption on , or sign restriction on is included; the condition is vacuous when no code sequence satisfies its hypotheses.
QAlgorithms.Papers.Independent.Bridge50.P37.ProductBlockPositive
For finite index types , with decidable equality, and a complex matrix indexed by , this predicate requires both that and that, for every and ,
The quantifiers include zero vectors and impose no normalization. If either index type is empty, the matrix is the unique empty matrix and these conditions hold.
QAlgorithms.Papers.Independent.Bridge50.P37.RectangularEBPositive
For finite index types , with decidable equality, and a complex-linear map , this predicate requires the following for every natural number and every positive semidefinite matrix on : the matrix on , defined by
has a representation
for some natural number , real weights , positive semidefinite matrices on with trace , and positive semidefinite matrices on with trace . The weights need not sum to , and need not have trace . The empty sum is allowed and represents zero; is excluded.
QAlgorithms.Papers.Independent.Bridge50.P37.SeparableMap
For finite index types , with decidable equality as needed, and a complex-linear map from complex matrices on to complex matrices on , this predicate says that there exist a natural number , matrices , and matrices , for , such that for every complex matrix on ,
There is no normalization or trace-preservation requirement on these matrices. The value is allowed and gives the zero map.
QAlgorithms.Papers.Independent.Bridge50.P37.SequentialLOCC
This defines the least relation on natural numbers and complex-linear maps generated by three rules. First, if and are channels, then their tensor product satisfies the relation; here a channel means a map for some finite family with , and the tensor product is the linear extension of , using standard matrix units and flattened pair indices. Second, for any natural numbers and families , satisfying
the relation holds from dimensions to for , where
Third, whenever the relation holds for and , it holds for . All dimensions and family sizes may be zero; empty sums retain their usual zero value, and the normalization equations still apply. Membership requires a finite derivation using these rules.
QAlgorithms.Papers.Independent.Bridge50.P37.TensorStable
For finite index types , with decidable equality on , and a complex-linear map , this predicate means that for every positive natural number , preserves positive semidefiniteness and so does the map
where denotes a matrix unit. There is no condition at , and no requirement that preserve trace.
QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.endChannel
For natural numbers , a complex-linear map , a Boolean flag , and a code , this defines a complex-linear map on matrices, where . The code also contains a positive count and a map admitting a finite protocol derivation from dimensions to : counts add under composition, calls apply to its input factor while transferring its output factor to the other party and count as one, and assistance counts as zero. Assistance has positive party dimensions and is either a finite Kraus channel whose second-factor-transpose conjugate is completely positive, for a true flag, or a finite composition generated by product channels and normalized paired Kraus rounds, for a false flag. In a paired round the two normalized Kraus families act jointly and place the label in the first output factor and in the second. A channel means a finite Kraus map with , and complete positivity means positivity under every finite identity amplification. Writing for a standard matrix unit and using flattened pair indices, the defined map is
It therefore inserts and removes the indicated one-dimensional factors. No channel hypothesis on is added.
QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.error
For natural numbers , an arbitrary complex-linear map , a Boolean flag , and a code , this defines
where , ranges over all complex matrices indexed by , and . The amplification applies separately to each block; need not be positive or have trace one. The map is obtained from by identifying its input with and output with . The code contains a positive count and a finite protocol derivation from dimensions to , generated by composition with additive counts, one-count applications of transferring its output factor to the second party, and zero-count assistance. Assistance has positive party dimensions and, for a true flag, is a finite normalized Kraus channel whose second-factor-transpose conjugate is completely positive; for a false flag, it is generated by composition from product channels and rounds with normalized local Kraus families , placing their opposite labels in the two output factors. Complete positivity means positivity of every finite identity amplification. The supremum is taken in the real numbers.
QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode
For arbitrary natural numbers , a complex-linear map , and a Boolean flag , this structure consists of positive natural numbers , a complex-linear map from matrices of dimension to matrices of dimension , and a finite protocol derivation from party dimensions to with recorded count exactly . Such derivations are generated under composition, adding counts, by zero-count assistance maps and one-count calls to . A call requires positive auxiliary dimensions and acts from to by
Assistance requires positive input and output party dimensions; for a true flag it is a channel that remains completely positive after second-factor transposition before and after, while for a false flag it is generated under composition by product channels and normalized paired Kraus rounds. Here channels have finite representations with , and a paired round uses normalized families with Kraus entries at output and input . Complete positivity requires positivity of every finite identity amplification. No channel hypothesis is imposed on ; the field named “channel” is required to satisfy the stated protocol relation.
QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.rate
For arbitrary natural numbers , a complex-linear map , a Boolean flag , and a code , this defines the real number
The code includes a complex-linear map from party dimensions to with a finite protocol derivation of count . The protocol is generated by composition, adding counts, from one-count calls applying to its input factor and transferring its output factor to the second party, and zero-count assistance maps with positive party dimensions. For a true flag, assistance is a channel whose second-factor-transpose conjugate is completely positive; for a false flag, assistance is generated under composition by product channels and normalized paired Kraus rounds, whose local families place the labels in the opposite output factors. Channels have finite Kraus representations with , and complete positivity requires positivity of every finite identity amplification. The definition permits , which gives rate zero; its denominator is positive by the code’s required field.
QAlgorithms.Papers.Independent.Bridge50.P37.basisTransposeLinearMap
For every index type equipped with a finite enumeration, this defines the complex-linear map on matrices that sends to its transpose:
The entries are not complex-conjugated. The definition also applies when is empty.
QAlgorithms.Papers.Independent.Bridge50.P37.bipartiteHaarTwirl
For every natural number , every Boolean flag, and every complex matrix indexed by , define a matrix entrywise by
where is Haar measure normalized to have total mass , and if the flag is true, while if it is false. Here denotes entrywise complex conjugation. No Hermiticity, positivity, or trace assumption is imposed on . The case is included and gives the matrix with empty index set.
QAlgorithms.Papers.Independent.Bridge50.P37.candidateMap
For every natural number , including , and every real , define a complex-linear map on matrices indexed by as follows. Let be the complex-linear map on matrices given by
and let denote the matrix unit. The defined map sends to
The transpose is the ordinary transpose, without complex conjugation. There is no restriction on and no positivity or channel assumption. Division by zero is defined to give zero, so for this is the zero map; for all matrix indices and sums are empty.
QAlgorithms.Papers.Independent.Bridge50.P37.capacityBound
For finite types , each equipped with decidable equality and allowed to be empty, and complex-linear maps , , and , this definition assigns the real number
Here denotes matrices indexed by , is the identity matrix, is the operator norm for Euclidean vector norms, and the map denoted is defined explicitly by
where is a matrix unit. For any linear map ,
with the amplification applying to each block in the ancillary indices. There are no positivity or channel hypotheses on the three maps. All operations are total real operations: and division by zero returns zero, so the expression is defined even when its logarithm arguments vanish or its denominator is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.converseBound
For finite types , each equipped with decidable equality, with nonempty but allowed to be empty, and complex-linear maps , , and , this definition assigns
Here is given by , denotes a matrix unit, and , where . The tensor-map expression in the denominator means explicitly
The norm is the Euclidean operator norm, , and
for , with the amplification acting on each ancillary block. No positivity or channel assumptions are imposed. Real logarithms and division retain their total definitions, including and division by zero equal to zero; in particular, no nonzero-denominator hypothesis is present.
QAlgorithms.Papers.Independent.Bridge50.P37.cpCodingErrors
For finite types with decidable equality, a complex-linear map , and any , this defines the set of real numbers
Here all maps are complex-linear, , and is the linear extension of the matrix-unit rule . Complete positivity means that, for every ancillary dimension , including , applying the map to each matrix block of every positive semidefinite matrix indexed by times its input index type gives a positive semidefinite matrix. For a map with input index type , the quantity used here is
where the amplification applies separately to each block indexed by the first -coordinate. Neither nor the are required to preserve trace, and no normalization condition is imposed on their sum. Empty or and are allowed; at , the function index types are singletons and the tensor matrix-unit rule uses an empty product equal to .
QAlgorithms.Papers.Independent.Bridge50.P37.diamondAssistedCapacity
For arbitrary natural numbers , an arbitrary complex-linear map , and a Boolean flag , this defines the real supremum of the nonnegative real numbers for which there exists a sequence of codes with positive dimensions , positive counts , errors tending to zero, and extended-real limsup . Each code is a finite protocol from party dimensions to , generated under composition with additive counts by one-count applications of transferring its output factor to the second party and zero-count assistance maps with positive party dimensions. For a true flag, assistance is a finite normalized Kraus channel whose second-factor-transpose conjugate is completely positive; for a false flag, it is generated under composition by product channels and paired rounds from normalized Kraus families , placing the labels in the opposite output factors. Channels have representations with , and complete positivity means positivity of every finite identity amplification. After removing the one-dimensional endpoint factors, a code’s map has error
over all complex matrices, with . No growth condition on the sequence of dimensions or counts is imposed. The supremum is a totalized real supremum: it is zero if the set of such rates is empty or unbounded above.
QAlgorithms.Papers.Independent.Bridge50.P37.diamondQuantumCapacity
For finite types with decidable equality and a complex-linear map , this defines the real supremum of together with all for which there exist positive-integer sequences satisfying
where and , and the limsup is in the extended reals. A channel is a map with a finite Kraus representation , valid for every , satisfying . The map is the linear extension of . For a map with input index type , is the real supremum of for matrices indexed by with , using blockwise amplification and . Neither sequence is required to diverge. Empty are allowed, and empty error sets have real infimum . The outer supremum is a real supremum, with value for an unbounded-above set under the total real-supremum convention; it is not an extended-real capacity.
QAlgorithms.Papers.Independent.Bridge50.P37.distanceCP
For finite types with decidable equality, assuming is nonempty, and any complex-linear map from matrices indexed by to matrices indexed by , define , indexed by , by
The defined real number is
where the square root is obtained by continuous functional calculus. No positivity or trace-preservation assumption is imposed on . The output type may be empty, in which case this number is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.flatProduct
For arbitrary natural numbers and complex-linear maps and , this defines a complex-linear map from matrices of size to matrices of size . Using the canonical finite-product bijections to write output indices as , and input indices as , , its value on any input matrix is
where denotes the matrix with entry at and elsewhere. No positivity or channel assumptions are required. Any of the four dimensions may be zero; the corresponding index sets and sums are empty where applicable.
QAlgorithms.Papers.Independent.Bridge50.P37.flatTranspose
For every pair of natural numbers , including zero, this defines a complex-linear map on matrices by taking the tensor product of the identity map on the first factor and ordinary matrix transposition on the second. Explicitly, under the flattened identification with pairs,
There is no complex conjugation in this formula. If either dimension is zero, it is the unique map on the resulting empty-index matrix space.
QAlgorithms.Papers.Independent.Bridge50.P37.flipParamWernerState
For every natural number , including , and every real , define the matrix on by
Thus exchanges the two factors. No bounds on , positivity, or trace condition are imposed. Fractions with zero denominator equal zero, so at or the defined matrix is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.hsAdjoint
For an index type with decidable equality, a finite index type , and a complex-linear map , this defines the complex-linear map in the reverse direction given by
where has entry at and zero elsewhere. If is empty, the sums are zero.
QAlgorithms.Papers.Independent.Bridge50.P37.inducedInfinity
For finite index types with decidable equality and a complex-linear map , this defines the real number
where is the operator norm for the Euclidean norms on the corresponding complex coordinate spaces. All complex matrices are included, without positivity or normalization restrictions, and empty index types are allowed.
QAlgorithms.Papers.Independent.Bridge50.P37.inducedTrace
For finite index types with decidable equality and a complex-linear map , this defines the real number
where the square root is defined by continuous functional calculus. The matrices range over all complex matrices, without a Hermitian, positivity, or trace-one restriction. Empty index types are allowed.
QAlgorithms.Papers.Independent.Bridge50.P37.isotropicState
For every nonzero natural number and every real , let have coordinates when and otherwise, and put . The defined matrix is
There is no restriction on and no asserted density-matrix condition. The case is included: division by zero gives zero, and the resulting matrix is .
QAlgorithms.Papers.Independent.Bridge50.P37.matrixUnitExtension
For a finite index type , an index type , and arbitrary complex coefficients indexed by and , this defines the complex-linear map from matrices to matrices given by
If is empty, these sums are zero, so the map is zero. No positivity or normalization condition is imposed on .
QAlgorithms.Papers.Independent.Bridge50.P37.messageKraus
For arbitrary natural numbers , families of complex matrices of size , indexed by , and of size , indexed by , and chosen indices , , this defines a complex matrix with rows and columns. Decode a row index through the canonical finite-product bijections as , with , , , , and decode a column as . The entry is
No Kraus-completeness, positivity, or normalization assumptions are imposed on either family. The chosen indices can exist only when ; the dimensions may be zero, yielding empty row or column index sets as appropriate.
QAlgorithms.Papers.Independent.Bridge50.P37.messageRound
For arbitrary natural numbers , including zero, and families for and for , this defines a complex-linear map from matrices to matrices. Identify flattened indices with pairs in the indicated order, and define matrices by
The defined map is
No normalization or channel hypothesis is imposed on either family. Empty sums are zero, so or gives the zero map.
QAlgorithms.Papers.Independent.Bridge50.P37.minProduct
For finite index types , with decidable equality, and a complex matrix indexed by , this defines the real infimum
No Hermiticity or positivity assumption is imposed on . This uses the total real-valued infimum operation; in particular, if either factor is empty, the set is empty and its assigned infimum is .
QAlgorithms.Papers.Independent.Bridge50.P37.minimumOutputEigenvalue
For finite types with decidable equality and any complex-linear map from -indexed matrices to -indexed matrices, define the real infimum of
where is the smallest eigenvalue for a Hermitian matrix on a nonempty index set and is zero for a non-Hermitian matrix or an empty index set. No positivity or channel assumption is imposed on . The real infimum operation is total, assigning zero to an empty set or a set unbounded below; in particular, the defined value is zero if or is empty.
QAlgorithms.Papers.Independent.Bridge50.P37.normalizedEntangledProjection
For a finite, nonempty index type with decidable equality, let and define the vector by when , and otherwise. This definition returns the matrix ; explicitly,
The nonemptiness assumption ensures , and the definition includes .
QAlgorithms.Papers.Independent.Bridge50.P37.outputEigenvalues
For finite types with decidable equality and any complex-linear map from -indexed matrices to -indexed matrices, define the set
For a nonempty output index set, is the smallest eigenvalue when is Hermitian and is zero otherwise; it is also defined to be zero when is empty. No positivity or channel assumption is imposed on . If is empty, there is no trace-one input matrix, so the defined set is empty.
QAlgorithms.Papers.Independent.Bridge50.P37.parallelError
For finite types with decidable equality, a complex-linear map , any , and complex-linear maps and , this defines the real number
Here , similarly for , and is the linear extension of . For a map , its displayed diamond quantity is the real supremum of over all complex matrices indexed by with , where amplification means applying to each block and . None of is assumed positive or trace preserving, so this definition imposes no upper bound of on the result. Empty index types and are allowed; the zero-fold function index types are singletons and their tensor products use the empty product .
QAlgorithms.Papers.Independent.Bridge50.P37.parallelErrors
For finite types with decidable equality, a complex-linear map , and any , this defines the set
A map is a channel here precisely when there are finitely many matrices , possibly zero such matrices, satisfying and for every . The map is the linear extension of , with . For a map on , is the real supremum of over matrices indexed by with ; the amplification acts blockwise and . The map need not be a channel. Empty types and are allowed, with zero-fold tensor index types singletons and empty products ; the set is empty if no such pair of channels exists.
QAlgorithms.Papers.Independent.Bridge50.P37.productValues
For finite index types , with decidable equality, and a complex matrix indexed by , this defines the set of real numbers
Thus the vectors tested are precisely products with coordinates , and matrix action is ordinary matrix multiplication. No Hermiticity or positivity assumption is imposed on . If either index type is empty, there is no unit vector in that factor and this set is empty.
QAlgorithms.Papers.Independent.Bridge50.P37.recurrenceG
For every natural number , including , and every real , define the real number
with interpreted as a real number, so is ordinary real subtraction. No restriction on or nonvanishing-denominator hypothesis is imposed; if the denominator is zero, the defined value is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.recurrenceParameter
For nonempty finite types with decidable equality and any complex-linear map from -indexed matrices to -indexed matrices, define
using real continuous functional calculus, and put . The defined real number is , where is the first entry of the ascending eigenvalue list when is Hermitian and is zero when is not Hermitian. Thus this is the largest eigenvalue of when is Hermitian, and zero otherwise. No positivity, invertibility, or channel assumption is imposed on ; inverse square roots use , and real continuous functional calculus returns zero on non-Hermitian matrices.
QAlgorithms.Papers.Independent.Bridge50.P37.recurrenceR
For every natural number , including , and every real , define the real number
with interpreted as a real number in this formula. No restriction on or nonvanishing-denominator hypothesis is imposed; if the denominator is zero, the defined value is zero.
QAlgorithms.Papers.Independent.Bridge50.P37.reductionMap
For every finite type with decidable equality, define the complex-linear map on complex matrices indexed by by
Equivalently, its -entry is . The type may be empty, in which case the sums and matrix entries are empty.
QAlgorithms.Papers.Independent.Bridge50.P37.sendMap
For arbitrary natural numbers , a complex-linear map , and natural numbers , this defines a complex-linear map from matrices indexed by to matrices indexed by , with these products flattened to dimensions and . For every input matrix , its output entries are
Thus the formula applies to the -dimensional matrix factor while retaining the - and -indices in the displayed output order. No channel or positivity hypothesis is imposed on , and all dimensions, including , may be zero.
QAlgorithms.Papers.Independent.Bridge50.P37.separableErrors
For finite types with decidable equality, with nonempty, a complex-linear map , and any , this defines the set
Writing , the matrices in this formula are
and
The required representation of the complex-linear map is the existence of an and matrices , , for , such that for every . There is no trace-preservation or Kraus-normalization requirement, and permits the zero map. The norm is . No positivity or channel assumption is imposed on ; may be empty, and is included, with singleton function index types and empty products equal to .
QAlgorithms.Papers.Independent.Bridge50.P37.tensorLinearMap
For finite index types with decidable equality, arbitrary index types , and complex-linear maps and , this defines a complex-linear map on matrices indexed by , with output indexed by , by
where is the matrix with entry at and zero elsewhere. Empty input index sets give empty sums. Neither map is required to preserve positivity or trace.
QAlgorithms.Papers.Independent.Bridge50.P37.tensorLinearPower
For a finite index type with decidable equality, an index type , a complex-linear map , and any natural number , this defines a complex-linear map from matrices indexed by to matrices indexed by by
Here and are the sets of functions from to the respective index types, and is a matrix unit. The definition includes : both function sets then contain one empty function, and the empty product is , so this is the identity map on one-dimensional matrices.
QAlgorithms.Papers.Independent.Bridge50.P37.unitalize
For finite types with decidable equality, assuming is nonempty, and any complex-linear map from -indexed matrices to -indexed matrices, put
where means real continuous functional calculus. The defined complex-linear map sends to . No positivity or invertibility assumption is imposed on , and no unitality assertion is part of this definition. The scalar convention is , and for ; real continuous functional calculus returns zero on a non-Hermitian matrix. The input type may be empty.
QAlgorithms.Papers.Independent.Bridge50.P37.wernerMap
For every natural number and real number , this defines a complex-linear map on complex matrices by
Equivalently,
where the transpose does not conjugate entries. There is no restriction on and no positivity or channel condition in this definition. Division is complex division with , so at the map is zero; is also included and gives the unique map on empty matrices.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.