Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for The operational meaning of quantum conditional information

Definition
QAlgorithms_Papers_Independent_Gap48_P20

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

prove2quantum

The objects the formalized statements of The operational meaning of quantum conditional information (arXiv:quant-ph/0612050) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • Copies: PDF pp.1–2: n independent copies of a register X.
  • RedistributionSource: PDF pp.1–2: canonical four-register source, with inaccessible R first.
  • redistributionMarginal: PDF p.1: partial trace, specified by complementary coordinate projections. All uses below have (keep,forget) a bijection onto the tensor factors; summing over matching forgotten coordinates retains off-diagonal kept coordinates.
  • subsystemEntropy: PDF p.1: entropy in bits of an explicitly computed redistributionMarginal.
  • conditionalCost: PDF p.2: H(C|B)=H(CB)-H(B), from the actual source density.
  • quantumCost: PDF p.2, (1): I(C;R|B)/2, evaluated from four actual marginals.
  • redistributionEntanglementRate: PDF p.2, (2): (I(C;A)-I(C;B))/2. The common H(C) cancels.
  • swappedSource: PDF p.2: swapping sender and receiver side information, leaving C and R fixed.
  • sourceAmplitude: PDF pp.1–2: the actual pure i.i.d. source amplitude, in grouped copy registers.
  • TransferCode: PDF p.2: one forward message of q qubits, k input Bell pairs and l output Bell pairs. Alice's input is AC and her k halves; Bob's is B and his k halves. The maps are fixed independently of the inaccessible reference input.
  • forwardApply: PDF p.2: the all-operator channel of an encoder, transmission, and decoder. The contraction over both message indices transmits a quantum register; it does not measure that register. This formula includes entangled inputs.
  • initial: PDF p.2: the full source and the independently supplied k Bell pairs.
  • redistributionTargetDensity: PDF p.2: desired joint output on A,C,B,R and both final Bell registers.
  • redistributionOutputDensity: PDF p.2: actual output; no operation ever acts on R.
  • redistributionError: PDF pp.1–2: joint full trace-norm reconstruction error, including ebits.
  • netEntanglement: PDF p.2: signed consumption, with subtraction in the reals.
  • HasRedistributionClassicalMessage: PDF p.3: classical-only message: every encoder output is diagonal in the message register. Complete dephasing, followed by the decoder, transmits only q cbits and no quantum channel. No uncharged additional channel is present.
  • RedistributionAchievable: PDF p.2: independently operational asymptotic two-resource achievability. All sufficiently large positive blocklengths work, for every positive error and rate slack. k and l are separate natural counts and E can be negative.
  • ClassicalPairAchievable: PDF p.3: a classical/entanglement rate pair, with no quantum communication.
  • ClassicalAchievable: PDF p.3: unlimited Bell assistance; k and l have no rate restriction at all. The classical cost still counts every message bit.
  • mergingClassicalCost: PDF p.3: the older merging cbit cost I(RA;C), with A placed in the reference.
  • catState: PDF p.3, application (1): the actual four-qubit cat state, in R,A,C,B order.
  • catAliceKraus: PDF p.3: TP extension of Alice's support isometry. It applies CNOT A→C, then traces out C. On |zz> only the false branch occurs, preserving coherence.
  • catAlice: PDF p.3: Alice's complete local operation on every operator.
  • catBobIsometry: PDF p.3: Bob's genuine isometry |z>→|zz>, on the whole input space.
  • catBob: PDF p.3: Bob's local CPTP operation.
  • localProduct: PDF p.3: tensor product of two local operations, on arbitrary correlated inputs.
  • catInput: PDF p.3: input cat state, grouped into Alice's AC and Bob's B.
  • jointSource: PDF p.2: transfer CD jointly, retaining A.
  • firstSource: PDF p.2: D first, with AC retained by the sender.
  • secondSource: PDF p.3: C second, with DB already held by the receiver.
  • sequentialInitial: PDF pp.2–3: actual initial matrix for stage D. The future stage's Bell bank is untouched, so it is placed together with R in this stage's reference.
  • sequentialOutput: PDF pp.2–3: stage D followed by stage C on the actual first-stage output. The D-stage final Bell pairs become part of stage C's untouched reference.
  • sequentialTarget: PDF pp.2–3: joint target with both final Bell banks, including their absence of correlations with the source and with each other.
  • SuccessivelyAchievable: PDF pp.2–3: operational successive achievability with separate stage costs. Initial Bell banks are supplied for both stages; neither stage is required to have nonnegative net entanglement consumption.
  • UnitaryRedistributionCode: PDF p.2, Fig.2: finite local unitaries with explicit input and output work registers. Rectangular matrices are two-sided inverses, so the corresponding finite Hilbert spaces have equal dimensions. Work dimensions are arbitrary positive integers, rather than just powers of two.
  • Input: PDF p.2: full coherent input basis, including both pure local work registers.
  • RedistributionOutputBasis: PDF p.2: full output basis. No work is discarded in this model.
  • globalMatrix: PDF p.2, Fig.2: the actual global unitary, including transmission and id_R. Its adjoint reverses Bob's decoder first, transmits the same message back, then reverses Alice's encoder.
  • redistributionInputVector: PDF p.2: independent pure local ancillas in fixed basis states, and k ebits.
  • redistributionTargetVector: PDF p.2: pure target with l independent ebits and fixed pure output work. These work registers become the initial local ancillas in the reverse process.
  • forwardError: PDF p.2: full pure-state reconstruction error before tracing any work.
  • reverseError: PDF p.2: error of reversing these same matrices with Bell banks exchanged.
  • ReversiblyAchievable: PDF p.2: one coherent family works in both directions. Both signed ebit bounds are imposed so that reversal achieves -E, including E=0.
  • ThreeSource: PDF p.4: six-register source R,A,C_A,B,C_B,C, with C initially at Charlie.
  • ThreeCode: PDF p.4: two encoders, two separately charged forward messages, one receiver. With no feedback, the receiver may postpone all its actions until both messages arrive. The Bell banks belong to the Alice–Charlie and Bob–Charlie links.
  • threeForwardApply: PDF p.4: the actual all-operator joint action of the two local senders and Charlie. Both transmitted message coherences are contracted, never discarded.
  • initial: PDF p.4: source times the two independent initial Bell banks.
  • redistributionTargetDensity: PDF p.4: desired full state including both independent final Bell banks.
  • redistributionError: PDF p.4: full joint error of the actual finite three-party code.
  • ThreePartyAchievable: PDF p.4: four operational rates with independent Bell accounting per link. The definition does not mention an entropic region or an ordering strategy.
  • aliceFirst: PDF p.4: Alice first. Bob's entire B C_B is inaccessible reference here.
  • bobSecond: PDF p.4: Bob second, with C_A C held by Charlie; A is reference.
  • bobFirst: PDF p.4: Bob first; A C_A is in this stage's reference.
  • aliceSecond: PDF p.4: Alice second, with C_B C held by Charlie; B is reference.
  • aliceFirstCorner: PDF p.4: corner obtained by Alice-to-Charlie, then Bob-to-Charlie.
  • bobFirstCorner: PDF p.4: corner obtained in the opposite order, with the same link order.
  • InGeneratedRegion: PDF p.4: convex time sharing of the two corners, plus the wasting and qubit-for-ebit substitution cone on each link. This is an inner region only.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P39

/-!
Devetak–Yard, arXiv:quant-ph/0612050v2, PDF pp.1–4.
Registers are finite nonzero computational-basis types. The canonical source order
is R,A,C,B; changing tuple association never changes ownership or the source.
Entropy is the accepted finite matrix entropy in bits. Local operations are
complete CPTP maps; every reference block, including off-diagonal ones, is kept.
A finite forward protocol is collected into one encoder, one forward message,
and one decoder: with no reverse messages, Bob's intermediate operations commute
past Alice's later operations and can be postponed. Local ancillas and discarded
work are included in the arbitrary rectangular CPTP encoder and decoder.
The asymptotic definitions below contain no entropy inequalities.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P20

open scoped Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Next46.P39 (rectAct)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.1–2: n independent copies of a register X. -/
abbrev Copies (X : Type*) (n : ℕ) := Fin n → X

/-- PDF pp.1–2: canonical four-register source, with inaccessible R first. -/
abbrev RedistributionSource (A C B R : Type*) := R × (A × (C × B))

/-- PDF p.1: partial trace, specified by complementary coordinate projections.
All uses below have (keep,forget) a bijection onto the tensor factors; summing over
matching forgotten coordinates retains off-diagonal kept coordinates. -/
def redistributionMarginal {X K F : Type*} [Fintype X] (rho : Matrix X X ℂ)
    (keep : X → K) (forget : X → F) : Matrix K K ℂ :=
  fun a b => ∑ x, ∑ y,
    if keep x = a ∧ keep y = b ∧ forget x = forget y then rho x y else 0

/-- PDF p.1: entropy in bits of an explicitly computed redistributionMarginal. -/
def subsystemEntropy {X K F : Type*} [Fintype X] [Fintype K]
    (rho : Matrix X X ℂ) (keep : X → K) (forget : X → F) : ℝ :=
  vnEntropy (redistributionMarginal rho keep forget)

section FourRegisters

variable {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]

/-- PDF p.2: H(C|B)=H(CB)-H(B), from the actual source density. -/
def conditionalCost (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  subsystemEntropy (pureDensity psi) (fun p => p.2.2) (fun p => (p.1, p.2.1)) -
    subsystemEntropy (pureDensity psi) (fun p => p.2.2.2)
      (fun p => (p.1, p.2.1, p.2.2.1))

/-- PDF p.2, (1): I(C;R|B)/2, evaluated from four actual marginals. -/
def quantumCost (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  (subsystemEntropy (pureDensity psi) (fun p => p.2.2) (fun p => (p.1, p.2.1)) +
    subsystemEntropy (pureDensity psi) (fun p => (p.1, p.2.2.2))
      (fun p => (p.2.1, p.2.2.1)) -
    subsystemEntropy (pureDensity psi) (fun p => p.2.2.2)
      (fun p => (p.1, p.2.1, p.2.2.1)) -
    subsystemEntropy (pureDensity psi) (fun p => (p.1, p.2.2)) (fun p => p.2.1)) / 2

/-- PDF p.2, (2): (I(C;A)-I(C;B))/2. The common H(C) cancels. -/
def redistributionEntanglementRate (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  (subsystemEntropy (pureDensity psi) (fun p => p.2.1) (fun p => (p.1, p.2.2)) -
    subsystemEntropy (pureDensity psi) (fun p => (p.2.1, p.2.2.1))
      (fun p => (p.1, p.2.2.2)) -
    subsystemEntropy (pureDensity psi) (fun p => p.2.2.2)
      (fun p => (p.1, p.2.1, p.2.2.1)) +
    subsystemEntropy (pureDensity psi) (fun p => p.2.2) (fun p => (p.1, p.2.1))) / 2

/-- PDF p.2: swapping sender and receiver side information, leaving C and R fixed. -/
def swappedSource (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    EuclideanSpace ℂ (RedistributionSource B C A R) :=
  WithLp.toLp 2 fun p => psi (p.1, (p.2.2.2, (p.2.2.1, p.2.1)))

/-- PDF pp.1–2: the actual pure i.i.d. source amplitude, in grouped copy registers. -/
def sourceAmplitude (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (n : ℕ)
    (r : Copies R n) (a : Copies A n) (c : Copies C n) (b : Copies B n) : ℂ :=
  tensorPow n psi (fun i => (r i, (a i, (c i, b i))))

end FourRegisters

/-- PDF p.2: one forward message of q qubits, k input Bell pairs and l output
Bell pairs. Alice's input is AC and her k halves; Bob's is B and his k halves.
The maps are fixed independently of the inaccessible reference input. -/
structure TransferCode (A C B : Type*) [Fintype A] [Fintype C] [Fintype B] (n : ℕ) where
  q : ℕ
  k : ℕ
  l : ℕ
  encoder : Superop ((Copies A n × Copies C n) × Qubits k)
    ((Copies A n × Qubits l) × Qubits q)
  decoder : Superop (Qubits q × (Copies B n × Qubits k))
    ((Copies C n × Copies B n) × Qubits l)
  encoder_channel : IsChannel encoder
  decoder_channel : IsChannel decoder

/-- PDF p.2: the all-operator channel of an encoder, transmission, and decoder.
The contraction over both message indices transmits a quantum register; it does
not measure that register. This formula includes entangled inputs. -/
def forwardApply {X Y U V M : Type*} [Fintype X] [Fintype Y] [Fintype M]
    (encoder : Superop X (U × M)) (decoder : Superop (M × Y) V) :
    Superop (X × Y) (U × V) :=
  fun rho p p' => ∑ x, ∑ x', ∑ y, ∑ y', ∑ m, ∑ m',
    rho (x, y) (x', y') *
      encoder (Matrix.single x x' 1) (p.1, m) (p'.1, m') *
      decoder (Matrix.single (m, y) (m', y') 1) p.2 p'.2

namespace TransferCode

variable {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]
variable {n : ℕ} (P : TransferCode A C B n)

/-- PDF p.2: the full source and the independently supplied k Bell pairs. -/
def initial (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    Matrix (Copies R n × (((Copies A n × Copies C n) × Qubits P.k) ×
      (Copies B n × Qubits P.k)))
      (Copies R n × (((Copies A n × Copies C n) × Qubits P.k) ×
      (Copies B n × Qubits P.k))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    sourceAmplitude psi n p.1 p.2.1.1.1 p.2.1.1.2 p.2.2.1 *
      maxEntangled P.k (p.2.1.2, p.2.2.2))

/-- PDF p.2: desired joint output on A,C,B,R and both final Bell registers. -/
def redistributionTargetDensity (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    Matrix (Copies R n × ((Copies A n × Qubits P.l) ×
      ((Copies C n × Copies B n) × Qubits P.l)))
      (Copies R n × ((Copies A n × Qubits P.l) ×
      ((Copies C n × Copies B n) × Qubits P.l))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    sourceAmplitude psi n p.1 p.2.1.1 p.2.2.1.1 p.2.2.1.2 *
      maxEntangled P.l (p.2.1.2, p.2.2.2))

/-- PDF p.2: actual output; no operation ever acts on R. -/
def redistributionOutputDensity (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :=
  idTensorSuperop (forwardApply P.encoder P.decoder) (P.initial psi)

/-- PDF pp.1–2: joint full trace-norm reconstruction error, including ebits. -/
def redistributionError (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  traceNorm (P.redistributionOutputDensity psi - P.redistributionTargetDensity psi)

/-- PDF p.2: signed consumption, with subtraction in the reals. -/
def netEntanglement : ℝ := (P.k : ℝ) - (P.l : ℝ)

/-- PDF p.3: classical-only message: every encoder output is diagonal in the
message register. Complete dephasing, followed by the decoder, transmits only
q cbits and no quantum channel. No uncharged additional channel is present. -/
def HasRedistributionClassicalMessage : Prop :=
  ∀ X u v m m', m ≠ m' → P.encoder X (u, m) (v, m') = 0

end TransferCode

/-- PDF p.2: independently operational asymptotic two-resource achievability.
All sufficiently large positive blocklengths work, for every positive error and
rate slack. k and l are separate natural counts and E can be negative. -/
def RedistributionAchievable {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (Q E : ℝ) : Prop :=
  0 ≤ Q ∧ ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
    ∀ n ≥ N, 1 ≤ n → ∃ P : TransferCode A C B n,
      P.redistributionError psi ≤ eps ∧ (P.q : ℝ) ≤ n * (Q + delta) ∧
        P.netEntanglement ≤ n * (E + delta)

/-- PDF p.3: a classical/entanglement rate pair, with no quantum communication. -/
def ClassicalPairAchievable {A C B R : Type*}
    [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (c E : ℝ) : Prop :=
  0 ≤ c ∧ ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
    ∀ n ≥ N, 1 ≤ n → ∃ P : TransferCode A C B n,
      P.HasRedistributionClassicalMessage ∧ P.redistributionError psi ≤ eps ∧ (P.q : ℝ) ≤ n * (c + delta) ∧
        P.netEntanglement ≤ n * (E + delta)

/-- PDF p.3: unlimited Bell assistance; k and l have no rate restriction at all.
The classical cost still counts every message bit. -/
def ClassicalAchievable {A C B R : Type*}
    [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (c : ℝ) : Prop :=
  0 ≤ c ∧ ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
    ∀ n ≥ N, 1 ≤ n → ∃ P : TransferCode A C B n,
      P.HasRedistributionClassicalMessage ∧ P.redistributionError psi ≤ eps ∧ (P.q : ℝ) ≤ n * (c + delta)

/-- PDF p.3: the older merging cbit cost I(RA;C), with A placed in the reference. -/
def mergingClassicalCost {A C B R : Type*}
    [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  subsystemEntropy (pureDensity psi) (fun p => (p.1, p.2.1)) (fun p => p.2.2) +
    subsystemEntropy (pureDensity psi) (fun p => p.2.2.1)
      (fun p => (p.1, p.2.1, p.2.2.2)) -
    subsystemEntropy (pureDensity psi) (fun p => (p.1, p.2.1, p.2.2.1))
      (fun p => p.2.2.2)

/-! Sanity examples pinning the local definitions. -/

example {X : Type*} [Fintype X] (rho : Matrix X X ℂ) :
    redistributionMarginal rho id (fun _ => ()) = rho := by
  ext a b
  unfold redistributionMarginal
  rw [Finset.sum_eq_single a]
  · simp
  · intro x _ hx
    simp [hx]
  · simp

example {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R))
    (r : Copies R 0) (a : Copies A 0) (c : Copies C 0) (b : Copies B 0) :
    sourceAmplitude psi 0 r a c b = 1 := by
  simp [sourceAmplitude, tensorPow]

example {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    swappedSource (swappedSource psi) = psi := by
  ext p
  rfl

example {A C B : Type*} [Fintype A] [Fintype C] [Fintype B]
    {n : ℕ} (P : TransferCode A C B n) (h : P.k = P.l) :
    P.netEntanglement = 0 := by
  simp [TransferCode.netEntanglement, h]

/-- PDF p.3, application (1): the actual four-qubit cat state, in R,A,C,B order. -/
def catState : EuclideanSpace ℂ (RedistributionSource Bool Bool Bool Bool) :=
  WithLp.toLp 2 fun p =>
    if p.1 = p.2.1 ∧ p.2.1 = p.2.2.1 ∧ p.2.2.1 = p.2.2.2
    then ((Real.sqrt 2)⁻¹ : ℂ) else 0

/-- PDF p.3: TP extension of Alice's support isometry. It applies CNOT A→C,
then traces out C. On |zz> only the false branch occurs, preserving coherence. -/
def catAliceKraus (work : Bool) : Matrix Bool (Bool × Bool) ℂ :=
  fun a p => if a = p.1 ∧ work = (p.1 != p.2) then 1 else 0

/-- PDF p.3: Alice's complete local operation on every operator. -/
def catAlice : Superop (Bool × Bool) Bool := krausApply catAliceKraus

/-- PDF p.3: Bob's genuine isometry |z>→|zz>, on the whole input space. -/
def catBobIsometry : Matrix (Bool × Bool) Bool ℂ :=
  fun p b => if p = (b, b) then 1 else 0

/-- PDF p.3: Bob's local CPTP operation. -/
def catBob : Superop Bool (Bool × Bool) := conjSuperop catBobIsometry

/-- PDF p.3: tensor product of two local operations, on arbitrary correlated inputs. -/
def localProduct {X Y U V : Type*} [Fintype X] [Fintype Y]
    (F : Superop X U) (G : Superop Y V) : Superop (X × Y) (U × V) :=
  fun rho p p' => ∑ x, ∑ x', ∑ y, ∑ y',
    rho (x, y) (x', y') * F (Matrix.single x x' 1) p.1 p'.1 *
      G (Matrix.single y y' 1) p.2 p'.2

/-- PDF p.3: input cat state, grouped into Alice's AC and Bob's B. -/
def catInput : Matrix (Bool × ((Bool × Bool) × Bool))
    (Bool × ((Bool × Bool) × Bool)) ℂ :=
  pureDensity (WithLp.toLp 2 fun p => catState (p.1, (p.2.1.1, (p.2.1.2, p.2.2))))

example (z : Bool) : catAliceKraus false z (z, z) = 1 := by
  cases z <;> rfl

example (z : Bool) : catAliceKraus true z (z, z) = 0 := by
  cases z <;> rfl

example (z : Bool) : catBobIsometry (z, z) z = 1 := by
  simp [catBobIsometry]

section Composite

variable {A C D B R : Type*}
variable [Fintype A] [Fintype C] [Fintype D] [Fintype B] [Fintype R]

/-- PDF p.2: transfer CD jointly, retaining A. -/
def jointSource (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    EuclideanSpace ℂ (RedistributionSource A (C × D) B R) :=
  WithLp.toLp 2 fun p => psi (p.1, (p.2.1, (p.2.2.1.1, (p.2.2.1.2, p.2.2.2))))

/-- PDF p.2: D first, with AC retained by the sender. -/
def firstSource (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    EuclideanSpace ℂ (RedistributionSource (A × C) D B R) :=
  WithLp.toLp 2 fun p => psi (p.1, (p.2.1.1, (p.2.1.2, p.2.2)))

/-- PDF p.3: C second, with DB already held by the receiver. -/
def secondSource (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    EuclideanSpace ℂ (RedistributionSource A C (D × B) R) := psi

/-- PDF pp.2–3: actual initial matrix for stage D. The future stage's Bell bank
is untouched, so it is placed together with R in this stage's reference. -/
def sequentialInitial {n : ℕ} (P : TransferCode (A × C) D B n)
    (T : TransferCode A C (D × B) n)
    (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    Matrix ((Copies R n × (Qubits T.k × Qubits T.k)) ×
      (((Copies (A × C) n × Copies D n) × Qubits P.k) ×
        (Copies B n × Qubits P.k)))
      ((Copies R n × (Qubits T.k × Qubits T.k)) ×
      (((Copies (A × C) n × Copies D n) × Qubits P.k) ×
        (Copies B n × Qubits P.k))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1.1 i, ((p.2.1.1.1 i).1,
      ((p.2.1.1.1 i).2, (p.2.1.1.2 i, p.2.2.1 i))))) *
    maxEntangled P.k (p.2.1.2, p.2.2.2) * maxEntangled T.k p.1.2)

/-- PDF pp.2–3: stage D followed by stage C on the actual first-stage output.
The D-stage final Bell pairs become part of stage C's untouched reference. -/
def sequentialOutput {n : ℕ} (P : TransferCode (A × C) D B n)
    (T : TransferCode A C (D × B) n)
    (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    Matrix ((Copies R n × (Qubits P.l × Qubits P.l)) ×
      ((Copies A n × Qubits T.l) ×
        ((Copies C n × Copies (D × B) n) × Qubits T.l)))
      ((Copies R n × (Qubits P.l × Qubits P.l)) ×
      ((Copies A n × Qubits T.l) ×
        ((Copies C n × Copies (D × B) n) × Qubits T.l))) ℂ :=
  let afterD := idTensorSuperop (forwardApply P.encoder P.decoder)
    (sequentialInitial P T psi)
  let regroup : ((Copies R n × (Qubits P.l × Qubits P.l)) ×
      (((Copies A n × Copies C n) × Qubits T.k) ×
        (Copies (D × B) n × Qubits T.k))) →
      ((Copies R n × (Qubits T.k × Qubits T.k)) ×
      ((Copies (A × C) n × Qubits P.l) ×
        ((Copies D n × Copies B n) × Qubits P.l))) :=
    fun p => ((p.1.1, (p.2.1.2, p.2.2.2)),
      (((fun i => (p.2.1.1.1 i, p.2.1.1.2 i)), p.1.2.1),
        (((fun i => (p.2.2.1 i).1), (fun i => (p.2.2.1 i).2)), p.1.2.2)))
  idTensorSuperop (forwardApply T.encoder T.decoder) (fun p q => afterD (regroup p) (regroup q))

/-- PDF pp.2–3: joint target with both final Bell banks, including their absence
of correlations with the source and with each other. -/
def sequentialTarget {n : ℕ} (P : TransferCode (A × C) D B n)
    (T : TransferCode A C (D × B) n)
    (psi : EuclideanSpace ℂ (R × (A × (C × (D × B))))) :
    Matrix ((Copies R n × (Qubits P.l × Qubits P.l)) ×
      ((Copies A n × Qubits T.l) ×
        ((Copies C n × Copies (D × B) n) × Qubits T.l)))
      ((Copies R n × (Qubits P.l × Qubits P.l)) ×
      ((Copies A n × Qubits T.l) ×
        ((Copies C n × Copies (D × B) n) × Qubits T.l))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1.1 i, (p.2.1.1 i,
      (p.2.2.1.1 i, p.2.2.1.2 i)))) *
    maxEntangled P.l p.1.2 * maxEntangled T.l (p.2.1.2, p.2.2.2))

/-- PDF pp.2–3: operational successive achievability with separate stage costs.
Initial Bell banks are supplied for both stages; neither stage is required to
have nonnegative net entanglement consumption. -/
def SuccessivelyAchievable
    (psi : EuclideanSpace ℂ (R × (A × (C × (D × B)))))
    (QD ED QC EC : ℝ) : Prop :=
  ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
    ∀ n ≥ N, 1 ≤ n → ∃ P : TransferCode (A × C) D B n,
      ∃ T : TransferCode A C (D × B) n,
        P.redistributionError (firstSource psi) ≤ eps / 2 ∧
        T.redistributionError (secondSource psi) ≤ eps / 2 ∧
        traceNorm (sequentialOutput P T psi - sequentialTarget P T psi) ≤ eps ∧
        (P.q : ℝ) ≤ n * (QD + delta) ∧ P.netEntanglement ≤ n * (ED + delta) ∧
        (T.q : ℝ) ≤ n * (QC + delta) ∧ T.netEntanglement ≤ n * (EC + delta)

example (psi : EuclideanSpace ℂ (R × (A × (C × (D × B)))))
    (r : R) (a : A) (c : C) (d : D) (b : B) :
    firstSource psi (r, ((a,c), (d,b))) =
      jointSource psi (r, (a, ((c,d), b))) := by rfl

end Composite

/-! Coherent implementations: all work remains in the comparison. -/

/-- PDF p.2, Fig.2: finite local unitaries with explicit input and output work
registers. Rectangular matrices are two-sided inverses, so the corresponding
finite Hilbert spaces have equal dimensions. Work dimensions are arbitrary
positive integers, rather than just powers of two. -/
structure UnitaryRedistributionCode (A C B : Type*) [Fintype A] [Fintype C] [Fintype B] (n : ℕ) where
  q : ℕ
  k : ℕ
  l : ℕ
  waIn : ℕ
  waOut : ℕ
  wbIn : ℕ
  wbOut : ℕ
  encoder : Matrix (((Copies A n × Qubits l) × Fin (waOut + 1)) × Qubits q)
    (((Copies A n × Copies C n) × Qubits k) × Fin (waIn + 1)) ℂ
  decoder : Matrix (((Copies C n × Copies B n) × Qubits l) × Fin (wbOut + 1))
    (Qubits q × ((Copies B n × Qubits k) × Fin (wbIn + 1))) ℂ
  encoder_left : encoderᴴ * encoder = 1
  encoder_right : encoder * encoderᴴ = 1
  decoder_left : decoderᴴ * decoder = 1
  decoder_right : decoder * decoderᴴ = 1

namespace UnitaryRedistributionCode

variable {A C B R : Type*} [Fintype A] [Fintype C] [Fintype B] [Fintype R]
variable {n : ℕ} (P : UnitaryRedistributionCode A C B n)

/-- PDF p.2: full coherent input basis, including both pure local work registers. -/
abbrev Input := Copies R n ×
  ((((Copies A n × Copies C n) × Qubits P.k) × Fin (P.waIn + 1)) ×
    ((Copies B n × Qubits P.k) × Fin (P.wbIn + 1)))

/-- PDF p.2: full output basis. No work is discarded in this model. -/
abbrev RedistributionOutputBasis := Copies R n ×
  (((Copies A n × Qubits P.l) × Fin (P.waOut + 1)) ×
    (((Copies C n × Copies B n) × Qubits P.l) × Fin (P.wbOut + 1)))

/-- PDF p.2, Fig.2: the actual global unitary, including transmission and id_R.
Its adjoint reverses Bob's decoder first, transmits the same message back, then
reverses Alice's encoder. -/
def globalMatrix : Matrix (P.RedistributionOutputBasis (R := R)) (P.Input (R := R)) ℂ :=
  fun o i => if o.1 = i.1 then
    ∑ m, P.encoder (o.2.1, m) i.2.1 * P.decoder o.2.2 (m, i.2.2)
    else 0

/-- PDF p.2: independent pure local ancillas in fixed basis states, and k ebits. -/
def redistributionInputVector (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    EuclideanSpace ℂ (P.Input (R := R)) :=
  WithLp.toLp 2 fun p =>
    if p.2.1.2 = 0 ∧ p.2.2.2 = 0 then
      sourceAmplitude psi n p.1 p.2.1.1.1.1 p.2.1.1.1.2 p.2.2.1.1 *
        maxEntangled P.k (p.2.1.1.2, p.2.2.1.2)
    else 0

/-- PDF p.2: pure target with l independent ebits and fixed pure output work.
These work registers become the initial local ancillas in the reverse process. -/
def redistributionTargetVector (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) :
    EuclideanSpace ℂ (P.RedistributionOutputBasis (R := R)) :=
  WithLp.toLp 2 fun p =>
    if p.2.1.2 = 0 ∧ p.2.2.2 = 0 then
      sourceAmplitude psi n p.1 p.2.1.1.1 p.2.2.1.1.1 p.2.2.1.1.2 *
        maxEntangled P.l (p.2.1.1.2, p.2.2.1.2)
    else 0

/-- PDF p.2: full pure-state reconstruction error before tracing any work. -/
def forwardError (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  traceNorm (pureDensity (rectAct P.globalMatrix (P.redistributionInputVector psi)) -
    pureDensity (P.redistributionTargetVector psi))

/-- PDF p.2: error of reversing these same matrices with Bell banks exchanged. -/
def reverseError (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) : ℝ :=
  traceNorm (pureDensity (rectAct P.globalMatrixᴴ (P.redistributionTargetVector psi)) -
    pureDensity (P.redistributionInputVector psi))

end UnitaryRedistributionCode

/-- PDF p.2: one coherent family works in both directions. Both signed ebit
bounds are imposed so that reversal achieves -E, including E=0. -/
def ReversiblyAchievable {A C B R : Type*}
    [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (Q E : ℝ) : Prop :=
  0 ≤ Q ∧ ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
    ∀ n ≥ N, 1 ≤ n → ∃ P : UnitaryRedistributionCode A C B n,
      P.forwardError psi ≤ eps ∧ P.reverseError psi ≤ eps ∧
      (P.q : ℝ) ≤ n * (Q + delta) ∧
      (P.k : ℝ) - P.l ≤ n * (E + delta) ∧
      (P.l : ℝ) - P.k ≤ n * (-E + delta)

example {X : Type*} [Fintype X] (v : EuclideanSpace ℂ X) :
    rectAct (1 : Matrix X X ℂ) v = v := by
  ext x
  simp [rectAct, Matrix.mulVec, dotProduct, Matrix.one_apply]

/-- PDF p.4: six-register source R,A,C_A,B,C_B,C, with C initially at Charlie. -/
abbrev ThreeSource (A CA B CB C R : Type*) := R × (A × (CA × (B × (CB × C))))

/-- PDF p.4: two encoders, two separately charged forward messages, one receiver.
With no feedback, the receiver may postpone all its actions until both messages
arrive. The Bell banks belong to the Alice–Charlie and Bob–Charlie links. -/
structure ThreeCode (A CA B CB C : Type*)
    [Fintype A] [Fintype CA] [Fintype B] [Fintype CB] [Fintype C] (n : ℕ) where
  qa : ℕ
  qb : ℕ
  ka : ℕ
  kb : ℕ
  la : ℕ
  lb : ℕ
  alice : Superop ((Copies A n × Copies CA n) × Qubits ka)
    ((Copies A n × Qubits la) × Qubits qa)
  bob : Superop ((Copies B n × Copies CB n) × Qubits kb)
    ((Copies B n × Qubits lb) × Qubits qb)
  charlie : Superop (Qubits qa × (Qubits qb × (Copies C n × (Qubits ka × Qubits kb))))
    (((Copies CA n × Copies CB n) × Copies C n) × (Qubits la × Qubits lb))
  alice_channel : IsChannel alice
  bob_channel : IsChannel bob
  charlie_channel : IsChannel charlie

/-- PDF p.4: the actual all-operator joint action of the two local senders and
Charlie. Both transmitted message coherences are contracted, never discarded. -/
def threeForwardApply {X Y Z U V W M N : Type*}
    [Fintype X] [Fintype Y] [Fintype Z] [Fintype M] [Fintype N]
    (F : Superop X (U × M)) (G : Superop Y (V × N))
    (D : Superop (M × (N × Z)) W) : Superop (X × (Y × Z)) (U × (V × W)) :=
  fun rho p p' => ∑ x, ∑ x', ∑ y, ∑ y', ∑ z, ∑ z', ∑ m, ∑ m', ∑ t, ∑ t',
    rho (x, (y, z)) (x', (y', z')) *
    F (Matrix.single x x' 1) (p.1, m) (p'.1, m') *
    G (Matrix.single y y' 1) (p.2.1, t) (p'.2.1, t') *
    D (Matrix.single (m, (t, z)) (m', (t', z')) 1) p.2.2 p'.2.2

namespace ThreeCode

variable {A CA B CB C R : Type*}
variable [Fintype A] [Fintype CA] [Fintype B] [Fintype CB] [Fintype C] [Fintype R]
variable {n : ℕ} (P : ThreeCode A CA B CB C n)

/-- PDF p.4: source times the two independent initial Bell banks. -/
def initial (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    Matrix (Copies R n ×
      (((Copies A n × Copies CA n) × Qubits P.ka) ×
        (((Copies B n × Copies CB n) × Qubits P.kb) ×
          (Copies C n × (Qubits P.ka × Qubits P.kb)))))
      (Copies R n ×
      (((Copies A n × Copies CA n) × Qubits P.ka) ×
        (((Copies B n × Copies CB n) × Qubits P.kb) ×
          (Copies C n × (Qubits P.ka × Qubits P.kb))))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1 i, (p.2.1.1.1 i, (p.2.1.1.2 i,
      (p.2.2.1.1.1 i, (p.2.2.1.1.2 i, p.2.2.2.1 i)))))) *
    maxEntangled P.ka (p.2.1.2, p.2.2.2.2.1) *
    maxEntangled P.kb (p.2.2.1.2, p.2.2.2.2.2))

/-- PDF p.4: desired full state including both independent final Bell banks. -/
def redistributionTargetDensity (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    Matrix (Copies R n × ((Copies A n × Qubits P.la) ×
      ((Copies B n × Qubits P.lb) ×
        (((Copies CA n × Copies CB n) × Copies C n) × (Qubits P.la × Qubits P.lb)))))
      (Copies R n × ((Copies A n × Qubits P.la) ×
      ((Copies B n × Qubits P.lb) ×
        (((Copies CA n × Copies CB n) × Copies C n) × (Qubits P.la × Qubits P.lb))))) ℂ :=
  pureDensity (WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1 i, (p.2.1.1 i, (p.2.2.2.1.1.1 i,
      (p.2.2.1.1 i, (p.2.2.2.1.1.2 i, p.2.2.2.1.2 i)))))) *
    maxEntangled P.la (p.2.1.2, p.2.2.2.2.1) *
    maxEntangled P.lb (p.2.2.1.2, p.2.2.2.2.2))

/-- PDF p.4: full joint error of the actual finite three-party code. -/
def redistributionError (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) : ℝ :=
  traceNorm (idTensorSuperop (threeForwardApply P.alice P.bob P.charlie)
    (P.initial psi) - P.redistributionTargetDensity psi)

end ThreeCode

/-- PDF p.4: four operational rates with independent Bell accounting per link.
The definition does not mention an entropic region or an ordering strategy. -/
def ThreePartyAchievable {A CA B CB C R : Type*}
    [Fintype A] [Fintype CA] [Fintype B] [Fintype CB] [Fintype C] [Fintype R]
    (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) (rates : Fin 4 → ℝ) : Prop :=
  0 ≤ rates 0 ∧ 0 ≤ rates 1 ∧
    ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ,
      ∀ n ≥ N, 1 ≤ n → ∃ P : ThreeCode A CA B CB C n,
        P.redistributionError psi ≤ eps ∧
        (P.qa : ℝ) ≤ n * (rates 0 + delta) ∧
        (P.qb : ℝ) ≤ n * (rates 1 + delta) ∧
        (P.ka : ℝ) - P.la ≤ n * (rates 2 + delta) ∧
        (P.kb : ℝ) - P.lb ≤ n * (rates 3 + delta)

section ThreePartyCorners

variable {A CA B CB C R : Type*}
variable [Fintype A] [Fintype CA] [Fintype B] [Fintype CB] [Fintype C] [Fintype R]

/-- PDF p.4: Alice first. Bob's entire B C_B is inaccessible reference here. -/
def aliceFirst (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    EuclideanSpace ℂ (RedistributionSource A CA C (R × (B × CB))) :=
  WithLp.toLp 2 fun p => psi (p.1.1,
    (p.2.1, (p.2.2.1, (p.1.2.1, (p.1.2.2, p.2.2.2)))))

/-- PDF p.4: Bob second, with C_A C held by Charlie; A is reference. -/
def bobSecond (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    EuclideanSpace ℂ (RedistributionSource B CB (CA × C) (R × A)) :=
  WithLp.toLp 2 fun p => psi (p.1.1,
    (p.1.2, (p.2.2.2.1, (p.2.1, (p.2.2.1, p.2.2.2.2)))))

/-- PDF p.4: Bob first; A C_A is in this stage's reference. -/
def bobFirst (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    EuclideanSpace ℂ (RedistributionSource B CB C (R × (A × CA))) :=
  WithLp.toLp 2 fun p => psi (p.1.1,
    (p.1.2.1, (p.1.2.2, (p.2.1, (p.2.2.1, p.2.2.2)))))

/-- PDF p.4: Alice second, with C_B C held by Charlie; B is reference. -/
def aliceSecond (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) :
    EuclideanSpace ℂ (RedistributionSource A CA (CB × C) (R × B)) :=
  WithLp.toLp 2 fun p => psi (p.1.1,
    (p.2.1, (p.2.2.1, (p.1.2, p.2.2.2))))

/-- PDF p.4: corner obtained by Alice-to-Charlie, then Bob-to-Charlie. -/
def aliceFirstCorner (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) : Fin 4 → ℝ :=
  ![quantumCost (aliceFirst psi), quantumCost (bobSecond psi),
    redistributionEntanglementRate (aliceFirst psi), redistributionEntanglementRate (bobSecond psi)]

/-- PDF p.4: corner obtained in the opposite order, with the same link order. -/
def bobFirstCorner (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R)) : Fin 4 → ℝ :=
  ![quantumCost (aliceSecond psi), quantumCost (bobFirst psi),
    redistributionEntanglementRate (aliceSecond psi), redistributionEntanglementRate (bobFirst psi)]

/-- PDF p.4: convex time sharing of the two corners, plus the wasting and
qubit-for-ebit substitution cone on each link. This is an inner region only. -/
def InGeneratedRegion (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R))
    (rates : Fin 4 → ℝ) : Prop :=
  ∃ t : ℝ, 0 ≤ t ∧ t ≤ 1 ∧ ∃ d : Fin 4 → ℝ,
    0 ≤ d 0 ∧ 0 ≤ d 1 ∧ 0 ≤ d 0 + d 2 ∧ 0 ≤ d 1 + d 3 ∧
    ∀ i, rates i = t * aliceFirstCorner psi i + (1 - t) * bobFirstCorner psi i + d i

example (psi : EuclideanSpace ℂ (ThreeSource A CA B CB C R))
    (r : R) (a : A) (ca : CA) (b : B) (cb : CB) (c : C) :
    aliceFirst psi ((r,(b,cb)),(a,(ca,c))) =
      bobSecond psi ((r,a),(b,(cb,(ca,c)))) := by rfl

end ThreePartyCorners

end QAlgorithms.Papers.Independent.Gap48.P20
Source
The operational meaning of quantum conditional information, arXiv:quant-ph/0612050v2, https://arxiv.org/abs/quant-ph/0612050v2
Read-back

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

QAlgorithms.Papers.Independent.Gap48.P20.ClassicalAchievable

For arbitrary finite types A,C,B,RA,C,B,RA,C,B,R, any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), and c∈Rc\in\mathbb Rc∈R, this predicate means c≥0c\ge0c≥0 and that, for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, there is N∈NN\in\mathbb NN∈N such that every n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 admits natural numbers q,k,lq,k,lq,k,l and channels

F:(An×Cn)×Qk⟶(An×Ql)×Qq,G:Qq×(Bn×Qk)⟶(Cn×Bn)×QlF:(A^n\times C^n)\times\mathcal Q_k\longrightarrow (A^n\times\mathcal Q_l)\times\mathcal Q_q,\qquad G:\mathcal Q_q\times(B^n\times\mathcal Q_k)\longrightarrow (C^n\times B^n)\times\mathcal Q_lF:(An×Cn)×Qk​⟶(An×Ql​)×Qq​,G:Qq​×(Bn×Qk​)⟶(Cn×Bn)×Ql​

whose encoder satisfies F(Z)((u,m),(v,m′))=0F(Z)((u,m),(v,m'))=0F(Z)((u,m),(v,m′))=0 for every complex input matrix ZZZ, all u,v∈An×Qlu,v\in A^n\times\mathcal Q_lu,v∈An×Ql​, and all m≠m′m\ne m'm=m′ in Qq\mathcal Q_qQq​, and for which

Re⁡tr⁡D†D≤ε,q≤n(c+δ).\operatorname{Re}\operatorname{tr}\sqrt{D^\dagger D}\le\varepsilon,\qquad q\le n(c+\delta).RetrD†D​≤ε,q≤n(c+δ).

Here XnX^nXn is the type of length-nnn strings over XXX, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and each channel has a finite Kraus expression Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Put sn(r,a,c,b)=∏i=0n−1ψ(ri,(ai,(ci,bi)))s_n(r,a,c,b)=\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))sn​(r,a,c,b)=∏i=0n−1​ψ(ri​,(ai​,(ci​,bi​))). The matrix DDD is the output obtained from the outer product of sn2−k/21{u=v}s_n2^{-k/2}\mathbf1_{\{u=v\}}sn​2−k/21{u=v}​, by applying FFF to ((a,c),u)((a,c),u)((a,c),u) and then GGG to the resulting message together with (b,v)(b,v)(b,v), minus the outer product of the target vector sn2−l/21{u=v}s_n2^{-l/2}\mathbf1_{\{u=v\}}sn​2−l/21{u=v}​ on r,((a,u),((c,b),v))r,((a,u),((c,b),v))r,((a,u),((c,b),v)); the reference register is untouched. The square root uses continuous functional calculus. There is no bound on k−lk-lk−l, and ψ\psiψ need not be normalized. Empty finite types and zero q,k,lq,k,lq,k,l are allowed; when q=0q=0q=0, the distinct-message condition is vacuous.

QAlgorithms.Papers.Independent.Gap48.P20.ClassicalPairAchievable

For arbitrary finite types A,C,B,RA,C,B,RA,C,B,R, any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), and real numbers c,Ec,Ec,E, this predicate means c≥0c\ge0c≥0 and that, for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, some N∈NN\in\mathbb NN∈N has the following property: every n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 admits natural numbers q,k,lq,k,lq,k,l and finite Kraus channels

F:(An×Cn)×Qk⟶(An×Ql)×Qq,G:Qq×(Bn×Qk)⟶(Cn×Bn)×QlF:(A^n\times C^n)\times\mathcal Q_k\longrightarrow (A^n\times\mathcal Q_l)\times\mathcal Q_q,\qquad G:\mathcal Q_q\times(B^n\times\mathcal Q_k)\longrightarrow (C^n\times B^n)\times\mathcal Q_lF:(An×Cn)×Qk​⟶(An×Ql​)×Qq​,G:Qq​×(Bn×Qk​)⟶(Cn×Bn)×Ql​

such that F(Z)((u,m),(v,m′))=0F(Z)((u,m),(v,m'))=0F(Z)((u,m),(v,m′))=0 for every complex input matrix ZZZ, all u,v∈An×Qlu,v\in A^n\times\mathcal Q_lu,v∈An×Ql​, and all distinct m,m′∈Qqm,m'\in\mathcal Q_qm,m′∈Qq​, and

Re⁡tr⁡D†D≤ε,q≤n(c+δ),k−l≤n(E+δ).\operatorname{Re}\operatorname{tr}\sqrt{D^\dagger D}\le\varepsilon,\qquad q\le n(c+\delta),\qquad k-l\le n(E+\delta).RetrD†D​≤ε,q≤n(c+δ),k−l≤n(E+δ).

Here XnX^nXn denotes length-nnn strings over XXX, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and a finite Kraus channel is Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. For sn(r,a,c,b)=∏i=0n−1ψ(ri,(ai,(ci,bi)))s_n(r,a,c,b)=\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))sn​(r,a,c,b)=∏i=0n−1​ψ(ri​,(ai​,(ci​,bi​))), the matrix DDD is obtained by applying FFF and then GGG, with the reference untouched, to the outer product of the vector sn2−k/21{u=v}s_n2^{-k/2}\mathbf1_{\{u=v\}}sn​2−k/21{u=v}​, and subtracting the outer product of sn2−l/21{u=v}s_n2^{-l/2}\mathbf1_{\{u=v\}}sn​2−l/21{u=v}​ on the final registers r,((a,u),((c,b),v))r,((a,u),((c,b),v))r,((a,u),((c,b),v)). Initially the two kkk-bit strings lie beside (a,c)(a,c)(a,c) and bbb, respectively; the decoder receives the encoder’s qqq-bit message and the latter registers. The square root is by continuous functional calculus, and k−lk-lk−l is real subtraction. No normalization or nonemptiness assumption is made, EEE may have either sign, and zero q,k,lq,k,lq,k,l are permitted; for q=0q=0q=0, the condition on distinct messages is vacuous.

QAlgorithms.Papers.Independent.Gap48.P20.Copies

For any type XXX and natural number nnn, Copies(X,n)\mathrm{Copies}(X,n)Copies(X,n) is the type of functions {0,…,n−1}→X\{0,\ldots,n-1\}\to X{0,…,n−1}→X, that is, ordered nnn-tuples of elements of XXX. When n=0n=0n=0, this type contains exactly the empty tuple, even if XXX is empty.

QAlgorithms.Papers.Independent.Gap48.P20.InGeneratedRegion

For finite index types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R, any complex Euclidean vector ψ\psiψ on R,A,CA,B,CB,CR,A,C_A,B,C_B,CR,A,CA​,B,CB​,C, and any real vector v=(v0,v1,v2,v3)v=(v_0,v_1,v_2,v_3)v=(v0​,v1​,v2​,v3​), this predicate has the following meaning. Let H(U)=−Re⁡tr⁡(f(ρU))H(U)=-\operatorname{Re}\operatorname{tr}(f(\rho_U))H(U)=−Retr(f(ρU​)), where ρxy=ψ(x)ψ(y)‾\rho_{xy}=\psi(x)\overline{\psi(y)}ρxy​=ψ(x)ψ(y)​, ρU\rho_UρU​ is obtained by summing entries with prescribed UUU-coordinates and matching complementary coordinates, and f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x is applied by continuous functional calculus. For a grouping into sender register XXX, transferred register TTT, receiver register YYY, and remaining register ZZZ, define

Q(X,T,Y,Z)=H(TY)+H(ZY)−H(Y)−H(ZTY)2,E(X,T,Y,Z)=H(X)−H(XT)−H(Y)+H(TY)2,\mathcal Q(X,T,Y,Z)=\frac{H(TY)+H(ZY)-H(Y)-H(ZTY)}2, \qquad \mathcal E(X,T,Y,Z)=\frac{H(X)-H(XT)-H(Y)+H(TY)}2,Q(X,T,Y,Z)=2H(TY)+H(ZY)−H(Y)−H(ZTY)​,E(X,T,Y,Z)=2H(X)−H(XT)−H(Y)+H(TY)​,

and set

a=(Q(A,CA,C,RBCB), Q(B,CB,CAC,RA), E(A,CA,C,RBCB), E(B,CB,CAC,RA)),b=(Q(A,CA,CBC,RB), Q(B,CB,C,RACA), E(A,CA,CBC,RB), E(B,CB,C,RACA)).\begin{aligned} a={}&\bigl( \mathcal Q(A,C_A,C,RBC_B),\ \mathcal Q(B,C_B,C_AC,RA),\ \mathcal E(A,C_A,C,RBC_B),\ \mathcal E(B,C_B,C_AC,RA)\bigr),\\ b={}&\bigl( \mathcal Q(A,C_A,C_BC,RB),\ \mathcal Q(B,C_B,C,RAC_A),\ \mathcal E(A,C_A,C_BC,RB),\ \mathcal E(B,C_B,C,RAC_A)\bigr). \end{aligned}a=b=​(Q(A,CA​,C,RBCB​), Q(B,CB​,CA​C,RA), E(A,CA​,C,RBCB​), E(B,CB​,CA​C,RA)),(Q(A,CA​,CB​C,RB), Q(B,CB​,C,RACA​), E(A,CA​,CB​C,RB), E(B,CB​,C,RACA​)).​

The predicate says that there exist t∈[0,1]t\in[0,1]t∈[0,1] and d∈R4d\in\mathbb R^4d∈R4 such that

d0≥0,d1≥0,d0+d2≥0,d1+d3≥0,vi=t ai+(1−t)bi+di(i=0,1,2,3).d_0\ge0,\qquad d_1\ge0,\qquad d_0+d_2\ge0,\qquad d_1+d_3\ge0, \qquad v_i=t\,a_i+(1-t)b_i+d_i\quad(i=0,1,2,3).d0​≥0,d1​≥0,d0​+d2​≥0,d1​+d3​≥0,vi​=tai​+(1−t)bi​+di​(i=0,1,2,3).

The endpoints t=0,1t=0,1t=0,1 are allowed, and d2,d3d_2,d_3d2​,d3​ may be negative subject to the displayed inequalities. No normalization or nonemptiness assumption is imposed.

QAlgorithms.Papers.Independent.Gap48.P20.RedistributionAchievable

For arbitrary finite types A,C,B,RA,C,B,RA,C,B,R, any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), and real numbers Q,EQ,EQ,E, this predicate means Q≥0Q\ge0Q≥0 and the following: for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, there is N∈NN\in\mathbb NN∈N such that, for every n≥Nn\ge Nn≥N with n≥1n\ge1n≥1, there are natural numbers q,k,lq,k,lq,k,l and channels

F:(An×Cn)×Qk⟶(An×Ql)×Qq,G:Qq×(Bn×Qk)⟶(Cn×Bn)×QlF:(A^n\times C^n)\times\mathcal Q_k\longrightarrow (A^n\times\mathcal Q_l)\times\mathcal Q_q,\qquad G:\mathcal Q_q\times(B^n\times\mathcal Q_k)\longrightarrow (C^n\times B^n)\times\mathcal Q_lF:(An×Cn)×Qk​⟶(An×Ql​)×Qq​,G:Qq​×(Bn×Qk​)⟶(Cn×Bn)×Ql​

satisfying

Re⁡tr⁡D†D≤ε,q≤n(Q+δ),k−l≤n(E+δ).\operatorname{Re}\operatorname{tr}\sqrt{D^\dagger D}\le\varepsilon,\qquad q\le n(Q+\delta),\qquad k-l\le n(E+\delta).RetrD†D​≤ε,q≤n(Q+δ),k−l≤n(E+δ).

Here XnX^nXn means length-nnn strings over XXX, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and a channel acts on matrices by a finite Kraus sum Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. To define DDD, put sn(r,a,c,b)=∏i=0n−1ψ(ri,(ai,(ci,bi)))s_n(r,a,c,b)=\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))sn​(r,a,c,b)=∏i=0n−1​ψ(ri​,(ai​,(ci​,bi​))). Start with the outer product of the vector sn(r,a,c,b)2−k/21{u=v}s_n(r,a,c,b)2^{-k/2}\mathbf1_{\{u=v\}}sn​(r,a,c,b)2−k/21{u=v}​, where the two kkk-bit registers are respectively beside (a,c)(a,c)(a,c) and bbb. Apply FFF, then GGG to the message and the latter registers, preserving rrr; subtract the outer product of the target vector sn(r,a,c,b)2−l/21{u=v}s_n(r,a,c,b)2^{-l/2}\mathbf1_{\{u=v\}}sn​(r,a,c,b)2−l/21{u=v}​, whose two lll-bit registers are respectively beside aaa and (c,b)(c,b)(c,b). This difference is DDD, and its matrix square root above is defined by continuous functional calculus. The subtraction k−lk-lk−l is real and may be negative. No normalization of ψ\psiψ, nonemptiness of the finite types, or sign restriction on EEE is imposed; q,k,lq,k,lq,k,l may be zero, and the requirement concerns only positive block lengths.

QAlgorithms.Papers.Independent.Gap48.P20.RedistributionSource

For arbitrary types A,C,B,RA,C,B,RA,C,B,R, RedistributionSource(A,C,B,R)\mathrm{RedistributionSource}(A,C,B,R)RedistributionSource(A,C,B,R) is the product type R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)). Its elements have the form (r,(a,(c,b)))(r,(a,(c,b)))(r,(a,(c,b))); no finiteness or nonemptiness assumptions are imposed by this abbreviation.

QAlgorithms.Papers.Independent.Gap48.P20.ReversiblyAchievable

For finite types A,C,B,RA,C,B,RA,C,B,R, any complex vector ψ\psiψ indexed by R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), and real numbers Q,EQ,EQ,E, this predicate means that Q≥0Q\ge0Q≥0 and, for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, there exists N∈NN\in\mathbb NN∈N such that every n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 admits the following code. It has natural numbers q,k,l,wAin,wAout,wBin,wBoutq,k,l,w_A^{\rm in},w_A^{\rm out},w_B^{\rm in},w_B^{\rm out}q,k,l,wAin​,wAout​,wBin​,wBout​, an encoder from ((An×Cn)×{0,1}k)×Fin⁡(wAin+1)((A^n\times C^n)\times\{0,1\}^k)\times\operatorname{Fin}(w_A^{\rm in}+1)((An×Cn)×{0,1}k)×Fin(wAin​+1) to ((An×{0,1}l)×Fin⁡(wAout+1))×{0,1}q((A^n\times\{0,1\}^l)\times\operatorname{Fin}(w_A^{\rm out}+1))\times\{0,1\}^q((An×{0,1}l)×Fin(wAout​+1))×{0,1}q, and a decoder from {0,1}q×((Bn×{0,1}k)×Fin⁡(wBin+1))\{0,1\}^q\times((B^n\times\{0,1\}^k)\times\operatorname{Fin}(w_B^{\rm in}+1)){0,1}q×((Bn×{0,1}k)×Fin(wBin​+1)) to ((Cn×Bn)×{0,1}l)×Fin⁡(wBout+1)((C^n\times B^n)\times\{0,1\}^l)\times\operatorname{Fin}(w_B^{\rm out}+1)((Cn×Bn)×{0,1}l)×Fin(wBout​+1); both matrices satisfy U†U=UU†=1U^\dagger U=UU^\dagger=1U†U=UU†=1. Let GGG preserve r∈Rnr\in R^nr∈Rn and have entries 1r=r′∑mEenc(u,m;x)Ddec(v;m,y)\mathbf1_{r=r'}\sum_m E_{\rm enc}(u,m;x)D_{\rm dec}(v;m,y)1r=r′​∑m​Eenc​(u,m;x)Ddec​(v;m,y). Let iψi_\psiiψ​ and tψt_\psitψ​ have source amplitude ∏j<nψ(rj,(aj,(cj,bj)))\prod_{j<n}\psi(r_j,(a_j,(c_j,b_j)))∏j<n​ψ(rj​,(aj​,(cj​,bj​))), all respective workspace labels zero, and entangled-register factors 1s=t/2k\mathbf1_{s=t}/\sqrt{2^k}1s=t​/2k​ and 1s=t/2l\mathbf1_{s=t}/\sqrt{2^l}1s=t​/2l​, respectively; initially Alice holds (a,c)(a,c)(a,c) and Bob holds bbb, and in the target Alice holds aaa and Bob holds (c,b)(c,b)(c,b). The requirements are

∥∣Giψ⟩⟨Giψ∣−∣tψ⟩⟨tψ∣∥1≤ε,∥∣G†tψ⟩⟨G†tψ∣−∣iψ⟩⟨iψ∣∥1≤ε,q≤n(Q+δ),k−l≤n(E+δ),l−k≤n(−E+δ).\begin{gathered} \bigl\||Gi_\psi\rangle\langle Gi_\psi|-|t_\psi\rangle\langle t_\psi|\bigr\|_1\le\varepsilon, \qquad \bigl\||G^\dagger t_\psi\rangle\langle G^\dagger t_\psi|-|i_\psi\rangle\langle i_\psi|\bigr\|_1\le\varepsilon,\\ q\le n(Q+\delta),\qquad k-l\le n(E+\delta),\qquad l-k\le n(-E+\delta). \end{gathered}​∣Giψ​⟩⟨Giψ​∣−∣tψ​⟩⟨tψ​∣​1​≤ε,​∣G†tψ​⟩⟨G†tψ​∣−∣iψ​⟩⟨iψ​∣​1​≤ε,q≤n(Q+δ),k−l≤n(E+δ),l−k≤n(−E+δ).​

Here Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X, (∣v⟩⟨v∣)xy=vxvy‾(|v\rangle\langle v|)_{xy}=v_x\overline{v_y}(∣v⟩⟨v∣)xy​=vx​vy​​, and ∥Z∥1=Re⁡Tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}∥Z∥1​=ReTrZ†Z​, using real continuous functional calculus. The last two inequalities together say ∣k−l−nE∣≤nδ|k-l-nE|\le n\delta∣k−l−nE∣≤nδ. There is no normalization hypothesis on ψ\psiψ, no sign restriction on EEE, and no requirement at block length zero; the finite types may be empty.

QAlgorithms.Papers.Independent.Gap48.P20.SuccessivelyAchievable

For finite types A,C,D,B,RA,C,D,B,RA,C,D,B,R, any complex vector ψ\psiψ indexed by R×A×C×D×BR\times A\times C\times D\times BR×A×C×D×B, and any real numbers QD,ED,QC,ECQ_D,E_D,Q_C,E_CQD​,ED​,QC​,EC​, this predicate means that for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, there is a natural number NNN such that for every natural n≥Nn\ge Nn≥N with n≥1n\ge1n≥1, there exist transfer codes PPP for (A×C,D,B)(A\times C,D,B)(A×C,D,B) and TTT for (A,C,D×B)(A,C,D\times B)(A,C,D×B) satisfying

err⁡P≤ε/2,err⁡T≤ε/2,err⁡P,T≤ε,\operatorname{err}_P\le\varepsilon/2,\qquad \operatorname{err}_T\le\varepsilon/2,\qquad \operatorname{err}_{P,T}\le\varepsilon,errP​≤ε/2,errT​≤ε/2,errP,T​≤ε, P.q≤n(QD+δ),P.k−P.l≤n(ED+δ),T.q≤n(QC+δ),T.k−T.l≤n(EC+δ).P.q\le n(Q_D+\delta),\quad P.k-P.l\le n(E_D+\delta),\qquad T.q\le n(Q_C+\delta),\quad T.k-T.l\le n(E_C+\delta).P.q≤n(QD​+δ),P.k−P.l≤n(ED​+δ),T.q≤n(QC​+δ),T.k−T.l≤n(EC​+δ).

All code parameters are natural numbers, but the subtractions k−lk-lk−l in these inequalities are real subtractions and may be negative. A transfer code for (X,Z,Y)(X,Z,Y)(X,Z,Y) consists of these parameters and channels from (Xn×Zn)×{0,1}k(X^n\times Z^n)\times\{0,1\}^k(Xn×Zn)×{0,1}k to (Xn×{0,1}l)×{0,1}q(X^n\times\{0,1\}^l)\times\{0,1\}^q(Xn×{0,1}l)×{0,1}q, and from {0,1}q×(Yn×{0,1}k)\{0,1\}^q\times(Y^n\times\{0,1\}^k){0,1}q×(Yn×{0,1}k) to (Zn×Yn)×{0,1}l(Z^n\times Y^n)\times\{0,1\}^l(Zn×Yn)×{0,1}l; a channel has a finite Kraus representation with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. For each individual error, initialize the source with amplitudes ∏i<nψ(ri,ai,ci,di,bi)\prod_{i<n}\psi(r_i,a_i,c_i,d_i,b_i)∏i<n​ψ(ri​,ai​,ci​,di​,bi​) and an entangled pair having coefficients 2−k/21s=t2^{-k/2}\mathbf1_{s=t}2−k/21s=t​, apply the encoder and then the decoder while retaining all other registers, and compare the resulting matrix with the rank-one matrix of the unchanged source amplitudes and an entangled pair with coefficients 2−l/21s=t2^{-l/2}\mathbf1_{s=t}2−l/21s=t​. For PPP, the retained, transferred, and receiver source registers are respectively AC,D,BAC,D,BAC,D,B; for TTT, they are A,C,DBA,C,DBA,C,DB, using the same original ψ\psiψ with that grouping. The sequential error initializes both codes’ kkk-pairs, applies PPP, regroups ACACAC into A,CA,CA,C and D,BD,BD,B into DBDBDB, applies TTT, and compares with the rank-one matrix of the unchanged source and both lll-pairs, retaining PPP’s final pair as spectators during TTT. Each comparison uses

∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​

of the output-minus-target matrix; a rank-one matrix of a vector vvv has entries vivj‾v_i\overline{v_j}vi​vj​​. There is no normalization hypothesis on ψ\psiψ and no separate nonnegativity requirement on any of the four proposed rates.

QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode.initial

For finite types A,CA,B,CB,CA,C_A,B,C_B,CA,CA​,B,CB​,C, a type RRR, n∈Nn\in\mathbb Nn∈N, a three-party code PPP having natural resource counts qA,qB,kA,kB,lA,lBq_A,q_B,k_A,k_B,l_A,l_BqA​,qB​,kA​,kB​,lA​,lB​ and its three channels, and any vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines the matrix ∣v⟩⟨v∣|v\rangle\langle v|∣v⟩⟨v∣, meaning that its (p,p′)(p,p')(p,p′)-entry is v(p)v(p′)‾v(p)\overline{v(p')}v(p)v(p′)​. Its basis labels are

p=(r, (((a,aC),u), (((b,bC),vB), (c,(u′,vB′))))),p=\bigl(r,\ (((a,a_C),u),\ (((b,b_C),v_B),\ (c,(u',v_B'))))\bigr),p=(r, (((a,aC​),u), (((b,bC​),vB​), (c,(u′,vB′​))))),

where r∈Rnr\in R^nr∈Rn, a∈Ana\in A^na∈An, aC∈CAna_C\in C_A^naC​∈CAn​, b∈Bnb\in B^nb∈Bn, bC∈CBnb_C\in C_B^nbC​∈CBn​, c∈Cnc\in C^nc∈Cn, u,u′∈{0,1}kAu,u'\in\{0,1\}^{k_A}u,u′∈{0,1}kA​, and vB,vB′∈{0,1}kBv_B,v_B'\in\{0,1\}^{k_B}vB​,vB′​∈{0,1}kB​, with Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X. The defining amplitude is

v(p)=(∏i=0n−1ψ(ri,(ai,((aC)i,(bi,((bC)i,ci))))))1u=u′2kA1vB=vB′2kB.v(p)= \left(\prod_{i=0}^{n-1} \psi(r_i,(a_i,((a_C)_i,(b_i,((b_C)_i,c_i)))))\right) \frac{\mathbf1_{u=u'}}{\sqrt{2^{k_A}}} \frac{\mathbf1_{v_B=v_B'}}{\sqrt{2^{k_B}}}.v(p)=(i=0∏n−1​ψ(ri​,(ai​,((aC​)i​,(bi​,((bC​)i​,ci​))))))2kA​​1u=u′​​2kB​​1vB​=vB′​​​.

No normalization hypothesis on ψ\psiψ is imposed, so the name does not itself assert that this matrix has trace 111. The three channels and the other four resource counts do not enter the formula. At n=0n=0n=0 the source-amplitude product is 111, and a zero entanglement count gives the unique empty bit string with factor 111.

QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode

For finite types A,CA,B,CB,CA,C_A,B,C_B,CA,CA​,B,CB​,C and n∈Nn\in\mathbb Nn∈N, this structure consists of six natural numbers qA,qB,kA,kB,lA,lBq_A,q_B,k_A,k_B,l_A,l_BqA​,qB​,kA​,kB​,lA​,lB​ and three maps on complex square matrices, with register domains and codomains

A:(An×CAn)×{0,1}kA⟶(An×{0,1}lA)×{0,1}qA,B:(Bn×CBn)×{0,1}kB⟶(Bn×{0,1}lB)×{0,1}qB,C:{0,1}qA×({0,1}qB×(Cn×({0,1}kA×{0,1}kB)))⟶((CAn×CBn)×Cn)×({0,1}lA×{0,1}lB).\begin{aligned} \mathcal A &: (A^n\times C_A^n)\times\{0,1\}^{k_A} \longrightarrow (A^n\times\{0,1\}^{l_A})\times\{0,1\}^{q_A},\\ \mathcal B &: (B^n\times C_B^n)\times\{0,1\}^{k_B} \longrightarrow (B^n\times\{0,1\}^{l_B})\times\{0,1\}^{q_B},\\ \mathcal C &: \{0,1\}^{q_A}\times \bigl(\{0,1\}^{q_B}\times(C^n\times(\{0,1\}^{k_A}\times\{0,1\}^{k_B}))\bigr) \longrightarrow ((C_A^n\times C_B^n)\times C^n)\times (\{0,1\}^{l_A}\times\{0,1\}^{l_B}). \end{aligned}ABC​:(An×CAn​)×{0,1}kA​⟶(An×{0,1}lA​)×{0,1}qA​,:(Bn×CBn​)×{0,1}kB​⟶(Bn×{0,1}lB​)×{0,1}qB​,:{0,1}qA​×({0,1}qB​×(Cn×({0,1}kA​×{0,1}kB​)))⟶((CAn​×CBn​)×Cn)×({0,1}lA​×{0,1}lB​).​

An arrow X→YX\to YX→Y here denotes a function from matrices indexed by X×XX\times XX×X to matrices indexed by Y×YY\times YY×Y, not a function between basis labels. Each of these three maps must admit a finite Kraus representation: for some h∈Nh\in\mathbb Nh∈N and matrices KjK_jKj​, indexed by 0≤j<h0\le j<h0≤j<h, it acts on every matrix ρ\rhoρ as ∑jKjρKj†\sum_jK_j\rho K_j^\dagger∑j​Kj​ρKj†​, with ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1. Here Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X and {0,1}s=Fin⁡(s)→{false,true}\{0,1\}^s=\operatorname{Fin}(s)\to\{\mathrm{false},\mathrm{true}\}{0,1}s=Fin(s)→{false,true}. All resource counts and nnn may be zero, the finite types may be empty, and the structure imposes no source-dependent accuracy or resource inequalities.

QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode.redistributionError

For finite types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R, n∈Nn\in\mathbb Nn∈N, a three-party code PPP, and any vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines

Re⁡Tr⁡Z†Z,Z=(id⁡Rn⊗TP)(∣v⟩⟨v∣)−∣t⟩⟨t∣.\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}, \qquad Z=(\operatorname{id}_{R^n}\otimes\mathcal T_P)(|v\rangle\langle v|) -|t\rangle\langle t|.ReTrZ†Z​,Z=(idRn​⊗TP​)(∣v⟩⟨v∣)−∣t⟩⟨t∣.

Here ∣w⟩⟨w∣|w\rangle\langle w|∣w⟩⟨w∣ has entries wxwy‾w_x\overline{w_y}wx​wy​​, and the square root is real continuous functional calculus. Write Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X and Φs(u,u′)=1u=u′/2s\Phi_s(u,u')=\mathbf1_{u=u'}/\sqrt{2^s}Φs​(u,u′)=1u=u′​/2s​. The input amplitude, with registers ordered as RnR^nRn, Alice’s (An,CAn,{0,1}kA)(A^n,C_A^n,\{0,1\}^{k_A})(An,CAn​,{0,1}kA​), Bob’s (Bn,CBn,{0,1}kB)(B^n,C_B^n,\{0,1\}^{k_B})(Bn,CBn​,{0,1}kB​), and Charlie’s (Cn,{0,1}kA,{0,1}kB)(C^n,\{0,1\}^{k_A},\{0,1\}^{k_B})(Cn,{0,1}kA​,{0,1}kB​), is

v=(∏i<nψ(ri,(ai,((aC)i,(bi,((bC)i,ci))))))ΦkA(u,u′)ΦkB(vB,vB′).v=\left(\prod_{i<n}\psi(r_i,(a_i,((a_C)_i,(b_i,((b_C)_i,c_i)))))\right) \Phi_{k_A}(u,u')\Phi_{k_B}(v_B,v_B').v=(i<n∏​ψ(ri​,(ai​,((aC​)i​,(bi​,((bC​)i​,ci​))))))ΦkA​​(u,u′)ΦkB​​(vB​,vB′​).

The target has the same source-amplitude product, factors ΦlA(u,u′)ΦlB(vB,vB′)\Phi_{l_A}(u,u')\Phi_{l_B}(v_B,v_B')ΦlA​​(u,u′)ΦlB​​(vB​,vB′​), and register order RnR^nRn, Alice’s (An,{0,1}lA)(A^n,\{0,1\}^{l_A})(An,{0,1}lA​), Bob’s (Bn,{0,1}lB)(B^n,\{0,1\}^{l_B})(Bn,{0,1}lB​), and Charlie’s (CAn,CBn,Cn,{0,1}lA,{0,1}lB)(C_A^n,C_B^n,C^n,\{0,1\}^{l_A},\{0,1\}^{l_B})(CAn​,CBn​,Cn,{0,1}lA​,{0,1}lB​). The map TP\mathcal T_PTP​ applies Alice’s channel to her input and Bob’s channel to his input, retains their respective An,lAA^n,l_AAn,lA​ and Bn,lBB^n,l_BBn,lB​ outputs, and applies Charlie’s channel to their qAq_AqA​- and qBq_BqB​-qubit messages together with Charlie’s input. Explicitly, if these channels have Kraus matrices Fa,Gb,DcF_a,G_b,D_cFa​,Gb​,Dc​, each family satisfying ∑K†K=1\sum K^\dagger K=1∑K†K=1, then TP(ρ)=∑a,b,cHabcρHabc†\mathcal T_P(\rho)=\sum_{a,b,c}H_{abc}\rho H_{abc}^\daggerTP​(ρ)=∑a,b,c​Habc​ρHabc†​, where

(Habc)(u,(v,w)),(x,(y,z))=∑m∈{0,1}qA∑h∈{0,1}qB(Fa)(u,m),x(Gb)(v,h),y(Dc)w,(m,(h,z)).(H_{abc})_{(u,(v,w)),(x,(y,z))} =\sum_{m\in\{0,1\}^{q_A}}\sum_{h\in\{0,1\}^{q_B}} (F_a)_{(u,m),x}(G_b)_{(v,h),y}(D_c)_{w,(m,(h,z))}.(Habc​)(u,(v,w)),(x,(y,z))​=m∈{0,1}qA​∑​h∈{0,1}qB​∑​(Fa​)(u,m),x​(Gb​)(v,h),y​(Dc​)w,(m,(h,z))​.

The identity on RnR^nRn means applying this map separately to each reference-index block. No normalization of ψ\psiψ is required; nnn and all six resource counts may be zero, with empty products equal to 111. This is the full displayed trace norm, without a factor of 1/21/21/2.

QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode.redistributionTargetDensity

For finite types A,CA,B,CB,CA,C_A,B,C_B,CA,CA​,B,CB​,C, a type RRR, n∈Nn\in\mathbb Nn∈N, a three-party code PPP with natural resource counts qA,qB,kA,kB,lA,lBq_A,q_B,k_A,k_B,l_A,l_BqA​,qB​,kA​,kB​,lA​,lB​ and its three channels, and any vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines the matrix ∣t⟩⟨t∣|t\rangle\langle t|∣t⟩⟨t∣, whose entries are t(p)t(p′)‾t(p)\overline{t(p')}t(p)t(p′)​. Its basis labels are

p=(r, ((a,u), ((b,vB), (((aC,bC),c),(u′,vB′))))),p=\bigl(r,\ ((a,u),\ ((b,v_B),\ (((a_C,b_C),c),(u',v_B'))))\bigr),p=(r, ((a,u), ((b,vB​), (((aC​,bC​),c),(u′,vB′​))))),

where r∈Rnr\in R^nr∈Rn, a∈Ana\in A^na∈An, b∈Bnb\in B^nb∈Bn, aC∈CAna_C\in C_A^naC​∈CAn​, bC∈CBnb_C\in C_B^nbC​∈CBn​, c∈Cnc\in C^nc∈Cn, u,u′∈{0,1}lAu,u'\in\{0,1\}^{l_A}u,u′∈{0,1}lA​, and vB,vB′∈{0,1}lBv_B,v_B'\in\{0,1\}^{l_B}vB​,vB′​∈{0,1}lB​, with Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X. The amplitude is

t(p)=(∏i=0n−1ψ(ri,(ai,((aC)i,(bi,((bC)i,ci))))))1u=u′2lA1vB=vB′2lB.t(p)= \left(\prod_{i=0}^{n-1} \psi(r_i,(a_i,((a_C)_i,(b_i,((b_C)_i,c_i)))))\right) \frac{\mathbf1_{u=u'}}{\sqrt{2^{l_A}}} \frac{\mathbf1_{v_B=v_B'}}{\sqrt{2^{l_B}}}.t(p)=(i=0∏n−1​ψ(ri​,(ai​,((aC​)i​,(bi​,((bC​)i​,ci​))))))2lA​​1u=u′​​2lB​​1vB​=vB′​​​.

No normalization of ψ\psiψ is assumed. Only lA,lBl_A,l_BlA​,lB​ among the code’s resource counts enter this formula, and none of its channels does. At n=0n=0n=0 the product is 111; when either entanglement count is zero, its bit-string register is a singleton and its displayed factor is 111.

QAlgorithms.Papers.Independent.Gap48.P20.ThreePartyAchievable

For finite types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R, any vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), and four real numbers (r0,r1,r2,r3)(r_0,r_1,r_2,r_3)(r0​,r1​,r2​,r3​), this predicate means r0,r1≥0r_0,r_1\ge0r0​,r1​≥0 and the following: for every ε,δ>0\varepsilon,\delta>0ε,δ>0, there is N∈NN\in\mathbb NN∈N such that every n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 admits natural counts qA,qB,kA,kB,lA,lBq_A,q_B,k_A,k_B,l_A,l_BqA​,qB​,kA​,kB​,lA​,lB​ and channels

A:(An×CAn)×{0,1}kA⟶(An×{0,1}lA)×{0,1}qA,B:(Bn×CBn)×{0,1}kB⟶(Bn×{0,1}lB)×{0,1}qB,C:{0,1}qA×({0,1}qB×(Cn×({0,1}kA×{0,1}kB)))⟶((CAn×CBn)×Cn)×({0,1}lA×{0,1}lB).\begin{aligned} \mathcal A &: (A^n\times C_A^n)\times\{0,1\}^{k_A} \longrightarrow (A^n\times\{0,1\}^{l_A})\times\{0,1\}^{q_A},\\ \mathcal B &: (B^n\times C_B^n)\times\{0,1\}^{k_B} \longrightarrow (B^n\times\{0,1\}^{l_B})\times\{0,1\}^{q_B},\\ \mathcal C &: \{0,1\}^{q_A}\times \bigl(\{0,1\}^{q_B}\times(C^n\times(\{0,1\}^{k_A}\times\{0,1\}^{k_B}))\bigr) \longrightarrow ((C_A^n\times C_B^n)\times C^n)\times (\{0,1\}^{l_A}\times\{0,1\}^{l_B}). \end{aligned}ABC​:(An×CAn​)×{0,1}kA​⟶(An×{0,1}lA​)×{0,1}qA​,:(Bn×CBn​)×{0,1}kB​⟶(Bn×{0,1}lB​)×{0,1}qB​,:{0,1}qA​×({0,1}qB​×(Cn×({0,1}kA​×{0,1}kB​)))⟶((CAn​×CBn​)×Cn)×({0,1}lA​×{0,1}lB​).​

Each channel acts on matrices and has a finite representation ρ↦∑jKjρKj†\rho\mapsto\sum_jK_j\rho K_j^\daggerρ↦∑j​Kj​ρKj†​ with ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1. Starting from the pure matrix whose vector has amplitude

(∏i<nψ(ri,(ai,((aC)i,(bi,((bC)i,ci))))))1u=u′2kA1v=v′2kB,\left(\prod_{i<n}\psi(r_i,(a_i,((a_C)_i,(b_i,((b_C)_i,c_i)))))\right) \frac{\mathbf1_{u=u'}}{\sqrt{2^{k_A}}} \frac{\mathbf1_{v=v'}}{\sqrt{2^{k_B}}},(i<n∏​ψ(ri​,(ai​,((aC​)i​,(bi​,((bC​)i​,ci​))))))2kA​​1u=u′​​2kB​​1v=v′​​,

Alice holds (An,CAn,u)(A^n,C_A^n,u)(An,CAn​,u), Bob holds (Bn,CBn,v)(B^n,C_B^n,v)(Bn,CBn​,v), Charlie holds (Cn,u′,v′)(C^n,u',v')(Cn,u′,v′), and RnR^nRn is unchanged. Apply Alice’s and Bob’s channels, then Charlie’s channel to their two messages and Charlie’s input. The resulting matrix must differ, by trace norm at most ε\varepsilonε, from the pure matrix with the same source-amplitude product, pair factors 1u=u′/2lA\mathbf1_{u=u'}/\sqrt{2^{l_A}}1u=u′​/2lA​​ and 1v=v′/2lB\mathbf1_{v=v'}/\sqrt{2^{l_B}}1v=v′​/2lB​​, and registers allocated as Alice’s (An,u)(A^n,u)(An,u), Bob’s (Bn,v)(B^n,v)(Bn,v), and Charlie’s (CAn,CBn,Cn,u′,v′)(C_A^n,C_B^n,C^n,u',v')(CAn​,CBn​,Cn,u′,v′). The resource requirements are

qA≤n(r0+δ),qB≤n(r1+δ),kA−lA≤n(r2+δ),kB−lB≤n(r3+δ).q_A\le n(r_0+\delta),\qquad q_B\le n(r_1+\delta),\qquad k_A-l_A\le n(r_2+\delta),\qquad k_B-l_B\le n(r_3+\delta).qA​≤n(r0​+δ),qB​≤n(r1​+δ),kA​−lA​≤n(r2​+δ),kB​−lB​≤n(r3​+δ).

Here Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X, a pure matrix has entries wxwy‾w_x\overline{w_y}wx​wy​​, and the trace norm is Re⁡Tr⁡Z†Z\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}ReTrZ†Z​, using real continuous functional calculus and no factor of 1/21/21/2. Neither r2r_2r2​ nor r3r_3r3​ is required to be nonnegative, their resource bounds are only upper bounds, and ψ\psiψ is not required to have norm 111. Empty finite types are included; block length zero is excluded from the eventual requirement.

QAlgorithms.Papers.Independent.Gap48.P20.ThreeSource

For arbitrary types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R, this abbreviates the type

R×(A×(CA×(B×(CB×C)))).R\times\bigl(A\times(C_A\times(B\times(C_B\times C)))\bigr).R×(A×(CA​×(B×(CB​×C)))).

Thus an element is exactly a nested tuple (r,(a,(aC,(b,(bC,c)))))(r,(a,(a_C,(b,(b_C,c)))))(r,(a,(aC​,(b,(bC​,c))))) with r∈Rr\in Rr∈R, a∈Aa\in Aa∈A, aC∈CAa_C\in C_AaC​∈CA​, b∈Bb\in Bb∈B, bC∈CBb_C\in C_BbC​∈CB​, and c∈Cc\in Cc∈C. There are no finiteness, nonemptiness, normalization, or other conditions.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.HasRedistributionClassicalMessage

For finite types A,C,BA,C,BA,C,B, n∈Nn\in\mathbb Nn∈N, and a transfer code PPP with natural parameters q,k,lq,k,lq,k,l, this predicate requires every output of its encoder to have zero entries between distinct message strings. Explicitly, write Xn={0,…,n−1}→XX^n=\{0,\ldots,n-1\}\to XXn={0,…,n−1}→X and Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j. The code has an encoder channel FFF from (An×Cn)×Qk(A^n\times C^n)\times\mathcal Q_k(An×Cn)×Qk​ to (An×Ql)×Qq(A^n\times\mathcal Q_l)\times\mathcal Q_q(An×Ql​)×Qq​, and a decoder channel from Qq×(Bn×Qk)\mathcal Q_q\times(B^n\times\mathcal Q_k)Qq​×(Bn×Qk​) to (Cn×Bn)×Ql(C^n\times B^n)\times\mathcal Q_l(Cn×Bn)×Ql​; each is of the form Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ for a finite family with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The predicate is

∀Z, ∀u,v∈An×Ql, ∀m,m′∈Qq,m≠m′ ⟹ F(Z)((u,m),(v,m′))=0,\forall Z,\ \forall u,v\in A^n\times\mathcal Q_l,\ \forall m,m'\in\mathcal Q_q,\qquad m\ne m'\ \Longrightarrow\ F(Z)((u,m),(v,m'))=0,∀Z, ∀u,v∈An×Ql​, ∀m,m′∈Qq​,m=m′ ⟹ F(Z)((u,m),(v,m′))=0,

where ZZZ ranges over all complex square matrices on the encoder input, without positivity or trace restrictions. When q=0q=0q=0, there is only one message string, so the condition holds vacuously.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.initial

For finite types A,C,BA,C,BA,C,B, a type RRR, a natural number nnn, a transfer code PPP at nnn, and any complex Euclidean vector ψ\psiψ on R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), the defined initial matrix is indexed by tuples p=(r,((a,c),s),(b,t))p=(r,((a,c),s),(b,t))p=(r,((a,c),s),(b,t)), grouped as r∈Rnr\in R^nr∈Rn, ((a,c),s)∈(An×Cn)×{0,1}P.k((a,c),s)\in(A^n\times C^n)\times\{0,1\}^{P.k}((a,c),s)∈(An×Cn)×{0,1}P.k, and (b,t)∈Bn×{0,1}P.k(b,t)\in B^n\times\{0,1\}^{P.k}(b,t)∈Bn×{0,1}P.k. The code has natural fields P.q,P.k,P.lP.q,P.k,P.lP.q,P.k,P.l and encoder and decoder maps with finite Kraus representations satisfying ∑jEj†Ej=I\sum_jE_j^\dagger E_j=I∑j​Ej†​Ej​=I, on the input and output registers described by those fields. Define

v(p)=(∏i=0n−1ψ(ri,(ai,(ci,bi)))){(2P.k)−1,s=t,0,s≠t.v(p)= \left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))\right) \begin{cases} (\sqrt{2^{P.k}})^{-1},&s=t,\\ 0,&s\ne t. \end{cases}v(p)=(i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​)))){(2P.k​)−1,0,​s=t,s=t.​

Then the initial matrix has entries v(p)v(p′)‾v(p)\overline{v(p')}v(p)v(p′)​. No normalization assumption is imposed on ψ\psiψ. For n=0n=0n=0, the source product is 111; for P.k=0P.k=0P.k=0, the Boolean registers each contain only the empty string and the displayed entangled-state factor is 111.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode

For finite types A,C,BA,C,BA,C,B and a natural number nnn, a transfer code consists of natural numbers q,k,lq,k,lq,k,l, an encoder mapping complex matrices on (An×Cn)×{0,1}k(A^n\times C^n)\times\{0,1\}^k(An×Cn)×{0,1}k to complex matrices on (An×{0,1}l)×{0,1}q(A^n\times\{0,1\}^l)\times\{0,1\}^q(An×{0,1}l)×{0,1}q, and a decoder mapping complex matrices on {0,1}q×(Bn×{0,1}k)\{0,1\}^q\times(B^n\times\{0,1\}^k){0,1}q×(Bn×{0,1}k) to complex matrices on (Cn×Bn)×{0,1}l(C^n\times B^n)\times\{0,1\}^l(Cn×Bn)×{0,1}l. Here XnX^nXn means functions {0,…,n−1}→X\{0,\ldots,n-1\}\to X{0,…,n−1}→X, and {0,1}j\{0,1\}^j{0,1}j means Boolean strings of length jjj. Each map Φ\PhiΦ must admit a finite Kraus representation: there exist a natural number mmm and rectangular complex matrices E0,…,Em−1E_0,\ldots,E_{m-1}E0​,…,Em−1​ from its input space to its output space such that

∑j=0m−1Ej†Ej=I,Φ(ρ)=∑j=0m−1EjρEj†for every input matrix ρ.\sum_{j=0}^{m-1}E_j^\dagger E_j=I, \qquad \Phi(\rho)=\sum_{j=0}^{m-1}E_j\rho E_j^\dagger \quad\text{for every input matrix }\rho.j=0∑m−1​Ej†​Ej​=I,Φ(ρ)=j=0∑m−1​Ej​ρEj†​for every input matrix ρ.

The natural numbers n,q,k,l,mn,q,k,l,mn,q,k,l,m may be zero, and the finite types may be empty, subject to these required identities.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.netEntanglement

For finite types A,C,BA,C,BA,C,B, n∈Nn\in\mathbb Nn∈N, and a transfer code PPP, this defines the real number P.k−P.lP.k-P.lP.k−P.l, with both natural numbers converted to real numbers before subtraction. Here a transfer code has natural parameters q,k,lq,k,lq,k,l, an encoder channel from (An×Cn)×{0,1}k(A^n\times C^n)\times\{0,1\}^k(An×Cn)×{0,1}k to (An×{0,1}l)×{0,1}q(A^n\times\{0,1\}^l)\times\{0,1\}^q(An×{0,1}l)×{0,1}q, and a decoder channel from {0,1}q×(Bn×{0,1}k)\{0,1\}^q\times(B^n\times\{0,1\}^k){0,1}q×(Bn×{0,1}k) to (Cn×Bn)×{0,1}l(C^n\times B^n)\times\{0,1\}^l(Cn×Bn)×{0,1}l, where XnX^nXn is the type of length-nnn strings over XXX. Each channel has a finite Kraus representation Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The result may be negative when P.l>P.kP.l>P.kP.l>P.k; it is not truncated natural-number subtraction. All three parameters and nnn may be zero.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionError

For finite types A,C,B,RA,C,B,RA,C,B,R, n∈Nn\in\mathbb Nn∈N, a transfer code PPP, and any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), this defines a real number as follows. Write Xn={0,…,n−1}→XX^n=\{0,\ldots,n-1\}\to XXn={0,…,n−1}→X, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and q=P.q, k=P.k, l=P.lq=P.q,\ k=P.k,\ l=P.lq=P.q, k=P.k, l=P.l. The code consists of these natural parameters and finite Kraus channels F:(An×Cn)×Qk→(An×Ql)×QqF:(A^n\times C^n)\times\mathcal Q_k\to(A^n\times\mathcal Q_l)\times\mathcal Q_qF:(An×Cn)×Qk​→(An×Ql​)×Qq​ and G:Qq×(Bn×Qk)→(Cn×Bn)×QlG:\mathcal Q_q\times(B^n\times\mathcal Q_k)\to(C^n\times B^n)\times\mathcal Q_lG:Qq​×(Bn×Qk​)→(Cn×Bn)×Ql​, where a finite Kraus channel acts by Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Start with the outer product of the vector having amplitude

(∏i=0n−1ψ(ri,(ai,(ci,bi))))2−k/21{u=v}\left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))\right)2^{-k/2}\mathbf1_{\{u=v\}}(i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​))))2−k/21{u=v}​

at (r,(((a,c),u),(b,v)))(r,(((a,c),u),(b,v)))(r,(((a,c),u),(b,v))). Apply FFF to ((a,c),u)((a,c),u)((a,c),u), then apply GGG to the resulting Qq\mathcal Q_qQq​ register together with (b,v)(b,v)(b,v), preserving the reference register, to obtain ρout\rho_{\mathrm{out}}ρout​. Let ρtar\rho_{\mathrm{tar}}ρtar​ be the outer product of the vector with amplitude

(∏i=0n−1ψ(ri,(ai,(ci,bi))))2−l/21{u=v}\left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))\right)2^{-l/2}\mathbf1_{\{u=v\}}(i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​))))2−l/21{u=v}​

at (r,((a,u),((c,b),v)))(r,((a,u),((c,b),v)))(r,((a,u),((c,b),v))). With D=ρout−ρtarD=\rho_{\mathrm{out}}-\rho_{\mathrm{tar}}D=ρout​−ρtar​, the defined error is

Re⁡tr⁡D†D,\operatorname{Re}\operatorname{tr}\sqrt{D^\dagger D},RetrD†D​,

where the square root is obtained by continuous functional calculus. There is no factor of 1/21/21/2. The vector ψ\psiψ need not have norm 111; zero parameters and empty finite types are included.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionOutputDensity

For finite types A,C,B,RA,C,B,RA,C,B,R, n∈Nn\in\mathbb Nn∈N, a transfer code PPP, and any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), write Xn={0,…,n−1}→XX^n=\{0,\ldots,n-1\}\to XXn={0,…,n−1}→X, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and q=P.q, k=P.k, l=P.lq=P.q,\ k=P.k,\ l=P.lq=P.q, k=P.k, l=P.l. The code provides channels F=P.encoderF=P.encoderF=P.encoder from X=(An×Cn)×QkX=(A^n\times C^n)\times\mathcal Q_kX=(An×Cn)×Qk​ to U×M=(An×Ql)×QqU\times M=(A^n\times\mathcal Q_l)\times\mathcal Q_qU×M=(An×Ql​)×Qq​, and G=P.decoderG=P.decoderG=P.decoder from M×Y=Qq×(Bn×Qk)M\times Y=\mathcal Q_q\times(B^n\times\mathcal Q_k)M×Y=Qq​×(Bn×Qk​) to V=(Cn×Bn)×QlV=(C^n\times B^n)\times\mathcal Q_lV=(Cn×Bn)×Ql​; each channel admits a finite Kraus representation Z↦∑jKjZKj†Z\mapsto\sum_jK_jZK_j^\daggerZ↦∑j​Kj​ZKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Put

χ(r,(((a,c),u),(b,v)))=(∏i=0n−1ψ(ri,(ai,(ci,bi)))){2−k/2,u=v,0,u≠v,ρ0(p,p′)=χ(p)χ(p′)‾.\chi(r,(((a,c),u),(b,v)))= \left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i)))\right) \begin{cases} 2^{-k/2},&u=v,\\ 0,&u\ne v, \end{cases} \qquad \rho_0(p,p')=\chi(p)\overline{\chi(p')}.χ(r,(((a,c),u),(b,v)))=(i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​)))){2−k/2,0,​u=v,u=v,​ρ0​(p,p′)=χ(p)χ(p′)​.

Writing Ex,x′E_{x,x'}Ex,x′​ for the matrix with its only nonzero entry, 111, at (x,x′)(x,x')(x,x′), the defined output matrix is

ρout((r,(u,v)),(r′,(u′,v′)))=∑x,x′∈X∑y,y′∈Y∑m,m′∈Mρ0((r,(x,y)),(r′,(x′,y′)))F(Ex,x′)((u,m),(u′,m′))G(E(m,y),(m′,y′))(v,v′).\rho_{\mathrm{out}}((r,(u,v)),(r',(u',v'))) = \sum_{x,x'\in X}\sum_{y,y'\in Y}\sum_{m,m'\in M} \rho_0((r,(x,y)),(r',(x',y'))) F(E_{x,x'})((u,m),(u',m')) G(E_{(m,y),(m',y')})(v,v').ρout​((r,(u,v)),(r′,(u′,v′)))=x,x′∈X∑​y,y′∈Y∑​m,m′∈M∑​ρ0​((r,(x,y)),(r′,(x′,y′)))F(Ex,x′​)((u,m),(u′,m′))G(E(m,y),(m′,y′)​)(v,v′).

Thus the reference indices r,r′r,r'r,r′ are preserved while the two maps are combined by this formula. No normalization of ψ\psiψ is required; n,q,k,ln,q,k,ln,q,k,l may be zero, and empty products are 111.

QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionTargetDensity

For finite types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, a transfer code PPP, and any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), this defines a matrix on Rn×((An×Ql)×((Cn×Bn)×Ql))R^n\times((A^n\times\mathcal Q_l)\times((C^n\times B^n)\times\mathcal Q_l))Rn×((An×Ql​)×((Cn×Bn)×Ql​)), where XnX^nXn denotes functions {0,…,n−1}→X\{0,\ldots,n-1\}\to X{0,…,n−1}→X, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and l=P.ll=P.ll=P.l. The code has natural parameters q,k,lq,k,lq,k,l, an encoder channel from (An×Cn)×Qk(A^n\times C^n)\times\mathcal Q_k(An×Cn)×Qk​ to (An×Ql)×Qq(A^n\times\mathcal Q_l)\times\mathcal Q_q(An×Ql​)×Qq​, and a decoder channel from Qq×(Bn×Qk)\mathcal Q_q\times(B^n\times\mathcal Q_k)Qq​×(Bn×Qk​) to (Cn×Bn)×Ql(C^n\times B^n)\times\mathcal Q_l(Cn×Bn)×Ql​; a channel here is a map X↦∑jKjXKj†X\mapsto\sum_j K_jXK_j^\daggerX↦∑j​Kj​XKj†​ for some finite family satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Define

sn(r,a,c,b)=∏i=0n−1ψ(ri,(ai,(ci,bi))),Φ(r,((a,u),((c,b),v)))=sn(r,a,c,b){2−l/2,u=v,0,u≠v.s_n(r,a,c,b)=\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i))),\qquad \Phi(r,((a,u),((c,b),v)))= s_n(r,a,c,b) \begin{cases} 2^{-l/2},&u=v,\\ 0,&u\ne v. \end{cases}sn​(r,a,c,b)=i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​))),Φ(r,((a,u),((c,b),v)))=sn​(r,a,c,b){2−l/2,0,​u=v,u=v.​

The defined matrix has entries Φ(p)Φ(p′)‾\Phi(p)\overline{\Phi(p')}Φ(p)Φ(p′)​. No normalization of ψ\psiψ or nonemptiness of the finite types is assumed. The definition includes n=0n=0n=0, when the product defining sns_nsn​ is 111, and l=0l=0l=0, when Ql\mathcal Q_lQl​ has one element.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.Input

For finite source index types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, and a unitary redistribution code PPP—with natural parameters q,k,l,wa,in,wa,out,wb,in,wb,outq,k,l,w_{a,\mathrm{in}},w_{a,\mathrm{out}},w_{b,\mathrm{in}},w_{b,\mathrm{out}}q,k,l,wa,in​,wa,out​,wb,in​,wb,out​ and encoder and decoder matrices each satisfying both adjoint-product identity equations—this abbreviation denotes the index type

Rn×((((An×Cn)×{0,1}P.k)×{0,…,P.wa,in})×((Bn×{0,1}P.k)×{0,…,P.wb,in})).R^n\times \left( \left(((A^n\times C^n)\times\{0,1\}^{P.k}) \times\{0,\ldots,P.w_{a,\mathrm{in}}\}\right) \times \left((B^n\times\{0,1\}^{P.k}) \times\{0,\ldots,P.w_{b,\mathrm{in}}\}\right) \right).Rn×((((An×Cn)×{0,1}P.k)×{0,…,P.wa,in​})×((Bn×{0,1}P.k)×{0,…,P.wb,in​})).

Here XnX^nXn means functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to XXX. This is only an index type; it does not prescribe amplitudes, a density matrix, or initialization of the work registers. Both work index sets are nonempty, including when their parameters are zero, and n=0n=0n=0 makes each source-copy register a singleton.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.RedistributionOutputBasis

For finite source index types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, and a unitary redistribution code PPP, whose natural parameters specify message, entanglement, and work sizes and whose encoder and decoder matrices satisfy both adjoint-product identity equations, this abbreviation denotes

Rn×(((An×{0,1}P.l)×{0,…,P.wa,out})×(((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out})).R^n\times \left( \left((A^n\times\{0,1\}^{P.l}) \times\{0,\ldots,P.w_{a,\mathrm{out}}\}\right) \times \left(((C^n\times B^n)\times\{0,1\}^{P.l}) \times\{0,\ldots,P.w_{b,\mathrm{out}}\}\right) \right).Rn×(((An×{0,1}P.l)×{0,…,P.wa,out​})×(((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out​})).

Here XnX^nXn denotes the functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to XXX. It specifies a basis index type without asserting any state, initialization, or successful transfer. Zero work parameters give singleton work index sets, zero P.lP.lP.l gives singleton bit-string registers, and n=0n=0n=0 gives singleton source-copy registers.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.forwardError

For finite types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, a unitary redistribution code PPP, and any vector ψ\psiψ on R×A×C×BR\times A\times C\times BR×A×C×B, this defines the real number

Re⁡tr⁡(uu†−vv†)†(uu†−vv†).\operatorname{Re}\operatorname{tr} \sqrt{(uu^\dagger-vv^\dagger)^\dagger(uu^\dagger-vv^\dagger)}.Retr(uu†−vv†)†(uu†−vv†)​.

Here u=Gxu=Gxu=Gx by ordinary matrix–vector multiplication, and vv†vv^\daggervv† and uu†uu^\daggeruu† have entries vovo′‾v_o\overline{v_{o'}}vo​vo′​​ and uouo′‾u_o\overline{u_{o'}}uo​uo′​​. The code has natural parameters q,k,l,wa,in,wa,out,wb,in,wb,outq,k,l,w_{a,\mathrm{in}},w_{a,\mathrm{out}},w_{b,\mathrm{in}},w_{b,\mathrm{out}}q,k,l,wa,in​,wa,out​,wb,in​,wb,out​, an encoder EEE from ((An×Cn)×{0,1}P.k)×{0,…,P.wa,in}((A^n\times C^n)\times\{0,1\}^{P.k})\times\{0,\ldots,P.w_{a,\mathrm{in}}\}((An×Cn)×{0,1}P.k)×{0,…,P.wa,in​} to ((An×{0,1}P.l)×{0,…,P.wa,out})×{0,1}P.q((A^n\times\{0,1\}^{P.l})\times\{0,\ldots,P.w_{a,\mathrm{out}}\})\times\{0,1\}^{P.q}((An×{0,1}P.l)×{0,…,P.wa,out​})×{0,1}P.q, and a decoder DDD from {0,1}P.q×((Bn×{0,1}P.k)×{0,…,P.wb,in})\{0,1\}^{P.q}\times((B^n\times\{0,1\}^{P.k})\times\{0,\ldots,P.w_{b,\mathrm{in}}\}){0,1}P.q×((Bn×{0,1}P.k)×{0,…,P.wb,in​}) to ((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out}((C^n\times B^n)\times\{0,1\}^{P.l})\times\{0,\ldots,P.w_{b,\mathrm{out}}\}((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out​}; each matrix satisfies both M†M=IM^\dagger M=IM†M=I and MM†=IMM^\dagger=IMM†=I. Writing input indices as i=(ri,(xA,xB))i=(r_i,(x_A,x_B))i=(ri​,(xA​,xB​)) and output indices as o=(ro,(yA,yB))o=(r_o,(y_A,y_B))o=(ro​,(yA​,yB​)), the matrix used above is

Go,i=1ro=ri∑m∈{0,1}P.qE(yA,m),xADyB,(m,xB).G_{o,i} =\mathbf1_{r_o=r_i} \sum_{m\in\{0,1\}^{P.q}} E_{(y_A,m),x_A}D_{y_B,(m,x_B)}.Go,i​=1ro​=ri​​m∈{0,1}P.q∑​E(yA​,m),xA​​DyB​,(m,xB​)​.

The input vector xxx, at registers r,a,c,b,s,t,wa,wbr,a,c,b,s,t,w_a,w_br,a,c,b,s,t,wa​,wb​, has coefficient (∏j<nψ(rj,aj,cj,bj))2−P.k/21s=t\bigl(\prod_{j<n}\psi(r_j,a_j,c_j,b_j)\bigr)2^{-P.k/2}\mathbf1_{s=t}(∏j<n​ψ(rj​,aj​,cj​,bj​))2−P.k/21s=t​ when both input work indices are 000, and zero otherwise. The target vector vvv has the same source product, the factor 2−P.l/21s=t2^{-P.l/2}\mathbf1_{s=t}2−P.l/21s=t​ on the two output entanglement registers, and coefficient zero unless both output work indices are 000. The square root in the error is the continuous functional calculus square root of the positive semidefinite matrix displayed. There is no unit-norm hypothesis on ψ\psiψ, no factor 1/21/21/2 in this trace norm, and the definition includes n=0n=0n=0 and zero code parameters.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.globalMatrix

For finite types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, and a unitary redistribution code PPP with natural parameters q,k,l,wa,in,wa,out,wb,in,wb,outq,k,l,w_{a,\mathrm{in}},w_{a,\mathrm{out}},w_{b,\mathrm{in}},w_{b,\mathrm{out}}q,k,l,wa,in​,wa,out​,wb,in​,wb,out​, let

X=((An×Cn)×{0,1}P.k)×{0,…,P.wa,in},Y=(Bn×{0,1}P.k)×{0,…,P.wb,in},U=(An×{0,1}P.l)×{0,…,P.wa,out},V=((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out}.\begin{aligned} X&=((A^n\times C^n)\times\{0,1\}^{P.k})\times\{0,\ldots,P.w_{a,\mathrm{in}}\},\\ Y&=(B^n\times\{0,1\}^{P.k})\times\{0,\ldots,P.w_{b,\mathrm{in}}\},\\ U&=(A^n\times\{0,1\}^{P.l})\times\{0,\ldots,P.w_{a,\mathrm{out}}\},\\ V&=((C^n\times B^n)\times\{0,1\}^{P.l})\times\{0,\ldots,P.w_{b,\mathrm{out}}\}. \end{aligned}XYUV​=((An×Cn)×{0,1}P.k)×{0,…,P.wa,in​},=(Bn×{0,1}P.k)×{0,…,P.wb,in​},=(An×{0,1}P.l)×{0,…,P.wa,out​},=((Cn×Bn)×{0,1}P.l)×{0,…,P.wb,out​}.​

Here XnX^nXn means nnn-tuples. The code’s encoder EEE, from columns XXX to rows U×{0,1}P.qU\times\{0,1\}^{P.q}U×{0,1}P.q, and decoder DDD, from columns {0,1}P.q×Y\{0,1\}^{P.q}\times Y{0,1}P.q×Y to rows VVV, each satisfy both M†M=IM^\dagger M=IM†M=I and MM†=IMM^\dagger=IMM†=I. This definition gives a complex matrix GGG from columns Rn×(X×Y)R^n\times(X\times Y)Rn×(X×Y) to rows Rn×(U×V)R^n\times(U\times V)Rn×(U×V) by

G(ro,(u,v)),(ri,(x,y))={∑m∈{0,1}P.qE(u,m),xDv,(m,y),ro=ri,0,ro≠ri.G_{(r_o,(u,v)),(r_i,(x,y))} = \begin{cases} \displaystyle\sum_{m\in\{0,1\}^{P.q}}E_{(u,m),x}D_{v,(m,y)},&r_o=r_i,\\ 0,&r_o\ne r_i. \end{cases}G(ro​,(u,v)),(ri​,(x,y))​=⎩⎨⎧​m∈{0,1}P.q∑​E(u,m),x​Dv,(m,y)​,0,​ro​=ri​,ro​=ri​.​

Thus the message index is summed, while the reference tuple must agree exactly. No source vector is an argument. The formula includes n=0n=0n=0, and when P.q=0P.q=0P.q=0 the message sum has one term.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode

For finite types A,C,BA,C,BA,C,B and any natural number nnn, this structure consists of seven natural numbers q,k,l,wa,in,wa,out,wb,in,wb,outq,k,l,w_{a,\mathrm{in}},w_{a,\mathrm{out}},w_{b,\mathrm{in}},w_{b,\mathrm{out}}q,k,l,wa,in​,wa,out​,wb,in​,wb,out​ and two complex matrices E,DE,DE,D. Writing XnX^nXn for nnn-tuples, Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and Ww={0,…,w}W_w=\{0,\ldots,w\}Ww​={0,…,w}, the encoder matrix EEE has column and row index sets

((An×Cn)×Qk)×Wwa,inand((An×Ql)×Wwa,out)×Qq,((A^n\times C^n)\times\mathcal Q_k)\times W_{w_{a,\mathrm{in}}} \quad\text{and}\quad ((A^n\times\mathcal Q_l)\times W_{w_{a,\mathrm{out}}})\times\mathcal Q_q,((An×Cn)×Qk​)×Wwa,in​​and((An×Ql​)×Wwa,out​​)×Qq​,

respectively, while the decoder matrix DDD has column and row index sets

Qq×((Bn×Qk)×Wwb,in)and((Cn×Bn)×Ql)×Wwb,out,\mathcal Q_q\times((B^n\times\mathcal Q_k)\times W_{w_{b,\mathrm{in}}}) \quad\text{and}\quad ((C^n\times B^n)\times\mathcal Q_l)\times W_{w_{b,\mathrm{out}}},Qq​×((Bn×Qk​)×Wwb,in​​)and((Cn×Bn)×Ql​)×Wwb,out​​,

respectively. Its four required equations are

E†E=I,EE†=I,D†D=I,DD†=I,E^\dagger E=I,\qquad EE^\dagger=I,\qquad D^\dagger D=I,\qquad DD^\dagger=I,E†E=I,EE†=I,D†D=I,DD†=I,

where each identity is on the appropriate column or row space. Thus each matrix is a unitary identification between its specified spaces, imposing equality of their dimensions. There are no further fields requiring a particular source, error bound, or resource rate. All natural parameters may be zero; W0W_0W0​ and Q0\mathcal Q_0Q0​ are singletons, and when n=0n=0n=0, every XnX^nXn is a singleton even if XXX is empty.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.redistributionInputVector

For finite types A,C,B,RA,C,B,RA,C,B,R, any natural number nnn, a unitary redistribution code PPP with natural message, entanglement, and work parameters and encoder and decoder matrices satisfying both adjoint-product identity equations, and any vector ψ\psiψ on R×A×C×BR\times A\times C\times BR×A×C×B, this defines a vector vvv indexed by

p=(r,((((a,c),s),wa),((b,t),wb))),p=\bigl(r,((((a,c),s),w_a),((b,t),w_b))\bigr),p=(r,((((a,c),s),wa​),((b,t),wb​))),

where r∈Rnr\in R^nr∈Rn, a∈Ana\in A^na∈An, c∈Cnc\in C^nc∈Cn, b∈Bnb\in B^nb∈Bn, s,t∈{0,1}P.ks,t\in\{0,1\}^{P.k}s,t∈{0,1}P.k, wa∈{0,…,P.wa,in}w_a\in\{0,\ldots,P.w_{a,\mathrm{in}}\}wa​∈{0,…,P.wa,in​}, and wb∈{0,…,P.wb,in}w_b\in\{0,\ldots,P.w_{b,\mathrm{in}}\}wb​∈{0,…,P.wb,in​}. Its coefficient is

v(p)={(∏i=0n−1ψ(ri,ai,ci,bi))2−P.k/21s=t,wa=0 and wb=0,0,otherwise.v(p)= \begin{cases} \displaystyle \left(\prod_{i=0}^{n-1}\psi(r_i,a_i,c_i,b_i)\right) 2^{-P.k/2}\mathbf1_{s=t},&w_a=0\ \text{and}\ w_b=0,\\ 0,&\text{otherwise}. \end{cases}v(p)=⎩⎨⎧​(i=0∏n−1​ψ(ri​,ai​,ci​,bi​))2−P.k/21s=t​,0,​wa​=0 and wb​=0,otherwise.​

The source product is the literal product of amplitudes, and the entangled-pair factor is zero unless the two bit strings agree. There is no normalization hypothesis on ψ\psiψ. The work index sets always contain 000; for n=0n=0n=0 the source product is 111, and for P.k=0P.k=0P.k=0 the entangled-pair factor is 111 on its singleton index set.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.redistributionTargetVector

For finite types A,C,B,RA,C,B,RA,C,B,R, any natural number nnn, a unitary redistribution code PPP with natural message, entanglement, and work parameters and encoder and decoder matrices satisfying both adjoint-product identity equations, and any vector ψ\psiψ on R×A×C×BR\times A\times C\times BR×A×C×B, this defines a vector vvv indexed by

p=(r,(((a,s),wa),(((c,b),t),wb))),p=\bigl(r,(((a,s),w_a),(((c,b),t),w_b))\bigr),p=(r,(((a,s),wa​),(((c,b),t),wb​))),

where r∈Rnr\in R^nr∈Rn, a∈Ana\in A^na∈An, c∈Cnc\in C^nc∈Cn, b∈Bnb\in B^nb∈Bn, s,t∈{0,1}P.ls,t\in\{0,1\}^{P.l}s,t∈{0,1}P.l, wa∈{0,…,P.wa,out}w_a\in\{0,\ldots,P.w_{a,\mathrm{out}}\}wa​∈{0,…,P.wa,out​}, and wb∈{0,…,P.wb,out}w_b\in\{0,\ldots,P.w_{b,\mathrm{out}}\}wb​∈{0,…,P.wb,out​}. Its coefficient is

v(p)={(∏i=0n−1ψ(ri,ai,ci,bi))2−P.l/21s=t,wa=0 and wb=0,0,otherwise.v(p)= \begin{cases} \displaystyle \left(\prod_{i=0}^{n-1}\psi(r_i,a_i,c_i,b_i)\right) 2^{-P.l/2}\mathbf1_{s=t},&w_a=0\ \text{and}\ w_b=0,\\ 0,&\text{otherwise}. \end{cases}v(p)=⎩⎨⎧​(i=0∏n−1​ψ(ri​,ai​,ci​,bi​))2−P.l/21s=t​,0,​wa​=0 and wb​=0,otherwise.​

No normalization assumption is made on ψ\psiψ, and this definition does not assert that the encoder and decoder produce this vector. Zero work parameters still allow the designated index 000; n=0n=0n=0 makes the source product 111, and P.l=0P.l=0P.l=0 makes the bit-string pair a singleton with coefficient 111.

QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.reverseError

For finite types A,C,B,RA,C,B,RA,C,B,R, a natural number nnn, a unitary redistribution code PPP, and any complex vector ψ\psiψ indexed by R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), this defines the real number

Re⁡Tr⁡Z†Z,Z=∣GP†tψ⟩⟨GP†tψ∣−∣iψ⟩⟨iψ∣.\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}, \qquad Z=|G_P^\dagger t_\psi\rangle\langle G_P^\dagger t_\psi| -|i_\psi\rangle\langle i_\psi|.ReTrZ†Z​,Z=∣GP†​tψ​⟩⟨GP†​tψ​∣−∣iψ​⟩⟨iψ​∣.

Here matrix square roots mean the real continuous functional calculus, and ∣v⟩⟨v∣|v\rangle\langle v|∣v⟩⟨v∣ has entries vxvy‾v_x\overline{v_y}vx​vy​​. The code has natural-number parameters q,k,l,wAin,wAout,wBin,wBoutq,k,l,w_A^{\rm in},w_A^{\rm out},w_B^{\rm in},w_B^{\rm out}q,k,l,wAin​,wAout​,wBin​,wBout​; its encoder and decoder are rectangular matrices satisfying both EP†EP=EPEP†=1E_P^\dagger E_P=E_PE_P^\dagger=1EP†​EP​=EP​EP†​=1 and DP†DP=DPDP†=1D_P^\dagger D_P=D_PD_P^\dagger=1DP†​DP​=DP​DP†​=1, with register maps

EP:((An×Cn)×{0,1}k)×Fin⁡(wAin+1)⟶(An×{0,1}l)×Fin⁡(wAout+1)×{0,1}q,E_P:\bigl((A^n\times C^n)\times\{0,1\}^k\bigr)\times\operatorname{Fin}(w_A^{\rm in}+1) \longrightarrow \bigl(A^n\times\{0,1\}^l\bigr)\times\operatorname{Fin}(w_A^{\rm out}+1)\times\{0,1\}^q,EP​:((An×Cn)×{0,1}k)×Fin(wAin​+1)⟶(An×{0,1}l)×Fin(wAout​+1)×{0,1}q, DP:{0,1}q×((Bn×{0,1}k)×Fin⁡(wBin+1))⟶((Cn×Bn)×{0,1}l)×Fin⁡(wBout+1),D_P:\{0,1\}^q\times \bigl((B^n\times\{0,1\}^k)\times\operatorname{Fin}(w_B^{\rm in}+1)\bigr) \longrightarrow \bigl((C^n\times B^n)\times\{0,1\}^l\bigr)\times\operatorname{Fin}(w_B^{\rm out}+1),DP​:{0,1}q×((Bn×{0,1}k)×Fin(wBin​+1))⟶((Cn×Bn)×{0,1}l)×Fin(wBout​+1),

where XnX^nXn means functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to XXX. Its global matrix preserves the reference string and has entries

GP((r,u,v),(r′,x,y))=1r=r′∑m∈{0,1}qEP(u,m;x)DP(v;m,y).G_P\bigl((r,u,v),(r',x,y)\bigr) =\mathbf1_{r=r'}\sum_{m\in\{0,1\}^q}E_P(u,m;x)D_P(v;m,y).GP​((r,u,v),(r′,x,y))=1r=r′​m∈{0,1}q∑​EP​(u,m;x)DP​(v;m,y).

The input vector iψi_\psiiψ​ has amplitude

1α=0, β=0(∏j=0n−1ψ(rj,(aj,(cj,bj))))1s=t2k\mathbf1_{\alpha=0,\ \beta=0} \left(\prod_{j=0}^{n-1}\psi(r_j,(a_j,(c_j,b_j)))\right) \frac{\mathbf1_{s=t}}{\sqrt{2^k}}1α=0, β=0​(j=0∏n−1​ψ(rj​,(aj​,(cj​,bj​))))2k​1s=t​​

on reference rrr, Alice’s registers ((a,c),s,α)((a,c),s,\alpha)((a,c),s,α), and Bob’s registers (b,t,β)(b,t,\beta)(b,t,β). The target tψt_\psitψ​ has the same product of source amplitudes, factor 1s=t/2l\mathbf1_{s=t}/\sqrt{2^l}1s=t​/2l​, and both output workspace labels equal to zero, with aaa at Alice and (c,b)(c,b)(c,b) at Bob. Matrix action is ordinary matrix–vector multiplication. No normalization of ψ\psiψ is required, all resource parameters may be zero, and for n=0n=0n=0 the source-amplitude product is 111.

QAlgorithms.Papers.Independent.Gap48.P20.aliceFirst

For types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines the vector indexed by

(R×(B×CB))×(A×(CA×C))(R\times(B\times C_B))\times(A\times(C_A\times C))(R×(B×CB​))×(A×(CA​×C))

whose coordinates are

ψAlice first((r,(b,bC)),(a,(aC,c)))=ψ(r,(a,(aC,(b,(bC,c))))).\psi_{\mathrm{Alice\ first}}\bigl((r,(b,b_C)),(a,(a_C,c))\bigr) =\psi(r,(a,(a_C,(b,(b_C,c))))).ψAlice first​((r,(b,bC​)),(a,(aC​,c)))=ψ(r,(a,(aC​,(b,(bC​,c))))).

It is exactly this rearrangement of coordinates: the reference label becomes (r,(b,bC))(r,(b,b_C))(r,(b,bC​)), while the other three labels are a,aC,ca,a_C,ca,aC​,c. No normalization hypothesis or additional constraint on the vector is imposed.

QAlgorithms.Papers.Independent.Gap48.P20.aliceFirstCorner

For finite index types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex Euclidean vector ψ\psiψ on the six registers R,A,CA,B,CB,CR,A,C_A,B,C_B,CR,A,CA​,B,CB​,C, form the matrix ρuv=ψ(u)ψ(v)‾\rho_{uv}=\psi(u)\overline{\psi(v)}ρuv​=ψ(u)ψ(v)​. For any collection UUU of these registers, let ρU\rho_UρU​ be its marginal, whose (a,b)(a,b)(a,b)-entry is the sum of ρxy\rho_{xy}ρxy​ over all full indices x,yx,yx,y with xU=ax_U=axU​=a, yU=by_U=byU​=b, and identical coordinates outside UUU, and write H(U)=−Re⁡tr⁡(f(ρU))H(U)=-\operatorname{Re}\operatorname{tr}(f(\rho_U))H(U)=−Retr(f(ρU​)), where f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x is applied by continuous functional calculus. The definition gives the following real vector, indexed in order by 0,1,2,30,1,2,30,1,2,3:

aliceFirstCorner⁡(ψ)0=H(CAC)+H(RBCBC)−H(C)−H(RBCBCAC)2,aliceFirstCorner⁡(ψ)1=H(CBCAC)+H(RACAC)−H(CAC)−H(RACBCAC)2,aliceFirstCorner⁡(ψ)2=H(A)−H(ACA)−H(C)+H(CAC)2,aliceFirstCorner⁡(ψ)3=H(B)−H(BCB)−H(CAC)+H(CBCAC)2.\begin{aligned} \operatorname{aliceFirstCorner}(\psi)_0 &=\frac{H(C_A C)+H(RBC_BC)-H(C)-H(RBC_BC_AC)}2,\\ \operatorname{aliceFirstCorner}(\psi)_1 &=\frac{H(C_BC_AC)+H(RAC_AC)-H(C_AC)-H(RAC_BC_AC)}2,\\ \operatorname{aliceFirstCorner}(\psi)_2 &=\frac{H(A)-H(AC_A)-H(C)+H(C_AC)}2,\\ \operatorname{aliceFirstCorner}(\psi)_3 &=\frac{H(B)-H(BC_B)-H(C_AC)+H(C_BC_AC)}2. \end{aligned}aliceFirstCorner(ψ)0​aliceFirstCorner(ψ)1​aliceFirstCorner(ψ)2​aliceFirstCorner(ψ)3​​=2H(CA​C)+H(RBCB​C)−H(C)−H(RBCB​CA​C)​,=2H(CB​CA​C)+H(RACA​C)−H(CA​C)−H(RACB​CA​C)​,=2H(A)−H(ACA​)−H(C)+H(CA​C)​,=2H(B)−H(BCB​)−H(CA​C)+H(CB​CA​C)​.​

Here juxtaposition denotes a collection of distinct named registers. No normalization of ψ\psiψ, nonemptiness of the index types, or positivity of these four coordinates is required; the entropy expressions use the total functions in the definitions even in such cases.

QAlgorithms.Papers.Independent.Gap48.P20.aliceSecond

For finite index types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex Euclidean vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines a vector indexed by (R×B)×(A×(CA×(CB×C)))(R\times B)\times(A\times(C_A\times(C_B\times C)))(R×B)×(A×(CA​×(CB​×C))) by regrouping its coordinates:

aliceSecond⁡(ψ)((r,b),(a,(cA,(cB,c))))=ψ(r,(a,(cA,(b,(cB,c))))).\operatorname{aliceSecond}(\psi)\bigl((r,b),(a,(c_A,(c_B,c)))\bigr) =\psi\bigl(r,(a,(c_A,(b,(c_B,c))))\bigr).aliceSecond(ψ)((r,b),(a,(cA​,(cB​,c))))=ψ(r,(a,(cA​,(b,(cB​,c))))).

No normalization or nonemptiness assumption is imposed; if an index type is empty, the corresponding coordinate conditions are vacuous.

QAlgorithms.Papers.Independent.Gap48.P20.bobFirst

For finite index types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex Euclidean vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines a vector indexed by (R×(A×CA))×(B×(CB×C))(R\times(A\times C_A))\times(B\times(C_B\times C))(R×(A×CA​))×(B×(CB​×C)) by regrouping its coordinates:

bobFirst⁡(ψ)((r,(a,cA)),(b,(cB,c)))=ψ(r,(a,(cA,(b,(cB,c))))).\operatorname{bobFirst}(\psi)\bigl((r,(a,c_A)),(b,(c_B,c))\bigr) =\psi\bigl(r,(a,(c_A,(b,(c_B,c))))\bigr).bobFirst(ψ)((r,(a,cA​)),(b,(cB​,c)))=ψ(r,(a,(cA​,(b,(cB​,c))))).

No normalization or nonemptiness assumption is imposed; if an index type is empty, the corresponding coordinate conditions are vacuous.

QAlgorithms.Papers.Independent.Gap48.P20.bobFirstCorner

For finite index types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex Euclidean vector ψ\psiψ on the six registers R,A,CA,B,CB,CR,A,C_A,B,C_B,CR,A,CA​,B,CB​,C, form ρuv=ψ(u)ψ(v)‾\rho_{uv}=\psi(u)\overline{\psi(v)}ρuv​=ψ(u)ψ(v)​. For any collection UUU of registers, define its marginal by summing ρxy\rho_{xy}ρxy​ over full indices with prescribed UUU-coordinates and equal coordinates outside UUU, and put H(U)=−Re⁡tr⁡(f(ρU))H(U)=-\operatorname{Re}\operatorname{tr}(f(\rho_U))H(U)=−Retr(f(ρU​)), with f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x applied by continuous functional calculus. The definition gives the real vector with coordinates

bobFirstCorner⁡(ψ)0=H(CACBC)+H(RBCBC)−H(CBC)−H(RBCACBC)2,bobFirstCorner⁡(ψ)1=H(CBC)+H(RACAC)−H(C)−H(RACACBC)2,bobFirstCorner⁡(ψ)2=H(A)−H(ACA)−H(CBC)+H(CACBC)2,bobFirstCorner⁡(ψ)3=H(B)−H(BCB)−H(C)+H(CBC)2.\begin{aligned} \operatorname{bobFirstCorner}(\psi)_0 &=\frac{H(C_AC_BC)+H(RBC_BC)-H(C_BC)-H(RBC_AC_BC)}2,\\ \operatorname{bobFirstCorner}(\psi)_1 &=\frac{H(C_BC)+H(RAC_AC)-H(C)-H(RAC_AC_BC)}2,\\ \operatorname{bobFirstCorner}(\psi)_2 &=\frac{H(A)-H(AC_A)-H(C_BC)+H(C_AC_BC)}2,\\ \operatorname{bobFirstCorner}(\psi)_3 &=\frac{H(B)-H(BC_B)-H(C)+H(C_BC)}2. \end{aligned}bobFirstCorner(ψ)0​bobFirstCorner(ψ)1​bobFirstCorner(ψ)2​bobFirstCorner(ψ)3​​=2H(CA​CB​C)+H(RBCB​C)−H(CB​C)−H(RBCA​CB​C)​,=2H(CB​C)+H(RACA​C)−H(C)−H(RACA​CB​C)​,=2H(A)−H(ACA​)−H(CB​C)+H(CA​CB​C)​,=2H(B)−H(BCB​)−H(C)+H(CB​C)​.​

Juxtaposition denotes a collection of distinct named registers. No normalization of ψ\psiψ, nonemptiness of the index types, or positivity of the coordinates is assumed; the displayed expressions remain the defining total expressions in these cases.

QAlgorithms.Papers.Independent.Gap48.P20.bobSecond

For types A,CA,B,CB,C,RA,C_A,B,C_B,C,RA,CA​,B,CB​,C,R and any complex vector ψ\psiψ indexed by R×(A×(CA×(B×(CB×C))))R\times(A\times(C_A\times(B\times(C_B\times C))))R×(A×(CA​×(B×(CB​×C)))), this defines the vector indexed by

(R×A)×(B×(CB×(CA×C)))(R\times A)\times(B\times(C_B\times(C_A\times C)))(R×A)×(B×(CB​×(CA​×C)))

whose coordinates are

ψBob second((r,a),(b,(bC,(aC,c))))=ψ(r,(a,(aC,(b,(bC,c))))).\psi_{\mathrm{Bob\ second}}\bigl((r,a),(b,(b_C,(a_C,c)))\bigr) =\psi(r,(a,(a_C,(b,(b_C,c))))).ψBob second​((r,a),(b,(bC​,(aC​,c))))=ψ(r,(a,(aC​,(b,(bC​,c))))).

Thus the reference label is (r,a)(r,a)(r,a), the next two labels are b,bCb,b_Cb,bC​, and the final label is (aC,c)(a_C,c)(aC​,c). The definition only rearranges coordinates and assumes no normalization or other property of ψ\psiψ.

QAlgorithms.Papers.Independent.Gap48.P20.catAlice

This defines a function from complex matrices indexed by Boolean pairs to complex matrices indexed by Booleans:

F(X)=∑w∈{0,1}KwXKw†,Kw(a,(u,v))={1,a=u and w=u⊕v,0,otherwise.F(X)=\sum_{w\in\{0,1\}}K_wXK_w^\dagger, \qquad K_w(a,(u,v))= \begin{cases} 1,&a=u\ \text{and}\ w=u\oplus v,\\ 0,&\text{otherwise}. \end{cases}F(X)=w∈{0,1}∑​Kw​XKw†​,Kw​(a,(u,v))={1,0,​a=u and w=u⊕v,otherwise.​

The definition applies to every input matrix XXX, without requiring positivity or trace one.

QAlgorithms.Papers.Independent.Gap48.P20.catAliceKraus

For each Boolean value www, this defines a complex matrix KwK_wKw​ with Boolean row index aaa and Boolean-pair column index (u,v)(u,v)(u,v), whose entries are

Kw(a,(u,v))={1,a=u and w=(u≠v),0,otherwise.K_w(a,(u,v))= \begin{cases} 1,&a=u\ \text{and}\ w=(u\ne v),\\ 0,&\text{otherwise}. \end{cases}Kw​(a,(u,v))={1,0,​a=u and w=(u=v),otherwise.​

Here u≠vu\ne vu=v denotes the Boolean value of the inequality, equivalently u⊕vu\oplus vu⊕v.

QAlgorithms.Papers.Independent.Gap48.P20.catBob

This defines a function from complex matrices indexed by Booleans to complex matrices indexed by Boolean pairs:

G(X)=VXV†,V((u,v),b)={1,u=v=b,0,otherwise.G(X)=VXV^\dagger, \qquad V((u,v),b)= \begin{cases} 1,&u=v=b,\\ 0,&\text{otherwise}. \end{cases}G(X)=VXV†,V((u,v),b)={1,0,​u=v=b,otherwise.​

Equivalently, G(X)((u,v),(u′,v′))=X(u,u′)G(X)((u,v),(u',v'))=X(u,u')G(X)((u,v),(u′,v′))=X(u,u′) when u=vu=vu=v and u′=v′u'=v'u′=v′, and is zero otherwise; no condition is imposed on XXX.

QAlgorithms.Papers.Independent.Gap48.P20.catBobIsometry

This defines a complex matrix VVV with Boolean-pair row index ppp and Boolean column index bbb, given by

V(p,b)={1,p=(b,b),0,otherwise.V(p,b)= \begin{cases} 1,&p=(b,b),\\ 0,&\text{otherwise}. \end{cases}V(p,b)={1,0,​p=(b,b),otherwise.​

Thus its action on a coordinate basis vector is V∣b⟩=∣b,b⟩V|b\rangle=|b,b\rangleV∣b⟩=∣b,b⟩.

QAlgorithms.Papers.Independent.Gap48.P20.catInput

This defines a complex matrix indexed by tuples (r,((a,c),b))(r,((a,c),b))(r,((a,c),b)) of Booleans as the outer product χχ†\chi\chi^\daggerχχ†, where

χ(r,((a,c),b))={1/2,r=a=c=b,0,otherwise.\chi(r,((a,c),b))= \begin{cases} 1/\sqrt2,&r=a=c=b,\\ 0,&\text{otherwise}. \end{cases}χ(r,((a,c),b))={1/2​,0,​r=a=c=b,otherwise.​

Consequently, its entry at (r,((a,c),b))(r,((a,c),b))(r,((a,c),b)) and (r′,((a′,c′),b′))(r',((a',c'),b'))(r′,((a′,c′),b′)) is 1/21/21/2 if each tuple separately has all four coordinates equal, and is zero otherwise; the common Boolean values of the two tuples need not agree.

QAlgorithms.Papers.Independent.Gap48.P20.catState

This defines a complex Euclidean vector indexed by four Boolean registers, ordered as (r,(a,(c,b)))(r,(a,(c,b)))(r,(a,(c,b))), with amplitudes

ψ(r,(a,(c,b)))={1/2,r=a=c=b,0,otherwise.\psi(r,(a,(c,b)))= \begin{cases} 1/\sqrt2,&r=a=c=b,\\ 0,&\text{otherwise}. \end{cases}ψ(r,(a,(c,b)))={1/2​,0,​r=a=c=b,otherwise.​

Equivalently, the vector is (∣0000⟩+∣1111⟩)/2(|0000\rangle+|1111\rangle)/\sqrt2(∣0000⟩+∣1111⟩)/2​, with this specified register order.

QAlgorithms.Papers.Independent.Gap48.P20.conditionalCost

For finite types A,C,B,RA,C,B,RA,C,B,R and any complex Euclidean vector ψ\psiψ indexed by tuples (r,(a,(c,b)))(r,(a,(c,b)))(r,(a,(c,b))), define its subsystem matrices by summing ψψ‾\psi\overline{\psi}ψψ​ over the complementary coordinates; explicitly,

(ρCB)(c,b),(c′,b′)=∑r,aψ(r,a,c,b)ψ(r,a,c′,b′)‾,(ρB)b,b′=∑r,a,cψ(r,a,c,b)ψ(r,a,c,b′)‾.(\rho_{CB})_{(c,b),(c',b')}=\sum_{r,a}\psi(r,a,c,b)\overline{\psi(r,a,c',b')}, \qquad (\rho_B)_{b,b'}=\sum_{r,a,c}\psi(r,a,c,b)\overline{\psi(r,a,c,b')}.(ρCB​)(c,b),(c′,b′)​=r,a∑​ψ(r,a,c,b)ψ(r,a,c′,b′)​,(ρB​)b,b′​=r,a,c∑​ψ(r,a,c,b)ψ(r,a,c,b′)​.

Here ψ(r,a,c,b)\psi(r,a,c,b)ψ(r,a,c,b) abbreviates ψ(r,(a,(c,b)))\psi(r,(a,(c,b)))ψ(r,(a,(c,b))). Writing

H(M)=−Re⁡tr⁡ ⁣[cfc⁡(t↦tlog⁡2t)(M)],H(M)=-\operatorname{Re}\operatorname{tr}\!\left[\operatorname{cfc}(t\mapsto t\log_2 t)(M)\right],H(M)=−Retr[cfc(t↦tlog2​t)(M)],

the defined conditional cost is H(ρCB)−H(ρB)H(\rho_{CB})-H(\rho_B)H(ρCB​)−H(ρB​). The vector is not required to have norm 111; zero vectors and empty finite index types are included.

QAlgorithms.Papers.Independent.Gap48.P20.firstSource

For arbitrary types R,A,C,D,BR,A,C,D,BR,A,C,D,B and any complex Euclidean vector ψ\psiψ indexed by R×(A×(C×(D×B)))R\times(A\times(C\times(D\times B)))R×(A×(C×(D×B))), this defines a vector indexed by R×((A×C)×(D×B))R\times((A\times C)\times(D\times B))R×((A×C)×(D×B)) through

ψfirst(r,((a,c),(d,b)))=ψ(r,(a,(c,(d,b)))).\psi_{\mathrm{first}}(r,((a,c),(d,b))) =\psi(r,(a,(c,(d,b)))).ψfirst​(r,((a,c),(d,b)))=ψ(r,(a,(c,(d,b)))).

There is no normalization hypothesis.

QAlgorithms.Papers.Independent.Gap48.P20.forwardApply

For types X,Y,U,V,MX,Y,U,V,MX,Y,U,V,M, with X,Y,MX,Y,MX,Y,M finite, let E\mathcal EE be any function from complex X×XX\times XX×X matrices to complex matrices indexed by U×MU\times MU×M, and let D\mathcal DD be any function from complex matrices indexed by M×YM\times YM×Y to complex V×VV\times VV×V matrices. The defined function sends a matrix ρ\rhoρ indexed by X×YX\times YX×Y to the matrix indexed by U×VU\times VU×V with entries

Φ(ρ)(u,v),(u′,v′)=∑x,x′∈X∑y,y′∈Y∑m,m′∈Mρ(x,y),(x′,y′) E(Exx′)(u,m),(u′,m′) D(E(m,y),(m′,y′))v,v′,\Phi(\rho)_{(u,v),(u',v')}= \sum_{x,x'\in X}\sum_{y,y'\in Y}\sum_{m,m'\in M} \rho_{(x,y),(x',y')}\, \mathcal E(E_{xx'})_{(u,m),(u',m')}\, \mathcal D(E_{(m,y),(m',y')})_{v,v'},Φ(ρ)(u,v),(u′,v′)​=x,x′∈X∑​y,y′∈Y∑​m,m′∈M∑​ρ(x,y),(x′,y′)​E(Exx′​)(u,m),(u′,m′)​D(E(m,y),(m′,y′)​)v,v′​,

where EabE_{ab}Eab​ is the matrix with entry 111 at (a,b)(a,b)(a,b) and zero elsewhere. No linearity or channel hypotheses are imposed on either function. Empty summation types are allowed and make every output entry zero.

QAlgorithms.Papers.Independent.Gap48.P20.jointSource

For arbitrary types R,A,C,D,BR,A,C,D,BR,A,C,D,B and any complex Euclidean vector ψ\psiψ indexed by R×(A×(C×(D×B)))R\times(A\times(C\times(D\times B)))R×(A×(C×(D×B))), this defines a vector indexed by R×(A×((C×D)×B))R\times(A\times((C\times D)\times B))R×(A×((C×D)×B)) by regrouping coordinates:

ψjoint(r,(a,((c,d),b)))=ψ(r,(a,(c,(d,b)))).\psi_{\mathrm{joint}}(r,(a,((c,d),b))) =\psi(r,(a,(c,(d,b)))).ψjoint​(r,(a,((c,d),b)))=ψ(r,(a,(c,(d,b)))).

There is no normalization hypothesis.

QAlgorithms.Papers.Independent.Gap48.P20.localProduct

For arbitrary types X,Y,U,VX,Y,U,VX,Y,U,V, with finite enumerations of XXX and YYY, and arbitrary functions FFF from complex X×XX\times XX×X matrices to complex U×UU\times UU×U matrices and GGG from complex Y×YY\times YY×Y matrices to complex V×VV\times VV×V matrices, this defines a function LLL on matrices indexed by X×YX\times YX×Y through

L(ρ)((u,v),(u′,v′))=∑x,x′∈X∑y,y′∈Yρ((x,y),(x′,y′)) F(Exx′)(u,u′) G(Eyy′)(v,v′),L(\rho)((u,v),(u',v'))= \sum_{x,x'\in X}\sum_{y,y'\in Y} \rho((x,y),(x',y'))\,F(E_{xx'})(u,u')\,G(E_{yy'})(v,v'),L(ρ)((u,v),(u′,v′))=x,x′∈X∑​y,y′∈Y∑​ρ((x,y),(x′,y′))F(Exx′​)(u,u′)G(Eyy′​)(v,v′),

where Exx′E_{xx'}Exx′​ and Eyy′E_{yy'}Eyy′​ have a single entry 111 at the indicated position and zero elsewhere. Neither linearity nor any channel property is assumed for FFF or GGG; if XXX or YYY is empty, the displayed sum is zero.

QAlgorithms.Papers.Independent.Gap48.P20.mergingClassicalCost

For arbitrary finite types A,C,B,RA,C,B,RA,C,B,R and any vector ψ∈CR×(A×(C×B))\psi\in\mathbb C^{R\times(A\times(C\times B))}ψ∈CR×(A×(C×B)), this defines the real number

SRA+SC−SRAC.S_{RA}+S_C-S_{RAC}.SRA​+SC​−SRAC​.

For each displayed collection TTT of subsystem labels, group the coordinates of ψ\psiψ into retained coordinates uuu belonging to TTT and forgotten coordinates www, and define

(ρT)u,v=∑wψ(u,w)ψ(v,w)‾,ST=−Re⁡tr⁡[f(ρT)],f(x)=xlog⁡2x,(\rho_T)_{u,v}=\sum_w\psi(u,w)\overline{\psi(v,w)},\qquad S_T=-\operatorname{Re}\operatorname{tr} \bigl[f(\rho_T)\bigr], \quad f(x)=x\log_2x,(ρT​)u,v​=w∑​ψ(u,w)ψ(v,w)​,ST​=−Retr[f(ρT​)],f(x)=xlog2​x,

where f(ρT)f(\rho_T)f(ρT​) is obtained by continuous functional calculus. Thus RARARA forgets CBCBCB, CCC forgets RABRABRAB, and RACRACRAC forgets BBB. No norm-one condition on ψ\psiψ or nonemptiness condition on the finite types is imposed; in particular, these matrices are not required by the declaration to have trace 111.

QAlgorithms.Papers.Independent.Gap48.P20.quantumCost

For finite types A,C,B,RA,C,B,RA,C,B,R and any complex Euclidean vector ψ\psiψ on R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), let ρT\rho_TρT​, for each coordinate collection TTT, have entries

(ρT)u,v=∑wψ(u,w)ψ(v,w)‾,(\rho_T)_{u,v}=\sum_w \psi(u,w)\overline{\psi(v,w)},(ρT​)u,v​=w∑​ψ(u,w)ψ(v,w)​,

where www ranges over the complementary coordinates and the arguments of ψ\psiψ are restored to the order (r,(a,(c,b)))(r,(a,(c,b)))(r,(a,(c,b))). Define H(M)=−Re⁡tr⁡[cfc⁡(t↦tlog⁡2t)(M)]H(M)=-\operatorname{Re}\operatorname{tr}[\operatorname{cfc}(t\mapsto t\log_2 t)(M)]H(M)=−Retr[cfc(t↦tlog2​t)(M)]. The defined quantum cost is exactly

H(ρCB)+H(ρRB)−H(ρB)−H(ρRCB)2.\frac{H(\rho_{CB})+H(\rho_{RB})-H(\rho_B)-H(\rho_{RCB})}{2}.2H(ρCB​)+H(ρRB​)−H(ρB​)−H(ρRCB​)​.

No normalization or nonzero condition is imposed on ψ\psiψ, and the finite coordinate types may be empty.

QAlgorithms.Papers.Independent.Gap48.P20.redistributionEntanglementRate

For finite types A,C,B,RA,C,B,RA,C,B,R and any complex Euclidean vector ψ\psiψ on R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), let ρT\rho_TρT​ denote the matrix whose (u,v)(u,v)(u,v) entry is ∑wψ(u,w)ψ(v,w)‾\sum_w\psi(u,w)\overline{\psi(v,w)}∑w​ψ(u,w)ψ(v,w)​, summing over the coordinates complementary to TTT and restoring the argument order (r,(a,(c,b)))(r,(a,(c,b)))(r,(a,(c,b))). With H(M)=−Re⁡tr⁡[cfc⁡(t↦tlog⁡2t)(M)]H(M)=-\operatorname{Re}\operatorname{tr}[\operatorname{cfc}(t\mapsto t\log_2 t)(M)]H(M)=−Retr[cfc(t↦tlog2​t)(M)], the defined redistribution entanglement rate is

H(ρA)−H(ρAC)−H(ρB)+H(ρCB)2.\frac{H(\rho_A)-H(\rho_{AC})-H(\rho_B)+H(\rho_{CB})}{2}.2H(ρA​)−H(ρAC​)−H(ρB​)+H(ρCB​)​.

The definition requires neither normalization nor nonvanishing of ψ\psiψ, includes empty finite coordinate types, and imposes no sign condition on the resulting real number.

QAlgorithms.Papers.Independent.Gap48.P20.redistributionMarginal

For arbitrary types X,K,FX,K,FX,K,F, with XXX finite, any complex matrix ρ\rhoρ indexed by X×XX\times XX×X, and any functions k:X→Kk:X\to Kk:X→K and f:X→Ff:X\to Ff:X→F, the defined matrix indexed by K×KK\times KK×K has entries

ρk,f(a,b)=∑x∈X∑y∈X{ρxy,k(x)=a, k(y)=b, f(x)=f(y),0,otherwise.\rho_{k,f}(a,b)= \sum_{x\in X}\sum_{y\in X} \begin{cases} \rho_{xy},&k(x)=a,\ k(y)=b,\ f(x)=f(y),\\ 0,&\text{otherwise}. \end{cases}ρk,f​(a,b)=x∈X∑​y∈X∑​{ρxy​,0,​k(x)=a, k(y)=b, f(x)=f(y),otherwise.​

Neither function is required to be injective or surjective, their joint map is not required to identify a product decomposition, and ρ\rhoρ need not be positive or normalized. The types may be empty; if XXX is empty, every entry is zero.

QAlgorithms.Papers.Independent.Gap48.P20.secondSource

For arbitrary types R,A,C,D,BR,A,C,D,BR,A,C,D,B and any complex Euclidean vector ψ\psiψ indexed by R×(A×(C×(D×B)))R\times(A\times(C\times(D\times B)))R×(A×(C×(D×B))), this defines exactly the same vector, now viewed as having source registers A,C,D×B,RA,C,D\times B,RA,C,D×B,R: its coordinate at (r,(a,(c,(d,b))))(r,(a,(c,(d,b))))(r,(a,(c,(d,b)))) remains ψ(r,(a,(c,(d,b))))\psi(r,(a,(c,(d,b))))ψ(r,(a,(c,(d,b)))). There is no normalization hypothesis.

QAlgorithms.Papers.Independent.Gap48.P20.sequentialInitial

For finite index types A,C,D,B,RA,C,D,B,RA,C,D,B,R, any natural number nnn, transfer codes PPP and TTT of the indicated types, and any complex vector ψ\psiψ indexed by R×A×C×D×BR\times A\times C\times D\times BR×A×C×D×B, this defines a matrix vv†vv^\daggervv†, meaning its entry at p,p′p,p'p,p′ is v(p)v(p′)‾v(p)\overline{v(p')}v(p)v(p′)​. Write XnX^nXn for the functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to XXX, write Qj={0,1}j\mathcal Q_j=\{0,1\}^jQj​={0,1}j, and define

ej(s,t)={2−j/2,s=t,0,s≠t.e_j(s,t)= \begin{cases} 2^{-j/2},&s=t,\\ 0,&s\ne t. \end{cases}ej​(s,t)={2−j/2,0,​s=t,s=t.​

The codes contain natural numbers q,k,lq,k,lq,k,l and encoding and decoding channels; PPP has input registers ((A×C)n×Dn)×QP.k((A\times C)^n\times D^n)\times\mathcal Q_{P.k}((A×C)n×Dn)×QP.k​ and receiver registers Bn×QP.kB^n\times\mathcal Q_{P.k}Bn×QP.k​, while TTT has input registers (An×Cn)×QT.k(A^n\times C^n)\times\mathcal Q_{T.k}(An×Cn)×QT.k​ and receiver registers (D×B)n×QT.k(D\times B)^n\times\mathcal Q_{T.k}(D×B)n×QT.k​. Each encoder outputs the retained source register, an Ql\mathcal Q_lQl​ register, and an Qq\mathcal Q_qQq​ message; each decoder outputs the transferred and receiver source registers and another Ql\mathcal Q_lQl​ register. Here a channel admits a finite expression X↦∑jKjXKj†X\mapsto\sum_j K_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Only the codes’ kkk parameters enter this definition. The matrix basis is

p=((r,(sT,tT)),(((a,c),d),sP),(b,tP)),p=\bigl((r,(s_T,t_T)),(((a,c),d),s_P),(b,t_P)\bigr),p=((r,(sT​,tT​)),(((a,c),d),sP​),(b,tP​)),

with the grouping understood as (Rn×(QT.k×QT.k))×((((A×C)n×Dn)×QP.k)×(Bn×QP.k))(R^n\times(\mathcal Q_{T.k}\times\mathcal Q_{T.k})) \times((((A\times C)^n\times D^n)\times\mathcal Q_{P.k}) \times(B^n\times\mathcal Q_{P.k}))(Rn×(QT.k​×QT.k​))×((((A×C)n×Dn)×QP.k​)×(Bn×QP.k​)), and its defining amplitude is

v(p)=(∏i=0n−1ψ(ri,ai,ci,di,bi))eP.k(sP,tP)eT.k(sT,tT).v(p)= \left(\prod_{i=0}^{n-1}\psi(r_i,a_i,c_i,d_i,b_i)\right) e_{P.k}(s_P,t_P)e_{T.k}(s_T,t_T).v(p)=(i=0∏n−1​ψ(ri​,ai​,ci​,di​,bi​))eP.k​(sP​,tP​)eT.k​(sT​,tT​).

There is no normalization assumption on ψ\psiψ. The definition includes n=0n=0n=0, when the product is 111, and zero values of either kkk, when the corresponding bit-string register is a singleton.

QAlgorithms.Papers.Independent.Gap48.P20.sequentialOutput

For finite types A,C,D,B,RA,C,D,B,RA,C,D,B,R, a natural number nnn, transfer codes PPP for (A×C,D,B)(A\times C,D,B)(A×C,D,B) and TTT for (A,C,D×B)(A,C,D\times B)(A,C,D×B), and any vector ψ\psiψ indexed by R×A×C×D×BR\times A\times C\times D\times BR×A×C×D×B, this defines the following matrix. Each code has natural parameters q,k,lq,k,lq,k,l, an encoder from ((Xn×Zn)×{0,1}k)((X^n\times Z^n)\times\{0,1\}^k)((Xn×Zn)×{0,1}k) to (Xn×{0,1}l)×{0,1}q(X^n\times\{0,1\}^l)\times\{0,1\}^q(Xn×{0,1}l)×{0,1}q, and a decoder from {0,1}q×(Yn×{0,1}k)\{0,1\}^q\times(Y^n\times\{0,1\}^k){0,1}q×(Yn×{0,1}k) to (Zn×Yn)×{0,1}l(Z^n\times Y^n)\times\{0,1\}^l(Zn×Yn)×{0,1}l, for its respective triple (X,Z,Y)(X,Z,Y)(X,Z,Y); both maps have finite Kraus representations with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Here XnX^nXn means nnn-tuples. For an encoder FFF on an index set XXX, with outputs U×MU\times MU×M, and a decoder HHH on M×YM\times YM×Y, with outputs VVV, define their combined map explicitly by

FF,H(Z)(u,v),(u′,v′)=∑x,x′,y,y′,m,m′Z(x,y),(x′,y′)F(Exx′)(u,m),(u′,m′)H(E(m,y),(m′,y′))v,v′,\mathcal F_{F,H}(Z)_{(u,v),(u',v')} = \sum_{x,x',y,y',m,m'} Z_{(x,y),(x',y')} F(E_{xx'})_{(u,m),(u',m')} H(E_{(m,y),(m',y')})_{v,v'},FF,H​(Z)(u,v),(u′,v′)​=x,x′,y,y′,m,m′∑​Z(x,y),(x′,y′)​F(Exx′​)(u,m),(u′,m′)​H(E(m,y),(m′,y′)​)v,v′​,

where EabE_{ab}Eab​ is the matrix with its sole nonzero entry 111 at a,ba,ba,b. Applying this map with an identity on a spectator register means applying it separately to every matrix block indexed by a pair of spectator values. Start with vv†vv^\daggervv†, whose amplitude, on the basis ordered as (r,(sT,tT));((ac,d),sP);(b,tP)(r,(s_T,t_T));((ac,d),s_P);(b,t_P)(r,(sT​,tT​));((ac,d),sP​);(b,tP​), is

v=∏i=0n−1ψ(ri,(aci)1,(aci)2,di,bi) eP.k(sP,tP)eT.k(sT,tT),ej(s,t)=2−j/21s=t.v= \prod_{i=0}^{n-1}\psi(r_i,(ac_i)_1,(ac_i)_2,d_i,b_i)\, e_{P.k}(s_P,t_P)e_{T.k}(s_T,t_T), \qquad e_j(s,t)=2^{-j/2}\mathbf1_{s=t}.v=i=0∏n−1​ψ(ri​,(aci​)1​,(aci​)2​,di​,bi​)eP.k​(sP​,tP​)eT.k​(sT​,tT​),ej​(s,t)=2−j/21s=t​.

Apply FP.encoder,P.decoder\mathcal F_{P.\mathrm{encoder},P.\mathrm{decoder}}FP.encoder,P.decoder​, leaving r,sT,tTr,s_T,t_Tr,sT​,tT​ as spectators, to obtain a matrix YYY. Reindex YYY using the map

((r,(uP,vP)),((a,c),sT),(db,tT))⟼((r,(sT,tT)),(ac,uP),((d,b),vP)),\bigl((r,(u_P,v_P)),((a,c),s_T),(db,t_T)\bigr) \longmapsto \bigl((r,(s_T,t_T)),(ac,u_P),((d,b),v_P)\bigr),((r,(uP​,vP​)),((a,c),sT​),(db,tT​))⟼((r,(sT​,tT​)),(ac,uP​),((d,b),vP​)),

where aci=(ai,ci)ac_i=(a_i,c_i)aci​=(ai​,ci​), di=(dbi)1d_i=(db_i)_1di​=(dbi​)1​, and bi=(dbi)2b_i=(db_i)_2bi​=(dbi​)2​; thus the reindexed entry at p,p′p,p'p,p′ is Yregroup(p),regroup(p′)Y_{\mathrm{regroup}(p),\mathrm{regroup}(p')}Yregroup(p),regroup(p′)​. Finally apply FT.encoder,T.decoder\mathcal F_{T.\mathrm{encoder},T.\mathrm{decoder}}FT.encoder,T.decoder​, leaving r,uP,vPr,u_P,v_Pr,uP​,vP​ as spectators. The result is indexed by

(Rn×({0,1}P.l×{0,1}P.l))×((An×{0,1}T.l)×((Cn×(D×B)n)×{0,1}T.l)).(R^n\times(\{0,1\}^{P.l}\times\{0,1\}^{P.l})) \times \bigl((A^n\times\{0,1\}^{T.l}) \times((C^n\times(D\times B)^n)\times\{0,1\}^{T.l})\bigr).(Rn×({0,1}P.l×{0,1}P.l))×((An×{0,1}T.l)×((Cn×(D×B)n)×{0,1}T.l)).

No normalization of ψ\psiψ is required, and n=0n=0n=0 and zero message or entanglement sizes are included.

QAlgorithms.Papers.Independent.Gap48.P20.sequentialTarget

For finite index types A,C,D,B,RA,C,D,B,RA,C,D,B,R, any natural number nnn, transfer codes PPP for (A×C,D,B)(A\times C,D,B)(A×C,D,B) and TTT for (A,C,D×B)(A,C,D\times B)(A,C,D×B), and any complex vector ψ\psiψ on R×A×C×D×BR\times A\times C\times D\times BR×A×C×D×B, this defines vv†vv^\daggervv†, with entries v(p)v(p′)‾v(p)\overline{v(p')}v(p)v(p′)​, on the basis

p=((r,(sP,tP)),((a,sT),((c,db),tT)))p=\bigl((r,(s_P,t_P)),((a,s_T),((c,db),t_T))\bigr)p=((r,(sP​,tP​)),((a,sT​),((c,db),tT​)))

of

(Rn×({0,1}P.l×{0,1}P.l))×((An×{0,1}T.l)×((Cn×(D×B)n)×{0,1}T.l)).(R^n\times(\{0,1\}^{P.l}\times\{0,1\}^{P.l})) \times \bigl((A^n\times\{0,1\}^{T.l}) \times((C^n\times(D\times B)^n)\times\{0,1\}^{T.l})\bigr).(Rn×({0,1}P.l×{0,1}P.l))×((An×{0,1}T.l)×((Cn×(D×B)n)×{0,1}T.l)).

Here XnX^nXn denotes nnn-tuples, and the codes comprise natural message and initial/final entanglement parameters q,k,lq,k,lq,k,l and encoding and decoding channels, each given by a finite Kraus sum X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I, on the respective retained, transferred, receiver, and bit-string registers. Only their final parameters P.l,T.lP.l,T.lP.l,T.l enter this matrix. Its amplitude is

v(p)=(∏i=0n−1ψ(ri,ai,ci,(dbi)1,(dbi)2))eP.l(sP,tP)eT.l(sT,tT),ej(s,t)={2−j/2,s=t,0,s≠t.v(p)= \left(\prod_{i=0}^{n-1} \psi(r_i,a_i,c_i,(db_i)_1,(db_i)_2)\right) e_{P.l}(s_P,t_P)e_{T.l}(s_T,t_T), \qquad e_j(s,t)= \begin{cases} 2^{-j/2},&s=t,\\ 0,&s\ne t. \end{cases}v(p)=(i=0∏n−1​ψ(ri​,ai​,ci​,(dbi​)1​,(dbi​)2​))eP.l​(sP​,tP​)eT.l​(sT​,tT​),ej​(s,t)={2−j/2,0,​s=t,s=t.​

No unit-norm hypothesis is imposed on ψ\psiψ. For n=0n=0n=0 the source product is 111; a zero entanglement parameter gives a singleton register with coefficient 111.

QAlgorithms.Papers.Independent.Gap48.P20.sourceAmplitude

For types A,C,B,RA,C,B,RA,C,B,R, a complex Euclidean vector ψ\psiψ indexed by R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), a natural number nnn, and tuples r:{0,…,n−1}→Rr:\{0,\ldots,n-1\}\to Rr:{0,…,n−1}→R, a:{0,…,n−1}→Aa:\{0,\ldots,n-1\}\to Aa:{0,…,n−1}→A, c:{0,…,n−1}→Cc:\{0,\ldots,n-1\}\to Cc:{0,…,n−1}→C, and b:{0,…,n−1}→Bb:\{0,\ldots,n-1\}\to Bb:{0,…,n−1}→B, the defined source amplitude is

∏i=0n−1ψ(ri,(ai,(ci,bi))).\prod_{i=0}^{n-1}\psi(r_i,(a_i,(c_i,b_i))).i=0∏n−1​ψ(ri​,(ai​,(ci​,bi​))).

There is no normalization hypothesis on ψ\psiψ. For n=0n=0n=0, the product is 111.

QAlgorithms.Papers.Independent.Gap48.P20.subsystemEntropy

For types X,K,FX,K,FX,K,F, with XXX and KKK finite, a complex X×XX\times XX×X matrix ρ\rhoρ, and functions k:X→Kk:X\to Kk:X→K and f:X→Ff:X\to Ff:X→F, form the K×KK\times KK×K matrix

Mab=∑x∈X∑y∈X{ρxy,k(x)=a, k(y)=b, f(x)=f(y),0,otherwise.M_{ab}=\sum_{x\in X}\sum_{y\in X} \begin{cases} \rho_{xy},&k(x)=a,\ k(y)=b,\ f(x)=f(y),\\ 0,&\text{otherwise}. \end{cases}Mab​=x∈X∑​y∈X∑​{ρxy​,0,​k(x)=a, k(y)=b, f(x)=f(y),otherwise.​

The defined subsystem entropy is

−Re⁡tr⁡ ⁣[cfc⁡(t↦tlog⁡2t)(M)],-\operatorname{Re}\operatorname{tr}\!\left[ \operatorname{cfc}\bigl(t\mapsto t\log_2 t\bigr)(M) \right],−Retr[cfc(t↦tlog2​t)(M)],

where cfc⁡\operatorname{cfc}cfc denotes the library’s continuous functional calculus and log⁡2\log_2log2​ is its total real logarithm to base 222. No positivity, Hermiticity, normalization, or compatibility assumptions on ρ,k,f\rho,k,fρ,k,f are required. Empty finite types are included.

QAlgorithms.Papers.Independent.Gap48.P20.swappedSource

For types A,C,B,RA,C,B,RA,C,B,R and a complex Euclidean vector ψ\psiψ indexed by R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)), the defined vector ψ~\widetilde\psiψ​, indexed by R×(B×(C×A))R\times(B\times(C\times A))R×(B×(C×A)), satisfies

ψ~(r,(b,(c,a)))=ψ(r,(a,(c,b))).\widetilde\psi(r,(b,(c,a)))=\psi(r,(a,(c,b))).ψ​(r,(b,(c,a)))=ψ(r,(a,(c,b))).

Thus it reindexes the coefficients by exchanging the AAA and BBB coordinates. No normalization assumption is imposed.

QAlgorithms.Papers.Independent.Gap48.P20.threeForwardApply

For types X,Y,Z,U,V,W,M,NX,Y,Z,U,V,W,M,NX,Y,Z,U,V,W,M,N, with X,Y,Z,M,NX,Y,Z,M,NX,Y,Z,M,N finite, and arbitrary maps on complex matrices F:X→U×MF:X\to U\times MF:X→U×M, G:Y→V×NG:Y\to V\times NG:Y→V×N, and D:M×(N×Z)→WD:M\times(N\times Z)\to WD:M×(N×Z)→W, this defines a map from matrices on X×(Y×Z)X\times(Y\times Z)X×(Y×Z) to matrices on U×(V×W)U\times(V\times W)U×(V×W). Specifically, for every input matrix ρ\rhoρ and output labels p=(u,(v,w))p=(u,(v,w))p=(u,(v,w)), p′=(u′,(v′,w′))p'=(u',(v',w'))p′=(u′,(v′,w′)), its entry is

∑x,x′∈Xy,y′∈Yz,z′∈Zm,m′∈Mt,t′∈Nρ(x,(y,z)),(x′,(y′,z′)) F(Exx′)(u,m),(u′,m′) G(Eyy′)(v,t),(v′,t′) D(E(m,(t,z)),(m′,(t′,z′)))w,w′.\sum_{\substack{x,x'\in X\\y,y'\in Y\\z,z'\in Z\\m,m'\in M\\t,t'\in N}} \rho_{(x,(y,z)),(x',(y',z'))}\, F(E_{xx'})_{(u,m),(u',m')}\, G(E_{yy'})_{(v,t),(v',t')}\, D(E_{(m,(t,z)),(m',(t',z'))})_{w,w'}.x,x′∈Xy,y′∈Yz,z′∈Zm,m′∈Mt,t′∈N​∑​ρ(x,(y,z)),(x′,(y′,z′))​F(Exx′​)(u,m),(u′,m′)​G(Eyy′​)(v,t),(v′,t′)​D(E(m,(t,z)),(m′,(t′,z′))​)w,w′​.

Here EabE_{ab}Eab​ is the matrix with entry 111 at (a,b)(a,b)(a,b) and zero elsewhere, and each arrow between label types denotes a function between their complex square-matrix spaces. No linearity, positivity, trace preservation, or channel hypothesis is imposed on F,G,DF,G,DF,G,D, and U,V,WU,V,WU,V,W need not be finite or nonempty. All sums are finite; if any of the summed-over types is empty, every output entry is zero.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 2026

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

  • 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