Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Positivity of linear maps under tensor powers

Definition
QAlgorithms_Papers_Independent_Bridge50_P37

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The 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.
Definition code
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
Source
Positivity of linear maps under tensor powers, arXiv:1502.05630v2, https://arxiv.org/abs/1502.05630v2
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 ppt\mathrm{ppt}ppt, natural numbers a,b,c,da,b,c,da,b,c,d, and a complex-linear map L:Cab×ab→Ccd×cdL:\mathbb C^{ab\times ab}\to\mathbb C^{cd\times cd}L:Cab×ab→Ccd×cd, this predicate first requires a,b,c,d>0a,b,c,d>0a,b,c,d>0. If ppt\mathrm{ppt}ppt is true, it additionally requires that LLL have a finite Kraus representation L(X)=∑sAsXAs†L(X)=\sum_s A_sXA_s^\daggerL(X)=∑s​As​XAs†​ with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and that Γc,d∘L∘Γa,b\Gamma_{c,d}\circ L\circ\Gamma_{a,b}Γc,d​∘L∘Γa,b​ be completely positive, where

(Γa,bX)(r,s),(r′,s′)=X(r,s′),(r′,s).(\Gamma_{a,b}X)_{(r,s),(r',s')}=X_{(r,s'),(r',s)}.(Γa,b​X)(r,s),(r′,s′)​=X(r,s′),(r′,s)​.

Complete positivity here means that, for every natural number rrr, including r=0r=0r=0, applying the map to each block of any positive semidefinite matrix indexed by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} times the input index set yields a positive semidefinite matrix. If ppt\mathrm{ppt}ppt is false, LLL must instead have a finite derivation generated under composition by tensor products of channels and by rounds X↦∑s,tKs,tXKs,t†X\mapsto\sum_{s,t}K_{s,t}XK_{s,t}^\daggerX↦∑s,t​Ks,t​XKs,t†​, from dimensions (a′,b′)(a',b')(a′,b′) to (c′j,d′i)(c'j,d'i)(c′j,d′i), with normalized families ∑sEs†Es=Ia′\sum_sE_s^\dagger E_s=I_{a'}∑s​Es†​Es​=Ia′​, ∑tFt†Ft=Ib′\sum_tF_t^\dagger F_t=I_{b'}∑t​Ft†​Ft​=Ib′​, and

Ks,t((α,t′),(β,s′);(x,y))=1t′=t1s′=sEs(α,x)Ft(β,y).K_{s,t}\bigl((\alpha,t'),(\beta,s');(x,y)\bigr) =\mathbf1_{t'=t}\mathbf1_{s'=s}E_s(\alpha,x)F_t(\beta,y).Ks,t​((α,t′),(β,s′);(x,y))=1t′=t​1s′=s​Es​(α,x)Ft​(β,y).

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,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, a Boolean flag ppt\mathrm{ppt}ppt, and a real number rrr, this predicate means that r≥0r\ge0r≥0 and there exists a sequence of codes KvK_vKv​, indexed by all natural numbers vvv, such that

Kv.error⟶0,lim sup⁡v→∞(log⁡2Nvmv)=r,K_v.\mathrm{error}\longrightarrow0, \qquad \limsup_{v\to\infty} \left(\frac{\log_2 N_v}{m_v}\right)=r,Kv​.error⟶0,v→∞limsup​(mv​log2​Nv​​)=r,

where the limsup is taken in the extended real numbers and equals the finite extended-real value of rrr. Each code has Nv,mv>0N_v,m_v>0Nv​,mv​>0 and a finite protocol map from party dimensions (Nv,1)(N_v,1)(Nv​,1) to (1,Nv)(1,N_v)(1,Nv​) with count mvm_vmv​. Protocols are generated under composition with additive counts by one-count calls applying TTT 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 CvC_vCv​ is the protocol map after removing its one-dimensional input and output factors, its error is

12sup⁡X∈CNv2×Nv2∥X∥1≤1∥(idNv⊗(id−Cv))(X)∥1,∥X∥1=Re⁡Tr⁡X†X.\frac12\sup_{\substack{X\in\mathbb C^{N_v^2\times N_v^2}\\\|X\|_1\le1}} \left\|(\mathrm{id}_{N_v}\otimes(\mathrm{id}-C_v))(X)\right\|_1, \qquad \|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}.21​X∈CNv2​×Nv2​∥X∥1​≤1​sup​∥(idNv​​⊗(id−Cv​))(X)∥1​,∥X∥1​=ReTrX†X​.

The test matrices XXX are arbitrary complex matrices. There is no requirement that mvm_vmv​ or NvN_vNv​ tend to infinity, nor that the rates themselves converge.

QAlgorithms.Papers.Independent.Bridge50.P37.AssistedStrongConverse

For natural numbers a,ba,ba,b, a complex-linear map T:Ma(C)→Mb(C)T:M_a(\mathbb C)\to M_b(\mathbb C)T:Ma​(C)→Mb​(C), a Boolean parameter ppt\mathrm{ppt}ppt, and any real number rrr, this predicate means the following. Consider every sequence of two-party codes KvK_vKv​, indexed by v∈Nv\in\mathbb Nv∈N. Each code has positive integers Nv,mvN_v,m_vNv​,mv​ and a linear map Ev:MNv(C)→MNv(C)E_v:M_{N_v}(\mathbb C)\to M_{N_v}(\mathbb C)Ev​:MNv​​(C)→MNv​​(C) implemented by a finite protocol that starts with Alice holding a register of dimension NvN_vNv​ and Bob a register of dimension 111, ends with Alice holding dimension 111 and Bob dimension NvN_vNv​, and makes exactly mvm_vmv​ calls to TTT. Such protocols are generated by composition from assistance operations and calls: a call applies TTT to an aaa-dimensional register held by Alice and transfers its bbb-dimensional output to Bob, leaving both parties’ other registers untouched. All local memory dimensions in a call are positive. If ppt\mathrm{ppt}ppt is true, an assistance operation LLL, between positive local dimensions, must be a channel and must remain completely positive after transposing Bob’s input before LLL and Bob’s output after LLL. If ppt\mathrm{ppt}ppt is false, assistance operations are finite compositions of products of local channels and message rounds: in a message round, local Kraus families (As)(A_s)(As​), (Bt)(B_t)(Bt​), satisfying ∑sAs†As=I\sum_s A_s^\dagger A_s=I∑s​As†​As​=I and ∑tBt†Bt=I\sum_t B_t^\dagger B_t=I∑t​Bt†​Bt​=I, apply As⊗BtA_s\otimes B_tAs​⊗Bt​, with Alice receiving a classical flag ttt and Bob receiving a classical flag sss. Here a channel means a map X↦∑jVjXVj†X\mapsto\sum_j V_jXV_j^\daggerX↦∑j​Vj​XVj†​ with finitely many Kraus matrices satisfying ∑jVj†Vj=I\sum_jV_j^\dagger V_j=I∑j​Vj†​Vj​=I, 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

Rv=log⁡2Nvmv,ev=12 D(id⁡Nv−Ev),R_v=\frac{\log_2 N_v}{m_v}, \qquad e_v=\frac12\,D(\operatorname{id}_{N_v}-E_v),Rv​=mv​log2​Nv​​,ev​=21​D(idNv​​−Ev​),

where, for a linear map F:Ms(C)→Mt(C)F:M_s(\mathbb C)\to M_t(\mathbb C)F:Ms​(C)→Mt​(C),

D(F)=sup⁡{∥(id⁡s⊗F)(X)∥1:X∈Ms2(C), ∥X∥1≤1},∥X∥1=Re⁡tr⁡X†X,D(F)=\sup\left\{ \|(\operatorname{id}_s\otimes F)(X)\|_1: X\in M_{s^2}(\mathbb C),\ \|X\|_1\le1 \right\}, \qquad \|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X},D(F)=sup{∥(ids​⊗F)(X)∥1​:X∈Ms2​(C), ∥X∥1​≤1},∥X∥1​=RetrX†X​,

and the amplification applies FFF to each matrix block indexed by the ancillary register. Whenever mv→+∞m_v\to+\inftymv​→+∞ and r<lim inf⁡v→∞Rvr<\liminf_{v\to\infty}R_vr<liminfv→∞​Rv​, with the latter comparison taken in the extended real numbers, the errors satisfy ev→1e_v\to1ev​→1, and there exist a real c>0c>0c>0 and v0∈Nv_0\in\mathbb Nv0​∈N, depending on the sequence, such that 1−ev≤e−cmv1-e_v\le e^{-cm_v}1−ev​≤e−cmv​ for every v≥v0v\ge v_0v≥v0​. No channel assumption on TTT, positivity assumption on a,ba,ba,b, or nonnegativity assumption on rrr is part of this definition.

QAlgorithms.Papers.Independent.Bridge50.P37.CommunicationProtocol

For arbitrary natural numbers a,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, and a Boolean flag ppt\mathrm{ppt}ppt, this defines the least relation on natural numbers u,v,x,y,mu,v,x,y,mu,v,x,y,m and complex-linear maps L:Cuv×uv→Cxy×xyL:\mathbb C^{uv\times uv}\to\mathbb C^{xy\times xy}L:Cuv×uv→Cxy×xy generated by three rules. An allowed assistance map gives a related map with m=0m=0m=0: its four dimensions must be positive, and, when ppt\mathrm{ppt}ppt 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 ∑sAs( ⋅ )As†\sum_s A_s(\,\cdot\,)A_s^\dagger∑s​As​(⋅)As†​ with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I; a paired round uses normalized families Es,FtE_s,F_tEs​,Ft​ and matrices

Ks,t((α,t′),(β,s′);(r,s0))=1t′=t1s′=sEs(α,r)Ft(β,s0).K_{s,t}\bigl((\alpha,t'),(\beta,s');(r,s_0)\bigr) =\mathbf1_{t'=t}\mathbf1_{s'=s}E_s(\alpha,r)F_t(\beta,s_0).Ks,t​((α,t′),(β,s′);(r,s0​))=1t′=t​1s′=s​Es​(α,r)Ft​(β,s0​).

Complete positivity means positivity of every finite identity amplification, including amplification size zero. The second rule, for every u,v>0u,v>0u,v>0, gives a related map with m=1m=1m=1, from dimensions (au,v)(au,v)(au,v) to (u,bv)(u,bv)(u,bv), whose entries are

L(X)(α,(β,γ)),(α′,(β′,γ′))=∑r,s<aX((r,α),γ),((s,α′),γ′) T(ers)β,β′.L(X)_{(\alpha,(\beta,\gamma)),(\alpha',(\beta',\gamma'))} =\sum_{r,s<a}X_{((r,\alpha),\gamma),((s,\alpha'),\gamma')}\,T(e_{rs})_{\beta,\beta'}.L(X)(α,(β,γ)),(α′,(β′,γ′))​=r,s<a∑​X((r,α),γ),((s,α′),γ′)​T(ers​)β,β′​.

Finally, related maps with matching intermediate dimensions and counts m,nm,nm,n compose in execution order to give F∘EF\circ EF∘E with count m+nm+nm+n. Membership requires a finite derivation. There is no assumption that TTT itself is a channel, and a,ba,ba,b may be zero.

QAlgorithms.Papers.Independent.Bridge50.P37.DiamondAchievable

For finite types A,BA,BA,B with decidable equality, a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), and a real number rrr, this predicate means that r≥0r\ge0r≥0 and there exist sequences nv,mv∈Nn_v,m_v\in\mathbb Nnv​,mv​∈N, both strictly positive for every v∈Nv\in\mathbb Nv∈N, such that, writing Lv=Fin⁡(nv)→Fin⁡(2)L_v=\operatorname{Fin}(n_v)\to\operatorname{Fin}(2)Lv​=Fin(nv​)→Fin(2),

inf⁡{12∥id⁡Lv−F∘T⊗mv∘E∥⋄:E:Mat⁡Lv→Mat⁡Amv, F:Mat⁡Bmv→Mat⁡Lv, E,F channels}⟶0,lim sup⁡v→∞nvmv=r.\inf\left\{\frac12\left\|\operatorname{id}_{L_v}-F\circ T^{\otimes m_v}\circ E\right\|_\diamond: E:\operatorname{Mat}_{L_v}\to\operatorname{Mat}_{A^{m_v}},\ F:\operatorname{Mat}_{B^{m_v}}\to\operatorname{Mat}_{L_v},\ E,F\text{ channels}\right\}\longrightarrow0, \qquad \limsup_{v\to\infty}\frac{n_v}{m_v}=r.inf{21​​idLv​​−F∘T⊗mv​∘E​⋄​:E:MatLv​​→MatAmv​​, F:MatBmv​​→MatLv​​, E,F channels}⟶0,v→∞limsup​mv​nv​​=r.

The limsup equality is taken in the extended real numbers. A channel HHH means a finite Kraus representation H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​ for all XXX, with ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I. The tensor map is the linear extension of ex,x′↦⨂j<mvT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m_v}T(e_{x_j,x'_j})ex,x′​↦⨂j<mv​​T(exj​,xj′​​). For a map on Mat⁡Lv\operatorname{Mat}_{L_v}MatLv​​, its diamond quantity is the real supremum of ∥(id⁡Lv⊗H)(X)∥1\|(\operatorname{id}_{L_v}\otimes H)(X)\|_1∥(idLv​​⊗H)(X)∥1​ over XXX indexed by Lv×LvL_v\times L_vLv​×Lv​ with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1, where amplification is blockwise and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The infima are real-valued and need not be attained; an empty error set has real infimum 000. No channel assumption on TTT, nonemptiness assumption on A,BA,BA,B, or requirement that either nvn_vnv​ or mvm_vmv​ tend to infinity is included.

QAlgorithms.Papers.Independent.Bridge50.P37.Distillable

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX on A×BA\times BA×B, this predicate says that there exist a natural number n>0n>0n>0 and complex matrices FFF and GGG, each with two rows and with columns indexed respectively by functions {0,…,n−1}→A\{0,\ldots,n-1\}\to A{0,…,n−1}→A and {0,…,n−1}→B\{0,\ldots,n-1\}\to B{0,…,n−1}→B, such that, on defining

(X[n])(a,b),(a′,b′)=∏j=0n−1X(a(j),b(j)),(a′(j),b′(j),Y=(F⊗G)X[n](F⊗G)†,(X^{[n]})_{(a,b),(a',b')} =\prod_{j=0}^{n-1}X_{(a(j),b(j)),(a'(j),b'(j)}, \qquad Y=(F\otimes G)X^{[n]}(F\otimes G)^\dagger,(X[n])(a,b),(a′,b′)​=j=0∏n−1​X(a(j),b(j)),(a′(j),b′(j)​,Y=(F⊗G)X[n](F⊗G)†,

one has Re⁡tr⁡Y>0\operatorname{Re}\operatorname{tr}Y>0RetrY>0 and the matrix with entries Y(i,l),(k,j)Y_{(i,l),(k,j)}Y(i,l),(k,j)​, indexed by (i,j),(k,l)∈{0,1}2(i,j),(k,l)\in\{0,1\}^2(i,j),(k,l)∈{0,1}2, is not positive semidefinite. No density, Hermiticity, or positivity assumption is imposed on XXX, and no normalization or contraction condition is imposed on F,GF,GF,G. The value n=0n=0n=0 is excluded.

QAlgorithms.Papers.Independent.Bridge50.P37.FullySeparablePositive

For a finite index type AAA, a natural number kkk, and a complex matrix XXX indexed by functions {0,…,k−1}→A\{0,\ldots,k-1\}\to A{0,…,k−1}→A, this predicate says that there exist a natural number mmm and positive semidefinite complex matrices Fi,jF_{i,j}Fi,j​ on AAA, for 0≤i<m0\le i<m0≤i<m and 0≤j<k0\le j<k0≤j<k, such that for every pair of index functions a,ba,ba,b,

Xa,b=∑i=0m−1∏j=0k−1(Fi,j)a(j),b(j).X_{a,b}=\sum_{i=0}^{m-1}\prod_{j=0}^{k-1}(F_{i,j})_{a(j),b(j)}.Xa,b​=i=0∑m−1​j=0∏k−1​(Fi,j​)a(j),b(j)​.

No trace normalization is required of XXX or the factors. The value m=0m=0m=0 represents zero. When k=0k=0k=0, the index type has one element and every empty product is 111, so the condition says that the sole entry of XXX equals some natural number mmm, viewed as a complex number.

QAlgorithms.Papers.Independent.Bridge50.P37.InfinityEA

For finite index types A,BA,BA,B, with decidable equality, and a complex-linear map T:CA×A→CB×BT:\mathbb C^{A\times A}\to\mathbb C^{B\times B}T:CA×A→CB×B, this predicate says that for every natural number k>0k>0k>0 and every positive semidefinite matrix XXX indexed by functions {0,…,k−1}→A\{0,\ldots,k-1\}\to A{0,…,k−1}→A, the matrix

Ya,b=∑x,x′: {0,…,k−1}→AXx,x′∏j=0k−1[T(Ex(j),x′(j))]a(j),b(j)Y_{a,b} = \sum_{x,x':\,\{0,\ldots,k-1\}\to A} X_{x,x'}\prod_{j=0}^{k-1} \bigl[T(E_{x(j),x'(j)})\bigr]_{a(j),b(j)}Ya,b​=x,x′:{0,…,k−1}→A∑​Xx,x′​j=0∏k−1​[T(Ex(j),x′(j)​)]a(j),b(j)​

can be written as

Ya,b=∑i=0m−1∏j=0k−1(Fi,j)a(j),b(j)Y_{a,b}=\sum_{i=0}^{m-1}\prod_{j=0}^{k-1}(F_{i,j})_{a(j),b(j)}Ya,b​=i=0∑m−1​j=0∏k−1​(Fi,j​)a(j),b(j)​

for some natural number mmm and positive semidefinite matrices Fi,jF_{i,j}Fi,j​ on BBB, where a,b:{0,…,k−1}→Ba,b:\{0,\ldots,k-1\}\to Ba,b:{0,…,k−1}→B and Es,tE_{s,t}Es,t​ is the elementary matrix with entry 111 at (s,t)(s,t)(s,t). The representation may depend on kkk and XXX; its factors need not be normalized, and m=0m=0m=0 is permitted. There is no requirement at k=0k=0k=0 and no separate trace-preservation requirement on TTT.

QAlgorithms.Papers.Independent.Bridge50.P37.LocallyEA

For finite index types A,BA,BA,B, with decidable equality, a complex-linear map T:CA×A→CB×BT:\mathbb C^{A\times A}\to\mathbb C^{B\times B}T:CA×A→CB×B, and a natural number kkk, this predicate requires k>0k>0k>0 and the following property: for every positive semidefinite matrix XXX indexed by functions {0,…,k−1}→A\{0,\ldots,k-1\}\to A{0,…,k−1}→A, the matrix

Ya,b=∑x,x′: {0,…,k−1}→AXx,x′∏j=0k−1[T(Ex(j),x′(j))]a(j),b(j),Y_{a,b} = \sum_{x,x':\,\{0,\ldots,k-1\}\to A} X_{x,x'}\prod_{j=0}^{k-1} \bigl[T(E_{x(j),x'(j)})\bigr]_{a(j),b(j)},Ya,b​=x,x′:{0,…,k−1}→A∑​Xx,x′​j=0∏k−1​[T(Ex(j),x′(j)​)]a(j),b(j)​,

where a,b:{0,…,k−1}→Ba,b:\{0,\ldots,k-1\}\to Ba,b:{0,…,k−1}→B and Es,tE_{s,t}Es,t​ has its sole nonzero entry 111 at (s,t)(s,t)(s,t), admits a representation

Ya,b=∑i=0m−1∏j=0k−1(Fi,j)a(j),b(j)Y_{a,b}=\sum_{i=0}^{m-1}\prod_{j=0}^{k-1}(F_{i,j})_{a(j),b(j)}Ya,b​=i=0∑m−1​j=0∏k−1​(Fi,j​)a(j),b(j)​

for some natural number mmm and positive semidefinite matrices Fi,jF_{i,j}Fi,j​ on BBB. Neither the input nor the factors are required to have trace 111; m=0m=0m=0 is allowed. For k=0k=0k=0, the predicate is false because its first requirement fails.

QAlgorithms.Papers.Independent.Bridge50.P37.NPPTBound

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX on A×BA\times BA×B, this predicate is the conjunction of four conditions: XXX is positive semidefinite with trace 111; there is no representation X=∑j=0m−1wjRj⊗SjX=\sum_{j=0}^{m-1}w_jR_j\otimes S_jX=∑j=0m−1​wj​Rj​⊗Sj​ with m∈Nm\in\mathbb Nm∈N, wj≥0w_j\ge0wj​≥0, and positive semidefinite trace-one matrices Rj,SjR_j,S_jRj​,Sj​ on A,BA,BA,B, respectively, with no requirement that the weights sum to 111; the matrix ΓX\Gamma XΓX, defined by (ΓX)(a,b),(c,d)=X(a,d),(c,b)(\Gamma X)_{(a,b),(c,d)}=X_{(a,d),(c,b)}(ΓX)(a,b),(c,d)​=X(a,d),(c,b)​, is not positive semidefinite; and there exist no n>0n>0n>0 and two-row complex matrices F,GF,GF,G, with columns indexed respectively by An,BnA^n,B^nAn,Bn, for which

Y=(F⊗G)X[n](F⊗G)†,(X[n])(a,b),(a′,b′)=∏j=0n−1X(a(j),b(j)),(a′(j),b′(j)Y=(F\otimes G)X^{[n]}(F\otimes G)^\dagger, \qquad (X^{[n]})_{(a,b),(a',b')}=\prod_{j=0}^{n-1}X_{(a(j),b(j)),(a'(j),b'(j)}Y=(F⊗G)X[n](F⊗G)†,(X[n])(a,b),(a′,b′)​=j=0∏n−1​X(a(j),b(j)),(a′(j),b′(j)​

satisfies both Re⁡tr⁡Y>0\operatorname{Re}\operatorname{tr}Y>0RetrY>0 and failure of positive semidefiniteness of ΓY\Gamma YΓY. The filters F,GF,GF,G have no normalization constraint. If either AAA or BBB is empty, the trace-one condition cannot hold.

QAlgorithms.Papers.Independent.Bridge50.P37.NTensorStable

For finite index types A,BA,BA,B, with decidable equality on AAA, a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), and a natural number nnn, this predicate means that n>0n>0n>0, that P(X)P(X)P(X) is positive semidefinite whenever XXX is positive semidefinite, and that the map

(TP,n(X))b,b′=∑a,a′∈AnXa,a′∏k=0n−1P(Eakak′)bkbk′\bigl(\mathcal T_{P,n}(X)\bigr)_{b,b'} =\sum_{a,a'\in A^n}X_{a,a'}\prod_{k=0}^{n-1}P(E_{a_k a'_k})_{b_k b'_k}(TP,n​(X))b,b′​=a,a′∈An∑​Xa,a′​k=0∏n−1​P(Eak​ak′​​)bk​bk′​​

also sends every positive semidefinite matrix to a positive semidefinite matrix. Here EuvE_{uv}Euv​ denotes a matrix unit. The predicate is false for n=0n=0n=0; it imposes no trace-preservation or normalization requirement.

QAlgorithms.Papers.Independent.Bridge50.P37.NoProductKernel

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX indexed by A×BA\times BA×B, this predicate says that for every u∈CAu\in\mathbb C^Au∈CA and v∈CBv\in\mathbb C^Bv∈CB, if u≠0u\ne0u=0 and v≠0v\ne0v=0, then the vector with coordinates

(X(u⊗v))a,b=∑c∈A∑d∈BX(a,b),(c,d)ucvd\bigl(X(u\otimes v)\bigr)_{a,b} =\sum_{c\in A}\sum_{d\in B}X_{(a,b),(c,d)}u_c v_d(X(u⊗v))a,b​=c∈A∑​d∈B∑​X(a,b),(c,d)​uc​vd​

is nonzero. The vectors need not be normalized, and XXX 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 A,BA,BA,B and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this predicate means that neither PPP nor the map X↦P(X)TX\mapsto P(X)^{\mathsf T}X↦P(X)T is completely positive. For a map Φ\PhiΦ, complete positivity here means that for every natural number rrr and every positive semidefinite matrix XXX indexed by {0,…,r−1}×A\{0,\ldots,r-1\}\times A{0,…,r−1}×A, the matrix with entries Φ([X(s,a),(t,a′)]a,a′)bb′\Phi([X_{(s,a),(t,a')}]_{a,a'})_{bb'}Φ([X(s,a),(t,a′)​]a,a′​)bb′​ is positive semidefinite. Thus both of these universal positivity conditions are denied; the definition does not additionally require PPP itself to preserve positivity.

QAlgorithms.Papers.Independent.Bridge50.P37.OutputCoPositive

For finite index types A,BA,BA,B and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this predicate means that transposing the output of PPP gives a completely positive map. Explicitly, for every natural number rrr, including r=0r=0r=0, and every positive semidefinite matrix XXX indexed by {0,…,r−1}×A\{0,\ldots,r-1\}\times A{0,…,r−1}×A, the matrix YYY indexed by {0,…,r−1}×B\{0,\ldots,r-1\}\times B{0,…,r−1}×B, defined by

Y(s,b),(t,b′)=P ⁣([X(s,a),(t,a′)]a,a′∈A)b′,b,Y_{(s,b),(t,b')}= P\!\left([X_{(s,a),(t,a')}]_{a,a'\in A}\right)_{b',b},Y(s,b),(t,b′)​=P([X(s,a),(t,a′)​]a,a′∈A​)b′,b​,

is positive semidefinite. The transpose here does not conjugate entries.

QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode.error

For finite types A,BA,BA,B with decidable equality, a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), and a code KKK consisting of positive natural numbers n,mn,mn,m and channel maps E:Mat⁡Bn→Mat⁡AmE:\operatorname{Mat}_{B^n}\to\operatorname{Mat}_{A^m}E:MatBn​→MatAm​, F:Mat⁡Bm→Mat⁡BnF:\operatorname{Mat}_{B^m}\to\operatorname{Mat}_{B^n}F:MatBm​→MatBn​, this defines

K.error=12∥id⁡Bn−F∘T⊗m∘E∥⋄.K.\mathrm{error}=\frac12\left\|\operatorname{id}_{B^n}-F\circ T^{\otimes m}\circ E\right\|_\diamond.K.error=21​​idBn​−F∘T⊗m∘E​⋄​.

For each of E,FE,FE,F, being a channel means possessing a finite representation H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​ for all XXX, with ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I on its input space. The tensor map is the linear extension of ex,x′↦⨂j<mT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m}T(e_{x_j,x'_j})ex,x′​↦⨂j<m​T(exj​,xj′​​), where Am=Fin⁡(m)→AA^m=\operatorname{Fin}(m)\to AAm=Fin(m)→A and similarly for BBB. With U=BnU=B^nU=Bn, the diamond quantity is the real supremum of ∥(id⁡U⊗H)(X)∥1\|(\operatorname{id}_U\otimes H)(X)\|_1∥(idU​⊗H)(X)∥1​ over matrices indexed by U×UU\times UU×U with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1, using blockwise amplification and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. No channel assumption is imposed on TTT, and the definition itself supplies no bound of 111 on the error. Empty AAA or BBB are allowed whenever the required code data exist.

QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode

For finite types A,BA,BA,B with decidable equality and any complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), this structure consists of two natural numbers n,mn,mn,m, proofs that n>0n>0n>0 and m>0m>0m>0, a complex-linear encoder

E:Mat⁡Bn(C)⟶Mat⁡Am(C),E:\operatorname{Mat}_{B^n}(\mathbb C)\longrightarrow\operatorname{Mat}_{A^m}(\mathbb C),E:MatBn​(C)⟶MatAm​(C),

and a complex-linear decoder F:Mat⁡Bm(C)→Mat⁡Bn(C)F:\operatorname{Mat}_{B^m}(\mathbb C)\to\operatorname{Mat}_{B^n}(\mathbb C)F:MatBm​(C)→MatBn​(C), together with proofs that both are channels. Here Bn=Fin⁡(n)→BB^n=\operatorname{Fin}(n)\to BBn=Fin(n)→B, and likewise for the other function index types. Each channel proof requires a finite Kraus representation H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​, valid for every input matrix, with ∑iKi†Ki\sum_iK_i^\dagger K_i∑i​Ki†​Ki​ 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 TTT, no relation between nnn and mmm, and no accuracy requirement on the encoder and decoder. The underlying types A,BA,BA,B are not required to be nonempty.

QAlgorithms.Papers.Independent.Bridge50.P37.ParallelCode.rate

For finite types A,BA,BA,B with decidable equality, any complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), and a code KKK with positive natural numbers n,mn,mn,m, a channel encoder from matrices indexed by Fin⁡(n)→B\operatorname{Fin}(n)\to BFin(n)→B to matrices indexed by Fin⁡(m)→A\operatorname{Fin}(m)\to AFin(m)→A, and a channel decoder from matrices indexed by Fin⁡(m)→B\operatorname{Fin}(m)\to BFin(m)→B back to matrices indexed by Fin⁡(n)→B\operatorname{Fin}(n)\to BFin(n)→B, this defines

K.rate=nlog⁡2∣B∣m.K.\mathrm{rate}=\frac{n\log_2|B|}{m}.K.rate=mnlog2​∣B∣​.

The channel fields require finite Kraus representations H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​ with ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I for each map. The value of the rate uses only n,mn,mn,m and ∣B∣|B|∣B∣; it does not depend on the action of TTT, the encoder, or the decoder, and no accuracy condition is required. The denominator is nonzero because m>0m>0m>0. The type BBB may be empty or a singleton; the total real logarithm used in the definition gives log⁡20=0\log_2 0=0log2​0=0 and log⁡21=0\log_2 1=0log2​1=0, hence rate 000 in either case.

QAlgorithms.Papers.Independent.Bridge50.P37.ParallelStrongConverse

For finite types A,BA,BA,B with decidable equality, a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), and r∈Rr\in\mathbb Rr∈R, this predicate says that every sequence of codes KvK_vKv​, each having positive integers nv,mvn_v,m_vnv​,mv​, a channel encoder Ev:Mat⁡Bnv→Mat⁡AmvE_v:\operatorname{Mat}_{B^{n_v}}\to\operatorname{Mat}_{A^{m_v}}Ev​:MatBnv​​→MatAmv​​, and a channel decoder Fv:Mat⁡Bmv→Mat⁡BnvF_v:\operatorname{Mat}_{B^{m_v}}\to\operatorname{Mat}_{B^{n_v}}Fv​:MatBmv​​→MatBnv​​, satisfies the following implication: if mv→∞m_v\to\inftymv​→∞ and

r<lim inf⁡v→∞nvlog⁡2∣B∣mvr<\liminf_{v\to\infty}\frac{n_v\log_2|B|}{m_v}r<v→∞liminf​mv​nv​log2​∣B∣​

in the extended reals, then, putting ev=12∥id⁡Bnv−Fv∘T⊗mv∘Ev∥⋄e_v=\tfrac12\|\operatorname{id}_{B^{n_v}}-F_v\circ T^{\otimes m_v}\circ E_v\|_\diamondev​=21​∥idBnv​​−Fv​∘T⊗mv​∘Ev​∥⋄​, one has ev→1e_v\to1ev​→1, and there exist a real c>0c>0c>0 and v0∈Nv_0\in\mathbb Nv0​∈N such that 1−ev≤exp⁡(−cmv)1-e_v\le\exp(-cm_v)1−ev​≤exp(−cmv​) for every v≥v0v\ge v_0v≥v0​. Each channel must have a finite Kraus representation H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​ with ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I, valid for all XXX. The tensor map is the linear extension of ex,x′↦⨂j<mvT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m_v}T(e_{x_j,x'_j})ex,x′​↦⨂j<mv​​T(exj​,xj′​​). For U=BnvU=B^{n_v}U=Bnv​, the diamond quantity is the real supremum of ∥(id⁡U⊗H)(X)∥1\|(\operatorname{id}_U\otimes H)(X)\|_1∥(idU​⊗H)(X)∥1​ over matrices indexed by U×UU\times UU×U with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1, using blockwise amplification and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The constants c,v0c,v_0c,v0​ may depend on the code sequence. No channel assumption on TTT, nonemptiness assumption on A,BA,BA,B, or sign restriction on rrr is included; the condition is vacuous when no code sequence satisfies its hypotheses.

QAlgorithms.Papers.Independent.Bridge50.P37.ProductBlockPositive

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX indexed by A×BA\times BA×B, this predicate requires both that X=X†X=X^\daggerX=X† and that, for every u∈CAu\in\mathbb C^Au∈CA and v∈CBv\in\mathbb C^Bv∈CB,

0≤Re⁡ ⁣(∑a,b,c,duavb‾ X(a,b),(c,d)ucvd).0\le \operatorname{Re}\!\left( \sum_{a,b,c,d}\overline{u_a v_b}\,X_{(a,b),(c,d)}u_c v_d \right).0≤Re​a,b,c,d∑​ua​vb​​X(a,b),(c,d)​uc​vd​​.

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 A,BA,BA,B, with decidable equality, and a complex-linear map T:CA×A→CB×BT:\mathbb C^{A\times A}\to\mathbb C^{B\times B}T:CA×A→CB×B, this predicate requires the following for every natural number r>0r>0r>0 and every positive semidefinite matrix XXX on {0,…,r−1}×A\{0,\ldots,r-1\}\times A{0,…,r−1}×A: the matrix YYY on {0,…,r−1}×B\{0,\ldots,r-1\}\times B{0,…,r−1}×B, defined by

Y(s,b),(t,b′)=[T ⁣((X(s,a),(t,a′))a,a′∈A)]b,b′,Y_{(s,b),(t,b')} = \left[T\!\left((X_{(s,a),(t,a')})_{a,a'\in A}\right)\right]_{b,b'},Y(s,b),(t,b′)​=[T((X(s,a),(t,a′)​)a,a′∈A​)]b,b′​,

has a representation

Y=∑j=0q−1wj Rj⊗SjY=\sum_{j=0}^{q-1}w_j\,R_j\otimes S_jY=j=0∑q−1​wj​Rj​⊗Sj​

for some natural number qqq, real weights wj≥0w_j\ge0wj​≥0, positive semidefinite matrices RjR_jRj​ on {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} with trace 111, and positive semidefinite matrices SjS_jSj​ on BBB with trace 111. The weights need not sum to 111, and XXX need not have trace 111. The empty sum q=0q=0q=0 is allowed and represents zero; r=0r=0r=0 is excluded.

QAlgorithms.Papers.Independent.Bridge50.P37.SeparableMap

For finite index types A,B,C,DA,B,C,DA,B,C,D, with decidable equality as needed, and a complex-linear map SSS from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, this predicate says that there exist a natural number mmm, matrices Fi∈CC×AF_i\in\mathbb C^{C\times A}Fi​∈CC×A, and matrices Gi∈CD×BG_i\in\mathbb C^{D\times B}Gi​∈CD×B, for 0≤i<m0\le i<m0≤i<m, such that for every complex matrix XXX on A×BA\times BA×B,

S(X)=∑i=0m−1(Fi⊗Gi)X(Fi⊗Gi)†,(Fi⊗Gi)(c,d),(a,b)=(Fi)c,a(Gi)d,b.S(X)=\sum_{i=0}^{m-1}(F_i\otimes G_i)X(F_i\otimes G_i)^\dagger, \qquad (F_i\otimes G_i)_{(c,d),(a,b)}=(F_i)_{c,a}(G_i)_{d,b}.S(X)=i=0∑m−1​(Fi​⊗Gi​)X(Fi​⊗Gi​)†,(Fi​⊗Gi​)(c,d),(a,b)​=(Fi​)c,a​(Gi​)d,b​.

There is no normalization or trace-preservation requirement on these matrices. The value m=0m=0m=0 is allowed and gives the zero map.

QAlgorithms.Papers.Independent.Bridge50.P37.SequentialLOCC

This defines the least relation on natural numbers a,b,c,da,b,c,da,b,c,d and complex-linear maps L:Cab×ab→Ccd×cdL:\mathbb C^{ab\times ab}\to\mathbb C^{cd\times cd}L:Cab×ab→Ccd×cd generated by three rules. First, if E:Ca×a→Cc×cE:\mathbb C^{a\times a}\to\mathbb C^{c\times c}E:Ca×a→Cc×c and F:Cb×b→Cd×dF:\mathbb C^{b\times b}\to\mathbb C^{d\times d}F:Cb×b→Cd×d are channels, then their tensor product satisfies the relation; here a channel means a map X↦∑sAsXAs†X\mapsto\sum_s A_sXA_s^\daggerX↦∑s​As​XAs†​ for some finite family with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and the tensor product is the linear extension of exx′⊗eyy′↦E(exx′)⊗F(eyy′)e_{xx'}\otimes e_{yy'}\mapsto E(e_{xx'})\otimes F(e_{yy'})exx′​⊗eyy′​↦E(exx′​)⊗F(eyy′​), using standard matrix units and flattened pair indices. Second, for any natural numbers i,ji,ji,j and families Es∈Cc×aE_s\in\mathbb C^{c\times a}Es​∈Cc×a, Ft∈Cd×bF_t\in\mathbb C^{d\times b}Ft​∈Cd×b satisfying

∑s<iEs†Es=Ia,∑t<jFt†Ft=Ib,\sum_{s<i}E_s^\dagger E_s=I_a,\qquad \sum_{t<j}F_t^\dagger F_t=I_b,s<i∑​Es†​Es​=Ia​,t<j∑​Ft†​Ft​=Ib​,

the relation holds from dimensions (a,b)(a,b)(a,b) to (cj,di)(cj,di)(cj,di) for X↦∑s,tKs,tXKs,t†X\mapsto\sum_{s,t}K_{s,t}XK_{s,t}^\daggerX↦∑s,t​Ks,t​XKs,t†​, where

Ks,t((α,t′),(β,s′);(x,y))=1t′=t1s′=sEs(α,x)Ft(β,y).K_{s,t}\bigl((\alpha,t'),(\beta,s');(x,y)\bigr) =\mathbf1_{t'=t}\mathbf1_{s'=s}E_s(\alpha,x)F_t(\beta,y).Ks,t​((α,t′),(β,s′);(x,y))=1t′=t​1s′=s​Es​(α,x)Ft​(β,y).

Third, whenever the relation holds for E:(a,b)→(c,d)E:(a,b)\to(c,d)E:(a,b)→(c,d) and F:(c,d)→(e,f)F:(c,d)\to(e,f)F:(c,d)→(e,f), it holds for F∘E:(a,b)→(e,f)F\circ E:(a,b)\to(e,f)F∘E:(a,b)→(e,f). 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 A,BA,BA,B, with decidable equality on AAA, and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this predicate means that for every positive natural number nnn, PPP preserves positive semidefiniteness and so does the map

(TP,n(X))b,b′=∑a,a′∈AnXa,a′∏k=0n−1P(Eakak′)bkbk′,\bigl(\mathcal T_{P,n}(X)\bigr)_{b,b'} =\sum_{a,a'\in A^n}X_{a,a'}\prod_{k=0}^{n-1}P(E_{a_k a'_k})_{b_k b'_k},(TP,n​(X))b,b′​=a,a′∈An∑​Xa,a′​k=0∏n−1​P(Eak​ak′​​)bk​bk′​​,

where EuvE_{uv}Euv​ denotes a matrix unit. There is no condition at n=0n=0n=0, and no requirement that PPP preserve trace.

QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.endChannel

For natural numbers a,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, a Boolean flag ppt\mathrm{ppt}ppt, and a code KKK, this defines a complex-linear map on N×NN\times NN×N matrices, where N=K.N>0N=K.N>0N=K.N>0. The code also contains a positive count mmm and a map C=K.channelC=K.\mathrm{channel}C=K.channel admitting a finite protocol derivation from dimensions (N,1)(N,1)(N,1) to (1,N)(1,N)(1,N): counts add under composition, calls apply TTT 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 Es,FtE_s,F_tEs​,Ft​ act jointly and place the label ttt in the first output factor and sss in the second. A channel means a finite Kraus map with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and complete positivity means positivity under every finite identity amplification. Writing exye_{xy}exy​ for a standard N×NN\times NN×N matrix unit and using flattened pair indices, the defined map is

(K.endChannel(X))o,p=∑x,y<NXx,y C ⁣(e(x,0),(y,0))(0,o),(0,p).\bigl(K.\mathrm{endChannel}(X)\bigr)_{o,p} = \sum_{x,y<N}X_{x,y}\, C\!\left(e_{(x,0),(y,0)}\right)_{(0,o),(0,p)}.(K.endChannel(X))o,p​=x,y<N∑​Xx,y​C(e(x,0),(y,0)​)(0,o),(0,p)​.

It therefore inserts and removes the indicated one-dimensional factors. No channel hypothesis on TTT is added.

QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.error

For natural numbers a,ba,ba,b, an arbitrary complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, a Boolean flag ppt\mathrm{ppt}ppt, and a code KKK, this defines

K.error=12sup⁡∥X∥1≤1∥(idN⊗(id−CK))(X)∥1,K.\mathrm{error} =\frac12\sup_{\|X\|_1\le1} \left\|(\mathrm{id}_N\otimes(\mathrm{id}-C_K))(X)\right\|_1,K.error=21​∥X∥1​≤1sup​∥(idN​⊗(id−CK​))(X)∥1​,

where N=K.N>0N=K.N>0N=K.N>0, XXX ranges over all complex matrices indexed by {0,…,N−1}2\{0,\ldots,N-1\}^2{0,…,N−1}2, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​. The amplification applies id−CK\mathrm{id}-C_Kid−CK​ separately to each N×NN\times NN×N block; XXX need not be positive or have trace one. The map CKC_KCK​ is obtained from K.channelK.\mathrm{channel}K.channel by identifying its input (x,0)(x,0)(x,0) with xxx and output (0,o)(0,o)(0,o) with ooo. The code contains a positive count mmm and a finite protocol derivation from dimensions (N,1)(N,1)(N,1) to (1,N)(1,N)(1,N), generated by composition with additive counts, one-count applications of TTT 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 Es,FtE_s,F_tEs​,Ft​, placing their opposite labels t,st,st,s 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,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, and a Boolean flag ppt\mathrm{ppt}ppt, this structure consists of positive natural numbers N,mN,mN,m, a complex-linear map CCC from matrices of dimension N⋅1N\cdot1N⋅1 to matrices of dimension 1⋅N1\cdot N1⋅N, and a finite protocol derivation from party dimensions (N,1)(N,1)(N,1) to (1,N)(1,N)(1,N) with recorded count exactly mmm. Such derivations are generated under composition, adding counts, by zero-count assistance maps and one-count calls to TTT. A call requires positive auxiliary dimensions u,vu,vu,v and acts from (au,v)(au,v)(au,v) to (u,bv)(u,bv)(u,bv) by

X⟼Y,Y(α,(β,γ)),(α′,(β′,γ′))=∑r,s<aX((r,α),γ),((s,α′),γ′) T(ers)β,β′.X\longmapsto Y,\qquad Y_{(\alpha,(\beta,\gamma)),(\alpha',(\beta',\gamma'))} =\sum_{r,s<a}X_{((r,\alpha),\gamma),((s,\alpha'),\gamma')}\,T(e_{rs})_{\beta,\beta'}.X⟼Y,Y(α,(β,γ)),(α′,(β′,γ′))​=r,s<a∑​X((r,α),γ),((s,α′),γ′)​T(ers​)β,β′​.

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 ∑sAs( ⋅ )As†\sum_sA_s(\,\cdot\,)A_s^\dagger∑s​As​(⋅)As†​ with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and a paired round uses normalized families Es,FtE_s,F_tEs​,Ft​ with Kraus entries 1t′=t1s′=sEs(α,r)Ft(β,s0)\mathbf1_{t'=t}\mathbf1_{s'=s}E_s(\alpha,r)F_t(\beta,s_0)1t′=t​1s′=s​Es​(α,r)Ft​(β,s0​) at output ((α,t′),(β,s′))((\alpha,t'),(\beta,s'))((α,t′),(β,s′)) and input (r,s0)(r,s_0)(r,s0​). Complete positivity requires positivity of every finite identity amplification. No channel hypothesis is imposed on TTT; the field named “channel” is required to satisfy the stated protocol relation.

QAlgorithms.Papers.Independent.Bridge50.P37.TwoPartyCode.rate

For arbitrary natural numbers a,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, a Boolean flag ppt\mathrm{ppt}ppt, and a code KKK, this defines the real number

K.rate=log⁡2Nm,N=K.N>0,m=K.m>0.K.\mathrm{rate}=\frac{\log_2 N}{m}, \qquad N=K.N>0,\quad m=K.m>0.K.rate=mlog2​N​,N=K.N>0,m=K.m>0.

The code includes a complex-linear map from party dimensions (N,1)(N,1)(N,1) to (1,N)(1,N)(1,N) with a finite protocol derivation of count mmm. The protocol is generated by composition, adding counts, from one-count calls applying TTT 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 Es,FtE_s,F_tEs​,Ft​ place the labels t,st,st,s in the opposite output factors. Channels have finite Kraus representations with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and complete positivity requires positivity of every finite identity amplification. The definition permits N=1N=1N=1, which gives rate zero; its denominator is positive by the code’s required field.

QAlgorithms.Papers.Independent.Bridge50.P37.basisTransposeLinearMap

For every index type AAA equipped with a finite enumeration, this defines the complex-linear map on A×AA\times AA×A matrices that sends XXX to its transpose:

(TA(X))ij=Xji.\bigl(\mathsf T_A(X)\bigr)_{ij}=X_{ji}.(TA​(X))ij​=Xji​.

The entries are not complex-conjugated. The definition also applies when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P37.bipartiteHaarTwirl

For every natural number ddd, every Boolean flag, and every complex matrix XXX indexed by {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2, define a matrix entrywise by

∫U(d)(U⊗V) X (U⊗V)† dμ(U),\int_{\mathrm U(d)}(U\otimes V)\,X\,(U\otimes V)^\dagger\,d\mu(U),∫U(d)​(U⊗V)X(U⊗V)†dμ(U),

where μ\muμ is Haar measure normalized to have total mass 111, and V=U‾V=\overline UV=U if the flag is true, while V=UV=UV=U if it is false. Here U‾\overline UU denotes entrywise complex conjugation. No Hermiticity, positivity, or trace assumption is imposed on XXX. The case d=0d=0d=0 is included and gives the matrix with empty index set.

QAlgorithms.Papers.Independent.Bridge50.P37.candidateMap

For every natural number ddd, including 000, and every real ppp, define a complex-linear map on matrices indexed by {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 as follows. Let WWW be the complex-linear map on d×dd\times dd×d matrices given by

W(X)=(d−p)tr⁡(X)I−(1−dp)XTd2−1,W(X)=\frac{(d-p)\operatorname{tr}(X)I-(1-dp)X^{\mathsf T}}{d^2-1},W(X)=d2−1(d−p)tr(X)I−(1−dp)XT​,

and let EijE_{ij}Eij​ denote the matrix unit. The defined map sends XXX to

∑i,j,a,b=0d−1X(i,j),(a,b) W(Eia)⊗W(Ejb)T.\sum_{i,j,a,b=0}^{d-1}X_{(i,j),(a,b)}\,W(E_{ia})\otimes W(E_{jb})^{\mathsf T}.i,j,a,b=0∑d−1​X(i,j),(a,b)​W(Eia​)⊗W(Ejb​)T.

The transpose is the ordinary transpose, without complex conjugation. There is no restriction on ppp and no positivity or channel assumption. Division by zero is defined to give zero, so for d=1d=1d=1 this is the zero map; for d=0d=0d=0 all matrix indices and sums are empty.

QAlgorithms.Papers.Independent.Bridge50.P37.capacityBound

For finite types A,B,CA,B,CA,B,C, each equipped with decidable equality and allowed to be empty, and complex-linear maps T:MA(C)→MB(C)T:M_A(\mathbb C)\to M_B(\mathbb C)T:MA​(C)→MB​(C), P:MC(C)→MB(C)P:M_C(\mathbb C)\to M_B(\mathbb C)P:MC​(C)→MB​(C), and R:MB(C)→MC(C)R:M_B(\mathbb C)\to M_C(\mathbb C)R:MB​(C)→MC​(C), this definition assigns the real number

log⁡2 ⁣(D(R∘T) ∥P∗(IB)∥op) log⁡2∣B∣log⁡2D(P∗).\frac{ \log_2\!\left(D(R\circ T)\,\|P^*(I_B)\|_{\mathrm{op}}\right)\, \log_2|B| }{ \log_2 D(P^*) }.log2​D(P∗)log2​(D(R∘T)∥P∗(IB​)∥op​)log2​∣B∣​.

Here MJ(C)M_J(\mathbb C)MJ​(C) denotes matrices indexed by JJJ, IJI_JIJ​ is the identity matrix, ∥⋅∥op\|\cdot\|_{\mathrm{op}}∥⋅∥op​ is the operator norm for Euclidean vector norms, and the map denoted P∗P^*P∗ is defined explicitly by

(P∗Y)cc′=∑b,b′∈BP(Ecc′)bb′‾ Ybb′,(P^*Y)_{cc'}= \sum_{b,b'\in B}\overline{P(E_{cc'})_{bb'}}\,Y_{bb'},(P∗Y)cc′​=b,b′∈B∑​P(Ecc′​)bb′​​Ybb′​,

where Ecc′E_{cc'}Ecc′​ is a matrix unit. For any linear map F:MJ(C)→MK(C)F:M_J(\mathbb C)\to M_K(\mathbb C)F:MJ​(C)→MK​(C),

D(F)=sup⁡X∈MJ×J(C)∥X∥1≤1∥(id⁡J⊗F)(X)∥1,∥X∥1=Re⁡tr⁡X†X,D(F)=\sup_{\substack{X\in M_{J\times J}(\mathbb C)\\\|X\|_1\le1}} \|(\operatorname{id}_J\otimes F)(X)\|_1, \qquad \|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X},D(F)=X∈MJ×J​(C)∥X∥1​≤1​sup​∥(idJ​⊗F)(X)∥1​,∥X∥1​=RetrX†X​,

with the amplification applying FFF to each block in the ancillary JJJ indices. There are no positivity or channel hypotheses on the three maps. All operations are total real operations: log⁡20=0\log_2 0=0log2​0=0 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 A,B,CA,B,CA,B,C, each equipped with decidable equality, with BBB nonempty but A,CA,CA,C allowed to be empty, and complex-linear maps T:MA(C)→MB(C)T:M_A(\mathbb C)\to M_B(\mathbb C)T:MA​(C)→MB​(C), P:MC(C)→MB(C)P:M_C(\mathbb C)\to M_B(\mathbb C)P:MC​(C)→MB​(C), and R:MB(C)→MC(C)R:M_B(\mathbb C)\to M_C(\mathbb C)R:MB​(C)→MC​(C), this definition assigns

log⁡2 ⁣(D(R∘T) ∥P∗(IB)∥op) log⁡2∣B∣log⁡2∥(P∗⊗id⁡B)(ΩB)∥1.\frac{ \log_2\!\left(D(R\circ T)\,\|P^*(I_B)\|_{\mathrm{op}}\right)\, \log_2|B| }{ \log_2\left\|(P^*\otimes\operatorname{id}_B)(\Omega_B)\right\|_1 }.log2​∥(P∗⊗idB​)(ΩB​)∥1​log2​(D(R∘T)∥P∗(IB​)∥op​)log2​∣B∣​.

Here P∗:MB(C)→MC(C)P^*:M_B(\mathbb C)\to M_C(\mathbb C)P∗:MB​(C)→MC​(C) is given by (P∗Y)cc′=∑b,b′P(Ecc′)bb′‾Ybb′(P^*Y)_{cc'}=\sum_{b,b'}\overline{P(E_{cc'})_{bb'}}Y_{bb'}(P∗Y)cc′​=∑b,b′​P(Ecc′​)bb′​​Ybb′​, EijE_{ij}Eij​ denotes a matrix unit, and ΩB=∣ωB⟩⟨ωB∣\Omega_B=|\omega_B\rangle\langle\omega_B|ΩB​=∣ωB​⟩⟨ωB​∣, where (ωB)bb′=δbb′/∣B∣(\omega_B)_{bb'}=\delta_{bb'}/\sqrt{|B|}(ωB​)bb′​=δbb′​/∣B∣​. The tensor-map expression in the denominator means explicitly

(P∗⊗id⁡B)(ΩB)=∑b,b′,c,c′∈B(ΩB)(b,c),(b′,c′) P∗(Ebb′)⊗Ecc′.(P^*\otimes\operatorname{id}_B)(\Omega_B) =\sum_{b,b',c,c'\in B} (\Omega_B)_{(b,c),(b',c')}\,P^*(E_{bb'})\otimes E_{cc'}.(P∗⊗idB​)(ΩB​)=b,b′,c,c′∈B∑​(ΩB​)(b,c),(b′,c′)​P∗(Ebb′​)⊗Ecc′​.

The norm ∥⋅∥op\|\cdot\|_{\mathrm{op}}∥⋅∥op​ is the Euclidean operator norm, ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​, and

D(F)=sup⁡X∈MJ×J(C)∥X∥1≤1∥(id⁡J⊗F)(X)∥1D(F)=\sup_{\substack{X\in M_{J\times J}(\mathbb C)\\\|X\|_1\le1}} \|(\operatorname{id}_J\otimes F)(X)\|_1D(F)=X∈MJ×J​(C)∥X∥1​≤1​sup​∥(idJ​⊗F)(X)∥1​

for F:MJ(C)→MK(C)F:M_J(\mathbb C)\to M_K(\mathbb C)F:MJ​(C)→MK​(C), with the amplification acting on each ancillary block. No positivity or channel assumptions are imposed. Real logarithms and division retain their total definitions, including log⁡20=0\log_2 0=0log2​0=0 and division by zero equal to zero; in particular, no nonzero-denominator hypothesis is present.

QAlgorithms.Papers.Independent.Bridge50.P37.cpCodingErrors

For finite types A,BA,BA,B with decidable equality, a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), and any k∈Nk\in\mathbb Nk∈N, this defines the set of real numbers

{∥id⁡A−∑i=0m−1Fi∘P⊗k∘Ei∥⋄:m>0, Ei:Mat⁡A→Mat⁡Ak, Fi:Mat⁡Bk→Mat⁡A, Ei,Fi completely positive}.\left\{\left\|\operatorname{id}_A-\sum_{i=0}^{m-1}F_i\circ P^{\otimes k}\circ E_i\right\|_\diamond: m>0,\ E_i:\operatorname{Mat}_A\to\operatorname{Mat}_{A^k},\ F_i:\operatorname{Mat}_{B^k}\to\operatorname{Mat}_A,\ E_i,F_i\text{ completely positive}\right\}.{​idA​−i=0∑m−1​Fi​∘P⊗k∘Ei​​⋄​:m>0, Ei​:MatA​→MatAk​, Fi​:MatBk​→MatA​, Ei​,Fi​ completely positive}.

Here all maps are complex-linear, Ak={0,…,k−1}→AA^k=\{0,\ldots,k-1\}\to AAk={0,…,k−1}→A, and P⊗kP^{\otimes k}P⊗k is the linear extension of the matrix-unit rule ex,x′↦⨂j=0k−1P(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j=0}^{k-1}P(e_{x_j,x'_j})ex,x′​↦⨂j=0k−1​P(exj​,xj′​​). Complete positivity means that, for every ancillary dimension h∈Nh\in\mathbb Nh∈N, including h=0h=0h=0, applying the map to each matrix block of every positive semidefinite matrix indexed by Fin⁡(h)\operatorname{Fin}(h)Fin(h) times its input index type gives a positive semidefinite matrix. For a map HHH with input index type UUU, the quantity used here is

∥H∥⋄=sup⁡{∥(id⁡U⊗H)(X)∥1: X∈Mat⁡U×U, ∥X∥1≤1},∥X∥1=Re⁡tr⁡X†X,\|H\|_\diamond=\sup\{\|(\operatorname{id}_U\otimes H)(X)\|_1:\ X\in\operatorname{Mat}_{U\times U},\ \|X\|_1\le1\}, \qquad \|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X},∥H∥⋄​=sup{∥(idU​⊗H)(X)∥1​: X∈MatU×U​, ∥X∥1​≤1},∥X∥1​=RetrX†X​,

where the amplification applies HHH separately to each block indexed by the first UUU-coordinate. Neither PPP nor the Ei,FiE_i,F_iEi​,Fi​ are required to preserve trace, and no normalization condition is imposed on their sum. Empty AAA or BBB and k=0k=0k=0 are allowed; at k=0k=0k=0, the function index types are singletons and the tensor matrix-unit rule uses an empty product equal to 111.

QAlgorithms.Papers.Independent.Bridge50.P37.diamondAssistedCapacity

For arbitrary natural numbers a,ba,ba,b, an arbitrary complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, and a Boolean flag ppt\mathrm{ppt}ppt, this defines the real supremum of the nonnegative real numbers rrr for which there exists a sequence of codes with positive dimensions NvN_vNv​, positive counts mvm_vmv​, errors tending to zero, and extended-real limsup lim sup⁡v(log⁡2Nv/mv)=r\limsup_v(\log_2N_v/m_v)=rlimsupv​(log2​Nv​/mv​)=r. Each code is a finite protocol from party dimensions (Nv,1)(N_v,1)(Nv​,1) to (1,Nv)(1,N_v)(1,Nv​), generated under composition with additive counts by one-count applications of TTT 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 Es,FtE_s,F_tEs​,Ft​, placing the labels t,st,st,s in the opposite output factors. Channels have representations ∑sAs( ⋅ )As†\sum_sA_s(\,\cdot\,)A_s^\dagger∑s​As​(⋅)As†​ with ∑sAs†As=I\sum_sA_s^\dagger A_s=I∑s​As†​As​=I, and complete positivity means positivity of every finite identity amplification. After removing the one-dimensional endpoint factors, a code’s map CvC_vCv​ has error

12sup⁡∥X∥1≤1∥(idNv⊗(id−Cv))(X)∥1,\frac12\sup_{\|X\|_1\le1} \left\|(\mathrm{id}_{N_v}\otimes(\mathrm{id}-C_v))(X)\right\|_1,21​∥X∥1​≤1sup​∥(idNv​​⊗(id−Cv​))(X)∥1​,

over all complex Nv2×Nv2N_v^2\times N_v^2Nv2​×Nv2​ matrices, with ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​. 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 A,BA,BA,B with decidable equality and a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), this defines the real supremum of {0}\{0\}{0} together with all r≥0r\ge0r≥0 for which there exist positive-integer sequences nv,mvn_v,m_vnv​,mv​ satisfying

inf⁡E,F channels12∥id⁡Lv−F∘T⊗mv∘E∥⋄⟶0,lim sup⁡v→∞nvmv=r,Lv=Fin⁡(nv)→Fin⁡(2),\inf_{E,F\text{ channels}} \frac12\left\|\operatorname{id}_{L_v}-F\circ T^{\otimes m_v}\circ E\right\|_\diamond\longrightarrow0, \qquad \limsup_{v\to\infty}\frac{n_v}{m_v}=r, \quad L_v=\operatorname{Fin}(n_v)\to\operatorname{Fin}(2),E,F channelsinf​21​​idLv​​−F∘T⊗mv​∘E​⋄​⟶0,v→∞limsup​mv​nv​​=r,Lv​=Fin(nv​)→Fin(2),

where E:Mat⁡Lv→Mat⁡AmvE:\operatorname{Mat}_{L_v}\to\operatorname{Mat}_{A^{m_v}}E:MatLv​​→MatAmv​​ and F:Mat⁡Bmv→Mat⁡LvF:\operatorname{Mat}_{B^{m_v}}\to\operatorname{Mat}_{L_v}F:MatBmv​​→MatLv​​, and the limsup is in the extended reals. A channel is a map with a finite Kraus representation H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​, valid for every XXX, satisfying ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I. The map T⊗mT^{\otimes m}T⊗m is the linear extension of ex,x′↦⨂j<mT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m}T(e_{x_j,x'_j})ex,x′​↦⨂j<m​T(exj​,xj′​​). For a map HHH with input index type LLL, ∥H∥⋄\|H\|_\diamond∥H∥⋄​ is the real supremum of ∥(id⁡L⊗H)(X)∥1\|(\operatorname{id}_L\otimes H)(X)\|_1∥(idL​⊗H)(X)∥1​ for matrices indexed by L×LL\times LL×L with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1, using blockwise amplification and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. Neither sequence is required to diverge. Empty A,BA,BA,B are allowed, and empty error sets have real infimum 000. The outer supremum is a real supremum, with value 000 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 A,BA,BA,B with decidable equality, assuming AAA is nonempty, and any complex-linear map PPP from matrices indexed by AAA to matrices indexed by BBB, define JJJ, indexed by A×BA\times BA×B, by

J(i,a),(j,b)=P(Eij)ab∣A∣.J_{(i,a),(j,b)}=\frac{P(E_{ij})_{ab}}{|A|}.J(i,a),(j,b)​=∣A∣P(Eij​)ab​​.

The defined real number is

Re⁡tr⁡ ⁣(J†J)−Re⁡tr⁡(J)2,\frac{\operatorname{Re}\operatorname{tr}\!\left(\sqrt{J^\dagger J}\right) -\operatorname{Re}\operatorname{tr}(J)}{2},2Retr(J†J​)−Retr(J)​,

where the square root is obtained by continuous functional calculus. No positivity or trace-preservation assumption is imposed on PPP. The output type BBB may be empty, in which case this number is zero.

QAlgorithms.Papers.Independent.Bridge50.P37.flatProduct

For arbitrary natural numbers a,b,c,da,b,c,da,b,c,d and complex-linear maps E:Mat⁡Fin⁡(a)(C)→Mat⁡Fin⁡(c)(C)E:\operatorname{Mat}_{\operatorname{Fin}(a)}(\mathbb C)\to\operatorname{Mat}_{\operatorname{Fin}(c)}(\mathbb C)E:MatFin(a)​(C)→MatFin(c)​(C) and F:Mat⁡Fin⁡(b)(C)→Mat⁡Fin⁡(d)(C)F:\operatorname{Mat}_{\operatorname{Fin}(b)}(\mathbb C)\to\operatorname{Mat}_{\operatorname{Fin}(d)}(\mathbb C)F:MatFin(b)​(C)→MatFin(d)​(C), this defines a complex-linear map from matrices of size ababab to matrices of size cdcdcd. Using the canonical finite-product bijections to write output indices as o=(o1,o2)o=(o_1,o_2)o=(o1​,o2​), p=(p1,p2)p=(p_1,p_2)p=(p1​,p2​) and input indices as x=(x1,x2)x=(x_1,x_2)x=(x1​,x2​), y=(y1,y2)y=(y_1,y_2)y=(y1​,y2​), its value on any input matrix XXX is

[flatProduct⁡(E,F)(X)]o,p=∑x∈Fin⁡(ab)∑y∈Fin⁡(ab)Xx,y [E(ex1,y1)]o1,p1 [F(ex2,y2)]o2,p2,[\operatorname{flatProduct}(E,F)(X)]_{o,p} =\sum_{x\in\operatorname{Fin}(ab)}\sum_{y\in\operatorname{Fin}(ab)} X_{x,y}\, [E(e_{x_1,y_1})]_{o_1,p_1}\, [F(e_{x_2,y_2})]_{o_2,p_2},[flatProduct(E,F)(X)]o,p​=x∈Fin(ab)∑​y∈Fin(ab)∑​Xx,y​[E(ex1​,y1​​)]o1​,p1​​[F(ex2​,y2​​)]o2​,p2​​,

where eu,ve_{u,v}eu,v​ denotes the matrix with entry 111 at (u,v)(u,v)(u,v) and 000 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 a,ba,ba,b, including zero, this defines a complex-linear map on ab×abab\times abab×ab 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,

(flatTranspose⁡a,b(X))(r,s),(r′,s′)=X(r,s′),(r′,s).\bigl(\operatorname{flatTranspose}_{a,b}(X)\bigr)_{(r,s),(r',s')} =X_{(r,s'),(r',s)}.(flatTransposea,b​(X))(r,s),(r′,s′)​=X(r,s′),(r′,s)​.

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 ddd, including 000, and every real ppp, define the matrix on Cd⊗Cd\mathbb C^d\otimes\mathbb C^dCd⊗Cd by

d−pd(d2−1)I+dp−1d(d2−1)F,F(a,b),(i,j)={1,a=j and b=i,0,otherwise.\frac{d-p}{d(d^2-1)}I+\frac{dp-1}{d(d^2-1)}F, \qquad F_{(a,b),(i,j)}= \begin{cases} 1,&a=j\text{ and }b=i,\\ 0,&\text{otherwise}. \end{cases}d(d2−1)d−p​I+d(d2−1)dp−1​F,F(a,b),(i,j)​={1,0,​a=j and b=i,otherwise.​

Thus FFF exchanges the two factors. No bounds on ppp, positivity, or trace condition are imposed. Fractions with zero denominator equal zero, so at d=0d=0d=0 or d=1d=1d=1 the defined matrix is zero.

QAlgorithms.Papers.Independent.Bridge50.P37.hsAdjoint

For an index type AAA with decidable equality, a finite index type BBB, and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this defines the complex-linear map in the reverse direction given by

(P♯(Y))ab=∑i,j∈BP(Eab)ij‾ Yij,a,b∈A,\bigl(P^\sharp(Y)\bigr)_{ab} =\sum_{i,j\in B}\overline{P(E_{ab})_{ij}}\,Y_{ij}, \qquad a,b\in A,(P♯(Y))ab​=i,j∈B∑​P(Eab​)ij​​Yij​,a,b∈A,

where EabE_{ab}Eab​ has entry 111 at (a,b)(a,b)(a,b) and zero elsewhere. If BBB is empty, the sums are zero.

QAlgorithms.Papers.Independent.Bridge50.P37.inducedInfinity

For finite index types A,BA,BA,B with decidable equality and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this defines the real number

sup⁡{∥P(X)∥op:X∈Mat⁡A(C), ∥X∥op≤1},\sup\left\{\|P(X)\|_{\mathrm{op}}: X\in\operatorname{Mat}_A(\mathbb C),\ \|X\|_{\mathrm{op}}\le1\right\},sup{∥P(X)∥op​:X∈MatA​(C), ∥X∥op​≤1},

where ∥⋅∥op\|\cdot\|_{\mathrm{op}}∥⋅∥op​ is the operator norm for the Euclidean norms on the corresponding complex coordinate spaces. All complex matrices XXX are included, without positivity or normalization restrictions, and empty index types are allowed.

QAlgorithms.Papers.Independent.Bridge50.P37.inducedTrace

For finite index types A,BA,BA,B with decidable equality and a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), this defines the real number

sup⁡{∥P(X)∥1:X∈Mat⁡A(C), ∥X∥1≤1},∥Z∥1=Re⁡tr⁡ ⁣(Z†Z),\sup\left\{\|P(X)\|_1:X\in\operatorname{Mat}_A(\mathbb C),\ \|X\|_1\le1\right\}, \qquad \|Z\|_1=\operatorname{Re}\operatorname{tr}\!\left(\sqrt{Z^\dagger Z}\right),sup{∥P(X)∥1​:X∈MatA​(C), ∥X∥1​≤1},∥Z∥1​=Retr(Z†Z​),

where the square root is defined by continuous functional calculus. The matrices XXX 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 ddd and every real ppp, let ϕ∈Cd⊗Cd\phi\in\mathbb C^d\otimes\mathbb C^dϕ∈Cd⊗Cd have coordinates ϕ(i,j)=1/d\phi_{(i,j)}=1/\sqrt dϕ(i,j)​=1/d​ when i=ji=ji=j and 000 otherwise, and put P=ϕϕ†P=\phi\phi^\daggerP=ϕϕ†. The defined matrix is

pP+1−pd2−1(I−P).pP+\frac{1-p}{d^2-1}(I-P).pP+d2−11−p​(I−P).

There is no restriction on ppp and no asserted density-matrix condition. The case d=1d=1d=1 is included: division by zero gives zero, and the resulting matrix is pIpIpI.

QAlgorithms.Papers.Independent.Bridge50.P37.matrixUnitExtension

For a finite index type AAA, an index type BBB, and arbitrary complex coefficients cabijc_{abij}cabij​ indexed by a,b∈Ba,b\in Ba,b∈B and i,j∈Ai,j\in Ai,j∈A, this defines the complex-linear map from A×AA\times AA×A matrices to B×BB\times BB×B matrices given by

(Φc(X))ab=∑i∈A∑j∈AcabijXij.\bigl(\Phi_c(X)\bigr)_{ab}=\sum_{i\in A}\sum_{j\in A}c_{abij}X_{ij}.(Φc​(X))ab​=i∈A∑​j∈A∑​cabij​Xij​.

If AAA is empty, these sums are zero, so the map is zero. No positivity or normalization condition is imposed on ccc.

QAlgorithms.Papers.Independent.Bridge50.P37.messageKraus

For arbitrary natural numbers a,b,c,d,i,ja,b,c,d,i,ja,b,c,d,i,j, families of complex matrices EsE_sEs​ of size c×ac\times ac×a, indexed by s∈Fin⁡(i)s\in\operatorname{Fin}(i)s∈Fin(i), and FtF_tFt​ of size d×bd\times bd×b, indexed by t∈Fin⁡(j)t\in\operatorname{Fin}(j)t∈Fin(j), and chosen indices s∈Fin⁡(i)s\in\operatorname{Fin}(i)s∈Fin(i), t∈Fin⁡(j)t\in\operatorname{Fin}(j)t∈Fin(j), this defines a complex matrix with (cj)(di)(cj)(di)(cj)(di) rows and ababab columns. Decode a row index through the canonical finite-product bijections as ((u,t′),(v,s′))((u,t'),(v,s'))((u,t′),(v,s′)), with u∈Fin⁡(c)u\in\operatorname{Fin}(c)u∈Fin(c), t′∈Fin⁡(j)t'\in\operatorname{Fin}(j)t′∈Fin(j), v∈Fin⁡(d)v\in\operatorname{Fin}(d)v∈Fin(d), s′∈Fin⁡(i)s'\in\operatorname{Fin}(i)s′∈Fin(i), and decode a column as (x,y)∈Fin⁡(a)×Fin⁡(b)(x,y)\in\operatorname{Fin}(a)\times\operatorname{Fin}(b)(x,y)∈Fin(a)×Fin(b). The entry is

[messageKraus⁡(E,F,s,t)]((u,t′),(v,s′)),(x,y)={(Es)u,x(Ft)v,y,t′=t and s′=s,0,otherwise.[\operatorname{messageKraus}(E,F,s,t)]_{((u,t'),(v,s')),(x,y)} = \begin{cases} (E_s)_{u,x}(F_t)_{v,y},&t'=t\text{ and }s'=s,\\ 0,&\text{otherwise}. \end{cases}[messageKraus(E,F,s,t)]((u,t′),(v,s′)),(x,y)​={(Es​)u,x​(Ft​)v,y​,0,​t′=t and s′=s,otherwise.​

No Kraus-completeness, positivity, or normalization assumptions are imposed on either family. The chosen indices can exist only when i,j>0i,j>0i,j>0; the dimensions a,b,c,da,b,c,da,b,c,d may be zero, yielding empty row or column index sets as appropriate.

QAlgorithms.Papers.Independent.Bridge50.P37.messageRound

For arbitrary natural numbers a,b,c,d,i,ja,b,c,d,i,ja,b,c,d,i,j, including zero, and families Es∈Cc×aE_s\in\mathbb C^{c\times a}Es​∈Cc×a for 0≤s<i0\le s<i0≤s<i and Ft∈Cd×bF_t\in\mathbb C^{d\times b}Ft​∈Cd×b for 0≤t<j0\le t<j0≤t<j, this defines a complex-linear map from ab×abab\times abab×ab matrices to (cj)(di)×(cj)(di)(cj)(di)\times(cj)(di)(cj)(di)×(cj)(di) matrices. Identify flattened indices with pairs in the indicated order, and define matrices Ks,tK_{s,t}Ks,t​ by

Ks,t((α,t′),(β,s′);(x,y))={Es(α,x)Ft(β,y),t′=t and s′=s,0,otherwise.K_{s,t}\bigl((\alpha,t'),(\beta,s');(x,y)\bigr) = \begin{cases} E_s(\alpha,x)F_t(\beta,y),&t'=t\text{ and }s'=s,\\ 0,&\text{otherwise}. \end{cases}Ks,t​((α,t′),(β,s′);(x,y))={Es​(α,x)Ft​(β,y),0,​t′=t and s′=s,otherwise.​

The defined map is

X⟼∑s=0i−1∑t=0j−1Ks,tXKs,t†.X\longmapsto\sum_{s=0}^{i-1}\sum_{t=0}^{j-1}K_{s,t}XK_{s,t}^{\dagger}.X⟼s=0∑i−1​t=0∑j−1​Ks,t​XKs,t†​.

No normalization or channel hypothesis is imposed on either family. Empty sums are zero, so i=0i=0i=0 or j=0j=0j=0 gives the zero map.

QAlgorithms.Papers.Independent.Bridge50.P37.minProduct

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX indexed by A×BA\times BA×B, this defines the real infimum

inf⁡{Re⁡ ⁣(∑a,b,c,duavb‾ X(a,b),(c,d)ucvd):u∈CA, v∈CB, ∥u∥2=∥v∥2=1}.\inf\left\{ \operatorname{Re}\!\left( \sum_{a,b,c,d}\overline{u_a v_b}\,X_{(a,b),(c,d)}u_c v_d \right): u\in\mathbb C^A,\ v\in\mathbb C^B,\ \|u\|_2=\|v\|_2=1 \right\}.inf⎩⎨⎧​Re​a,b,c,d∑​ua​vb​​X(a,b),(c,d)​uc​vd​​:u∈CA, v∈CB, ∥u∥2​=∥v∥2​=1⎭⎬⎫​.

No Hermiticity or positivity assumption is imposed on XXX. This uses the total real-valued infimum operation; in particular, if either factor is empty, the set is empty and its assigned infimum is 000.

QAlgorithms.Papers.Independent.Bridge50.P37.minimumOutputEigenvalue

For finite types A,BA,BA,B with decidable equality and any complex-linear map TTT from AAA-indexed matrices to BBB-indexed matrices, define the real infimum of

{λmin⁡(T(X)): X is positive semidefinite and tr⁡(X)=1},\left\{\lambda_{\min}(T(X)):\ X\text{ is positive semidefinite and }\operatorname{tr}(X)=1\right\},{λmin​(T(X)): X is positive semidefinite and tr(X)=1},

where λmin⁡\lambda_{\min}λmin​ 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 TTT. 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 AAA or BBB is empty.

QAlgorithms.Papers.Independent.Bridge50.P37.normalizedEntangledProjection

For a finite, nonempty index type AAA with decidable equality, let d=∣A∣d=|A|d=∣A∣ and define the vector ϕ∈CA×A\phi\in\mathbb C^{A\times A}ϕ∈CA×A by ϕ(a,b)=1/d\phi_{(a,b)}=1/\sqrt dϕ(a,b)​=1/d​ when a=ba=ba=b, and 000 otherwise. This definition returns the matrix ϕϕ†\phi\phi^\daggerϕϕ†; explicitly,

(ϕϕ†)(a,b),(c,e)={1/d,a=b and c=e,0,otherwise.\bigl(\phi\phi^\dagger\bigr)_{(a,b),(c,e)} = \begin{cases} 1/d,&a=b\ \text{and}\ c=e,\\ 0,&\text{otherwise}. \end{cases}(ϕϕ†)(a,b),(c,e)​={1/d,0,​a=b and c=e,otherwise.​

The nonemptiness assumption ensures d>0d>0d>0, and the definition includes d=1d=1d=1.

QAlgorithms.Papers.Independent.Bridge50.P37.outputEigenvalues

For finite types A,BA,BA,B with decidable equality and any complex-linear map TTT from AAA-indexed matrices to BBB-indexed matrices, define the set

{λmin⁡(T(X)): X is positive semidefinite and tr⁡(X)=1}.\left\{\lambda_{\min}(T(X)):\ X\text{ is positive semidefinite and }\operatorname{tr}(X)=1\right\}.{λmin​(T(X)): X is positive semidefinite and tr(X)=1}.

For a nonempty output index set, λmin⁡(Y)\lambda_{\min}(Y)λmin​(Y) is the smallest eigenvalue when YYY is Hermitian and is zero otherwise; it is also defined to be zero when BBB is empty. No positivity or channel assumption is imposed on TTT. If AAA is empty, there is no trace-one input matrix, so the defined set is empty.

QAlgorithms.Papers.Independent.Bridge50.P37.parallelError

For finite types A,B,LA,B,LA,B,L with decidable equality, a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), any m∈Nm\in\mathbb Nm∈N, and complex-linear maps E:Mat⁡L→Mat⁡AmE:\operatorname{Mat}_L\to\operatorname{Mat}_{A^m}E:MatL​→MatAm​ and F:Mat⁡Bm→Mat⁡LF:\operatorname{Mat}_{B^m}\to\operatorname{Mat}_LF:MatBm​→MatL​, this defines the real number

12∥id⁡L−F∘T⊗m∘E∥⋄.\frac12\left\|\operatorname{id}_L-F\circ T^{\otimes m}\circ E\right\|_\diamond.21​​idL​−F∘T⊗m∘E​⋄​.

Here Am=Fin⁡(m)→AA^m=\operatorname{Fin}(m)\to AAm=Fin(m)→A, similarly for BmB^mBm, and T⊗mT^{\otimes m}T⊗m is the linear extension of ex,x′↦⨂j<mT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m}T(e_{x_j,x'_j})ex,x′​↦⨂j<m​T(exj​,xj′​​). For a map H:Mat⁡L→Mat⁡LH:\operatorname{Mat}_L\to\operatorname{Mat}_LH:MatL​→MatL​, its displayed diamond quantity is the real supremum of ∥(id⁡L⊗H)(X)∥1\|(\operatorname{id}_L\otimes H)(X)\|_1∥(idL​⊗H)(X)∥1​ over all complex matrices XXX indexed by L×LL\times LL×L with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1, where amplification means applying HHH to each block and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. None of T,E,FT,E,FT,E,F is assumed positive or trace preserving, so this definition imposes no upper bound of 111 on the result. Empty index types and m=0m=0m=0 are allowed; the zero-fold function index types are singletons and their tensor products use the empty product 111.

QAlgorithms.Papers.Independent.Bridge50.P37.parallelErrors

For finite types A,B,LA,B,LA,B,L with decidable equality, a complex-linear map T:Mat⁡A(C)→Mat⁡B(C)T:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)T:MatA​(C)→MatB​(C), and any m∈Nm\in\mathbb Nm∈N, this defines the set

{12∥id⁡L−F∘T⊗m∘E∥⋄:E:Mat⁡L→Mat⁡Am, F:Mat⁡Bm→Mat⁡L, E,F channels}.\left\{\frac12\left\|\operatorname{id}_L-F\circ T^{\otimes m}\circ E\right\|_\diamond: E:\operatorname{Mat}_L\to\operatorname{Mat}_{A^m},\ F:\operatorname{Mat}_{B^m}\to\operatorname{Mat}_L,\ E,F\text{ channels}\right\}.{21​​idL​−F∘T⊗m∘E​⋄​:E:MatL​→MatAm​, F:MatBm​→MatL​, E,F channels}.

A map H:Mat⁡U→Mat⁡VH:\operatorname{Mat}_U\to\operatorname{Mat}_VH:MatU​→MatV​ is a channel here precisely when there are finitely many matrices Ki:U→VK_i:U\to VKi​:U→V, possibly zero such matrices, satisfying ∑iKi†Ki=IU\sum_iK_i^\dagger K_i=I_U∑i​Ki†​Ki​=IU​ and H(X)=∑iKiXKi†H(X)=\sum_iK_iXK_i^\daggerH(X)=∑i​Ki​XKi†​ for every XXX. The map T⊗mT^{\otimes m}T⊗m is the linear extension of ex,x′↦⨂j<mT(exj,xj′)e_{x,x'}\mapsto\bigotimes_{j<m}T(e_{x_j,x'_j})ex,x′​↦⨂j<m​T(exj​,xj′​​), with Am=Fin⁡(m)→AA^m=\operatorname{Fin}(m)\to AAm=Fin(m)→A. For a map HHH on Mat⁡L\operatorname{Mat}_LMatL​, ∥H∥⋄\|H\|_\diamond∥H∥⋄​ is the real supremum of ∥(id⁡L⊗H)(X)∥1\|(\operatorname{id}_L\otimes H)(X)\|_1∥(idL​⊗H)(X)∥1​ over matrices indexed by L×LL\times LL×L with ∥X∥1≤1\|X\|_1\le1∥X∥1​≤1; the amplification acts blockwise and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The map TTT need not be a channel. Empty types and m=0m=0m=0 are allowed, with zero-fold tensor index types singletons and empty products 111; the set is empty if no such pair of channels exists.

QAlgorithms.Papers.Independent.Bridge50.P37.productValues

For finite index types A,BA,BA,B, with decidable equality, and a complex matrix XXX indexed by A×BA\times BA×B, this defines the set of real numbers

{Re⁡ ⁣(∑a,b,c,duavb‾ X(a,b),(c,d)ucvd):u∈CA, v∈CB, ∥u∥2=∥v∥2=1}.\left\{ \operatorname{Re}\!\left( \sum_{a,b,c,d}\overline{u_a v_b}\,X_{(a,b),(c,d)}u_c v_d \right): u\in\mathbb C^A,\ v\in\mathbb C^B,\ \|u\|_2=\|v\|_2=1 \right\}.⎩⎨⎧​Re​a,b,c,d∑​ua​vb​​X(a,b),(c,d)​uc​vd​​:u∈CA, v∈CB, ∥u∥2​=∥v∥2​=1⎭⎬⎫​.

Thus the vectors tested are precisely products with coordinates uavbu_a v_bua​vb​, and matrix action is ordinary matrix multiplication. No Hermiticity or positivity assumption is imposed on XXX. 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 ddd, including 000, and every real ppp, define the real number

(d−1)(d(1+p)+2)p2d3−2pd+d2+d−1,\frac{(d-1)\bigl(d(1+p)+2\bigr)} {p^2d^3-2pd+d^2+d-1},p2d3−2pd+d2+d−1(d−1)(d(1+p)+2)​,

with ddd interpreted as a real number, so d−1d-1d−1 is ordinary real subtraction. No restriction on ppp 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 A,BA,BA,B with decidable equality and any complex-linear map PPP from AAA-indexed matrices to BBB-indexed matrices, define

J(i,a),(j,b)=P(Eij)ab∣A∣,Z=f(IA⊗P(IA)),f(t)=(t)−1,J_{(i,a),(j,b)}=\frac{P(E_{ij})_{ab}}{|A|}, \qquad Z=f(I_A\otimes P(I_A)),\qquad f(t)=(\sqrt t)^{-1},J(i,a),(j,b)​=∣A∣P(Eij​)ab​​,Z=f(IA​⊗P(IA​)),f(t)=(t​)−1,

using real continuous functional calculus, and put H=ZJZH=ZJZH=ZJZ. The defined real number is −λmin⁡(−H)-\lambda_{\min}(-H)−λmin​(−H), where λmin⁡(K)\lambda_{\min}(K)λmin​(K) is the first entry of the ascending eigenvalue list when KKK is Hermitian and is zero when KKK is not Hermitian. Thus this is the largest eigenvalue of HHH when HHH is Hermitian, and zero otherwise. No positivity, invertibility, or channel assumption is imposed on PPP; inverse square roots use 0−1=00^{-1}=00−1=0, and real continuous functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Bridge50.P37.recurrenceR

For every natural number ddd, including 000, and every real ppp, define the real number

1+p(pd(d2+d−1)−2)p2d3−2pd+d2+d−1,\frac{1+p\bigl(pd(d^2+d-1)-2\bigr)} {p^2d^3-2pd+d^2+d-1},p2d3−2pd+d2+d−11+p(pd(d2+d−1)−2)​,

with ddd interpreted as a real number in this formula. No restriction on ppp 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 AAA with decidable equality, define the complex-linear map on complex matrices indexed by AAA by

X⟼tr⁡(X)I−X.X\longmapsto \operatorname{tr}(X)I-X.X⟼tr(X)I−X.

Equivalently, its (a,b)(a,b)(a,b)-entry is ∑i,j∈A(δijδab−δaiδbj)Xij\sum_{i,j\in A}(\delta_{ij}\delta_{ab}-\delta_{ai}\delta_{bj})X_{ij}∑i,j∈A​(δij​δab​−δai​δbj​)Xij​. The type AAA may be empty, in which case the sums and matrix entries are empty.

QAlgorithms.Papers.Independent.Bridge50.P37.sendMap

For arbitrary natural numbers a,ba,ba,b, a complex-linear map T:Ca×a→Cb×bT:\mathbb C^{a\times a}\to\mathbb C^{b\times b}T:Ca×a→Cb×b, and natural numbers u,vu,vu,v, this defines a complex-linear map from matrices indexed by ({0,…,a−1}×{0,…,u−1})×{0,…,v−1}(\{0,\ldots,a-1\}\times\{0,\ldots,u-1\})\times\{0,\ldots,v-1\}({0,…,a−1}×{0,…,u−1})×{0,…,v−1} to matrices indexed by {0,…,u−1}×({0,…,b−1}×{0,…,v−1})\{0,\ldots,u-1\}\times(\{0,\ldots,b-1\}\times\{0,\ldots,v-1\}){0,…,u−1}×({0,…,b−1}×{0,…,v−1}), with these products flattened to dimensions (au)v(au)v(au)v and u(bv)u(bv)u(bv). For every input matrix XXX, its output entries are

(sendMap⁡T,u,v(X))(α,(β,γ)),(α′,(β′,γ′))=∑r<a∑s<aX((r,α),γ),((s,α′),γ′) T(ers)β,β′.\bigl(\operatorname{sendMap}_{T,u,v}(X)\bigr)_{(\alpha,(\beta,\gamma)),(\alpha',(\beta',\gamma'))} = \sum_{r<a}\sum_{s<a} X_{((r,\alpha),\gamma),((s,\alpha'),\gamma')} \,T(e_{rs})_{\beta,\beta'}.(sendMapT,u,v​(X))(α,(β,γ)),(α′,(β′,γ′))​=r<a∑​s<a∑​X((r,α),γ),((s,α′),γ′)​T(ers​)β,β′​.

Thus the formula applies TTT to the aaa-dimensional matrix factor while retaining the uuu- and vvv-indices in the displayed output order. No channel or positivity hypothesis is imposed on TTT, and all dimensions, including u,vu,vu,v, may be zero.

QAlgorithms.Papers.Independent.Bridge50.P37.separableErrors

For finite types A,BA,BA,B with decidable equality, with AAA nonempty, a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), and any k∈Nk\in\mathbb Nk∈N, this defines the set

{∥ΠA−S(CP[k])∥1: S:Mat⁡Ak×Bk(C)→Mat⁡A×A(C) has the representation below}.\left\{\left\|\Pi_A-S(C_P^{[k]})\right\|_1:\ S:\operatorname{Mat}_{A^k\times B^k}(\mathbb C)\to\operatorname{Mat}_{A\times A}(\mathbb C) \text{ has the representation below}\right\}.{​ΠA​−S(CP[k]​)​1​: S:MatAk×Bk​(C)→MatA×A​(C) has the representation below}.

Writing d=∣A∣d=|A|d=∣A∣, the matrices in this formula are

(ΠA)(a,b),(a′,b′)={1/d,a=b and a′=b′,0,otherwise,(CP)(a,b),(a′,b′)=P(ea,a′)b,b′d,(\Pi_A)_{(a,b),(a',b')}= \begin{cases}1/d,&a=b\text{ and }a'=b',\\0,&\text{otherwise},\end{cases} \qquad (C_P)_{(a,b),(a',b')}=\frac{P(e_{a,a'})_{b,b'}}d,(ΠA​)(a,b),(a′,b′)​={1/d,0,​a=b and a′=b′,otherwise,​(CP​)(a,b),(a′,b′)​=dP(ea,a′​)b,b′​​,

and

(CP[k])(x,y),(x′,y′)=∏j=0k−1(CP)(xj,yj),(xj′,yj′).(C_P^{[k]})_{(x,y),(x',y')}=\prod_{j=0}^{k-1}(C_P)_{(x_j,y_j),(x'_j,y'_j)}.(CP[k]​)(x,y),(x′,y′)​=j=0∏k−1​(CP​)(xj​,yj​),(xj′​,yj′​)​.

The required representation of the complex-linear map SSS is the existence of an h∈Nh\in\mathbb Nh∈N and matrices Ri:Ak→AR_i:A^k\to ARi​:Ak→A, Qi:Bk→AQ_i:B^k\to AQi​:Bk→A, for i<hi<hi<h, such that S(X)=∑i<h(Ri⊗Qi)X(Ri⊗Qi)†S(X)=\sum_{i<h}(R_i\otimes Q_i)X(R_i\otimes Q_i)^\daggerS(X)=∑i<h​(Ri​⊗Qi​)X(Ri​⊗Qi​)† for every XXX. There is no trace-preservation or Kraus-normalization requirement, and h=0h=0h=0 permits the zero map. The norm is ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. No positivity or channel assumption is imposed on PPP; BBB may be empty, and k=0k=0k=0 is included, with singleton function index types and empty products equal to 111.

QAlgorithms.Papers.Independent.Bridge50.P37.tensorLinearMap

For finite index types A,CA,CA,C with decidable equality, arbitrary index types B,DB,DB,D, and complex-linear maps P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C) and Q:Mat⁡C(C)→Mat⁡D(C)Q:\operatorname{Mat}_C(\mathbb C)\to\operatorname{Mat}_D(\mathbb C)Q:MatC​(C)→MatD​(C), this defines a complex-linear map on matrices indexed by A×CA\times CA×C, with output indexed by B×DB\times DB×D, by

(TP,Q(X))(b,d),(b′,d′)=∑a,a′∈A∑c,c′∈CP(Eaa′)bb′ Q(Ecc′)dd′ X(a,c),(a′,c′),\bigl(\mathcal T_{P,Q}(X)\bigr)_{(b,d),(b',d')} =\sum_{a,a'\in A}\sum_{c,c'\in C} P(E_{aa'})_{bb'}\,Q(E_{cc'})_{dd'}\,X_{(a,c),(a',c')},(TP,Q​(X))(b,d),(b′,d′)​=a,a′∈A∑​c,c′∈C∑​P(Eaa′​)bb′​Q(Ecc′​)dd′​X(a,c),(a′,c′)​,

where EuvE_{uv}Euv​ is the matrix with entry 111 at (u,v)(u,v)(u,v) 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 AAA with decidable equality, an index type BBB, a complex-linear map P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C), and any natural number nnn, this defines a complex-linear map from matrices indexed by AnA^nAn to matrices indexed by BnB^nBn by

(TP,n(X))b,b′=∑a,a′∈AnXa,a′∏k=0n−1P(Eakak′)bkbk′.\bigl(\mathcal T_{P,n}(X)\bigr)_{b,b'} =\sum_{a,a'\in A^n}X_{a,a'}\prod_{k=0}^{n-1}P(E_{a_k a'_k})_{b_k b'_k}.(TP,n​(X))b,b′​=a,a′∈An∑​Xa,a′​k=0∏n−1​P(Eak​ak′​​)bk​bk′​​.

Here AnA^nAn and BnB^nBn are the sets of functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to the respective index types, and EuvE_{uv}Euv​ is a matrix unit. The definition includes n=0n=0n=0: both function sets then contain one empty function, and the empty product is 111, so this is the identity map on one-dimensional matrices.

QAlgorithms.Papers.Independent.Bridge50.P37.unitalize

For finite types A,BA,BA,B with decidable equality, assuming BBB is nonempty, and any complex-linear map RRR from AAA-indexed matrices to BBB-indexed matrices, put

H=f(R(IA)),f(t)=(t)−1,H=f(R(I_A)),\qquad f(t)=(\sqrt t)^{-1},H=f(R(IA​)),f(t)=(t​)−1,

where f(R(IA))f(R(I_A))f(R(IA​)) means real continuous functional calculus. The defined complex-linear map sends XXX to H R(X) H†H\,R(X)\,H^\daggerHR(X)H†. No positivity or invertibility assumption is imposed on R(IA)R(I_A)R(IA​), and no unitality assertion is part of this definition. The scalar convention is 0−1=00^{-1}=00−1=0, and t=0\sqrt t=0t​=0 for t<0t<0t<0; real continuous functional calculus returns zero on a non-Hermitian matrix. The input type AAA may be empty.

QAlgorithms.Papers.Independent.Bridge50.P37.wernerMap

For every natural number ddd and real number ppp, this defines a complex-linear map Wd,pW_{d,p}Wd,p​ on complex d×dd\times dd×d matrices by

(Wd,p(X))a,b=∑i,j=0d−1(d−p)δi,jδa,b−(1−dp)δa,jδb,id2−1 Xi,j.\bigl(W_{d,p}(X)\bigr)_{a,b} = \sum_{i,j=0}^{d-1} \frac{(d-p)\delta_{i,j}\delta_{a,b}-(1-dp)\delta_{a,j}\delta_{b,i}}{d^2-1}\,X_{i,j}.(Wd,p​(X))a,b​=i,j=0∑d−1​d2−1(d−p)δi,j​δa,b​−(1−dp)δa,j​δb,i​​Xi,j​.

Equivalently,

Wd,p(X)=(d−p)tr⁡(X)Id−(1−dp)XTd2−1,W_{d,p}(X)= \frac{(d-p)\operatorname{tr}(X)I_d-(1-dp)X^{\mathsf T}}{d^2-1},Wd,p​(X)=d2−1(d−p)tr(X)Id​−(1−dp)XT​,

where the transpose does not conjugate entries. There is no restriction on ppp and no positivity or channel condition in this definition. Division is complex division with 0−1=00^{-1}=00−1=0, so at d=1d=1d=1 the map is zero; d=0d=0d=0 is also included and gives the unique map on empty matrices.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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