Definitions for The operational meaning of quantum conditional information
DefinitionQAlgorithms_Papers_Independent_Gap48_P20The 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.
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
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 , any vector , and , this predicate means and that, for every and , there is such that every with admits natural numbers and channels
whose encoder satisfies for every complex input matrix , all , and all in , and for which
Here is the type of length- strings over , , and each channel has a finite Kraus expression with . Put . The matrix is the output obtained from the outer product of , by applying to and then to the resulting message together with , minus the outer product of the target vector on ; the reference register is untouched. The square root uses continuous functional calculus. There is no bound on , and need not be normalized. Empty finite types and zero are allowed; when , the distinct-message condition is vacuous.
QAlgorithms.Papers.Independent.Gap48.P20.ClassicalPairAchievable
For arbitrary finite types , any vector , and real numbers , this predicate means and that, for every and , some has the following property: every with admits natural numbers and finite Kraus channels
such that for every complex input matrix , all , and all distinct , and
Here denotes length- strings over , , and a finite Kraus channel is with . For , the matrix is obtained by applying and then , with the reference untouched, to the outer product of the vector , and subtracting the outer product of on the final registers . Initially the two -bit strings lie beside and , respectively; the decoder receives the encoder’s -bit message and the latter registers. The square root is by continuous functional calculus, and is real subtraction. No normalization or nonemptiness assumption is made, may have either sign, and zero are permitted; for , the condition on distinct messages is vacuous.
QAlgorithms.Papers.Independent.Gap48.P20.Copies
For any type and natural number , is the type of functions , that is, ordered -tuples of elements of . When , this type contains exactly the empty tuple, even if is empty.
QAlgorithms.Papers.Independent.Gap48.P20.InGeneratedRegion
For finite index types , any complex Euclidean vector on , and any real vector , this predicate has the following meaning. Let , where , is obtained by summing entries with prescribed -coordinates and matching complementary coordinates, and is applied by continuous functional calculus. For a grouping into sender register , transferred register , receiver register , and remaining register , define
and set
The predicate says that there exist and such that
The endpoints are allowed, and 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 , any vector , and real numbers , this predicate means and the following: for every and , there is such that, for every with , there are natural numbers and channels
satisfying
Here means length- strings over , , and a channel acts on matrices by a finite Kraus sum with . To define , put . Start with the outer product of the vector , where the two -bit registers are respectively beside and . Apply , then to the message and the latter registers, preserving ; subtract the outer product of the target vector , whose two -bit registers are respectively beside and . This difference is , and its matrix square root above is defined by continuous functional calculus. The subtraction is real and may be negative. No normalization of , nonemptiness of the finite types, or sign restriction on is imposed; may be zero, and the requirement concerns only positive block lengths.
QAlgorithms.Papers.Independent.Gap48.P20.RedistributionSource
For arbitrary types , is the product type . Its elements have the form ; no finiteness or nonemptiness assumptions are imposed by this abbreviation.
QAlgorithms.Papers.Independent.Gap48.P20.ReversiblyAchievable
For finite types , any complex vector indexed by , and real numbers , this predicate means that and, for every and , there exists such that every with admits the following code. It has natural numbers , an encoder from to , and a decoder from to ; both matrices satisfy . Let preserve and have entries . Let and have source amplitude , all respective workspace labels zero, and entangled-register factors and , respectively; initially Alice holds and Bob holds , and in the target Alice holds and Bob holds . The requirements are
Here , , and , using real continuous functional calculus. The last two inequalities together say . There is no normalization hypothesis on , no sign restriction on , and no requirement at block length zero; the finite types may be empty.
QAlgorithms.Papers.Independent.Gap48.P20.SuccessivelyAchievable
For finite types , any complex vector indexed by , and any real numbers , this predicate means that for every and , there is a natural number such that for every natural with , there exist transfer codes for and for satisfying
All code parameters are natural numbers, but the subtractions in these inequalities are real subtractions and may be negative. A transfer code for consists of these parameters and channels from to , and from to ; a channel has a finite Kraus representation with . For each individual error, initialize the source with amplitudes and an entangled pair having coefficients , 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 . For , the retained, transferred, and receiver source registers are respectively ; for , they are , using the same original with that grouping. The sequential error initializes both codes’ -pairs, applies , regroups into and into , applies , and compares with the rank-one matrix of the unchanged source and both -pairs, retaining ’s final pair as spectators during . Each comparison uses
of the output-minus-target matrix; a rank-one matrix of a vector has entries . There is no normalization hypothesis on and no separate nonnegativity requirement on any of the four proposed rates.
QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode.initial
For finite types , a type , , a three-party code having natural resource counts and its three channels, and any vector indexed by , this defines the matrix , meaning that its -entry is . Its basis labels are
where , , , , , , , and , with . The defining amplitude is
No normalization hypothesis on is imposed, so the name does not itself assert that this matrix has trace . The three channels and the other four resource counts do not enter the formula. At the source-amplitude product is , and a zero entanglement count gives the unique empty bit string with factor .
QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode
For finite types and , this structure consists of six natural numbers and three maps on complex square matrices, with register domains and codomains
An arrow here denotes a function from matrices indexed by to matrices indexed by , not a function between basis labels. Each of these three maps must admit a finite Kraus representation: for some and matrices , indexed by , it acts on every matrix as , with . Here and . All resource counts and 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 three-party code , and any vector indexed by , this defines
Here has entries , and the square root is real continuous functional calculus. Write and . The input amplitude, with registers ordered as , Alice’s , Bob’s , and Charlie’s , is
The target has the same source-amplitude product, factors , and register order , Alice’s , Bob’s , and Charlie’s . The map applies Alice’s channel to her input and Bob’s channel to his input, retains their respective and outputs, and applies Charlie’s channel to their - and -qubit messages together with Charlie’s input. Explicitly, if these channels have Kraus matrices , each family satisfying , then , where
The identity on means applying this map separately to each reference-index block. No normalization of is required; and all six resource counts may be zero, with empty products equal to . This is the full displayed trace norm, without a factor of .
QAlgorithms.Papers.Independent.Gap48.P20.ThreeCode.redistributionTargetDensity
For finite types , a type , , a three-party code with natural resource counts and its three channels, and any vector indexed by , this defines the matrix , whose entries are . Its basis labels are
where , , , , , , , and , with . The amplitude is
No normalization of is assumed. Only among the code’s resource counts enter this formula, and none of its channels does. At the product is ; when either entanglement count is zero, its bit-string register is a singleton and its displayed factor is .
QAlgorithms.Papers.Independent.Gap48.P20.ThreePartyAchievable
For finite types , any vector indexed by , and four real numbers , this predicate means and the following: for every , there is such that every with admits natural counts and channels
Each channel acts on matrices and has a finite representation with . Starting from the pure matrix whose vector has amplitude
Alice holds , Bob holds , Charlie holds , and 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 , from the pure matrix with the same source-amplitude product, pair factors and , and registers allocated as Alice’s , Bob’s , and Charlie’s . The resource requirements are
Here , a pure matrix has entries , and the trace norm is , using real continuous functional calculus and no factor of . Neither nor is required to be nonnegative, their resource bounds are only upper bounds, and is not required to have norm . Empty finite types are included; block length zero is excluded from the eventual requirement.
QAlgorithms.Papers.Independent.Gap48.P20.ThreeSource
For arbitrary types , this abbreviates the type
Thus an element is exactly a nested tuple with , , , , , and . There are no finiteness, nonemptiness, normalization, or other conditions.
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.HasRedistributionClassicalMessage
For finite types , , and a transfer code with natural parameters , this predicate requires every output of its encoder to have zero entries between distinct message strings. Explicitly, write and . The code has an encoder channel from to , and a decoder channel from to ; each is of the form for a finite family with . The predicate is
where ranges over all complex square matrices on the encoder input, without positivity or trace restrictions. When , there is only one message string, so the condition holds vacuously.
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.initial
For finite types , a type , a natural number , a transfer code at , and any complex Euclidean vector on , the defined initial matrix is indexed by tuples , grouped as , , and . The code has natural fields and encoder and decoder maps with finite Kraus representations satisfying , on the input and output registers described by those fields. Define
Then the initial matrix has entries . No normalization assumption is imposed on . For , the source product is ; for , the Boolean registers each contain only the empty string and the displayed entangled-state factor is .
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode
For finite types and a natural number , a transfer code consists of natural numbers , an encoder mapping complex matrices on to complex matrices on , and a decoder mapping complex matrices on to complex matrices on . Here means functions , and means Boolean strings of length . Each map must admit a finite Kraus representation: there exist a natural number and rectangular complex matrices from its input space to its output space such that
The natural numbers 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 , , and a transfer code , this defines the real number , with both natural numbers converted to real numbers before subtraction. Here a transfer code has natural parameters , an encoder channel from to , and a decoder channel from to , where is the type of length- strings over . Each channel has a finite Kraus representation satisfying . The result may be negative when ; it is not truncated natural-number subtraction. All three parameters and may be zero.
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionError
For finite types , , a transfer code , and any vector , this defines a real number as follows. Write , , and . The code consists of these natural parameters and finite Kraus channels and , where a finite Kraus channel acts by with . Start with the outer product of the vector having amplitude
at . Apply to , then apply to the resulting register together with , preserving the reference register, to obtain . Let be the outer product of the vector with amplitude
at . With , the defined error is
where the square root is obtained by continuous functional calculus. There is no factor of . The vector need not have norm ; zero parameters and empty finite types are included.
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionOutputDensity
For finite types , , a transfer code , and any vector , write , , and . The code provides channels from to , and from to ; each channel admits a finite Kraus representation with . Put
Writing for the matrix with its only nonzero entry, , at , the defined output matrix is
Thus the reference indices are preserved while the two maps are combined by this formula. No normalization of is required; may be zero, and empty products are .
QAlgorithms.Papers.Independent.Gap48.P20.TransferCode.redistributionTargetDensity
For finite types , a natural number , a transfer code , and any vector , this defines a matrix on , where denotes functions , , and . The code has natural parameters , an encoder channel from to , and a decoder channel from to ; a channel here is a map for some finite family satisfying . Define
The defined matrix has entries . No normalization of or nonemptiness of the finite types is assumed. The definition includes , when the product defining is , and , when has one element.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.Input
For finite source index types , a natural number , and a unitary redistribution code —with natural parameters and encoder and decoder matrices each satisfying both adjoint-product identity equations—this abbreviation denotes the index type
Here means functions from to . 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 makes each source-copy register a singleton.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.RedistributionOutputBasis
For finite source index types , a natural number , and a unitary redistribution code , whose natural parameters specify message, entanglement, and work sizes and whose encoder and decoder matrices satisfy both adjoint-product identity equations, this abbreviation denotes
Here denotes the functions from to . It specifies a basis index type without asserting any state, initialization, or successful transfer. Zero work parameters give singleton work index sets, zero gives singleton bit-string registers, and gives singleton source-copy registers.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.forwardError
For finite types , a natural number , a unitary redistribution code , and any vector on , this defines the real number
Here by ordinary matrix–vector multiplication, and and have entries and . The code has natural parameters , an encoder from to , and a decoder from to ; each matrix satisfies both and . Writing input indices as and output indices as , the matrix used above is
The input vector , at registers , has coefficient when both input work indices are , and zero otherwise. The target vector has the same source product, the factor on the two output entanglement registers, and coefficient zero unless both output work indices are . 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 , no factor in this trace norm, and the definition includes and zero code parameters.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.globalMatrix
For finite types , a natural number , and a unitary redistribution code with natural parameters , let
Here means -tuples. The code’s encoder , from columns to rows , and decoder , from columns to rows , each satisfy both and . This definition gives a complex matrix from columns to rows by
Thus the message index is summed, while the reference tuple must agree exactly. No source vector is an argument. The formula includes , and when the message sum has one term.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode
For finite types and any natural number , this structure consists of seven natural numbers and two complex matrices . Writing for -tuples, , and , the encoder matrix has column and row index sets
respectively, while the decoder matrix has column and row index sets
respectively. Its four required equations are
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; and are singletons, and when , every is a singleton even if is empty.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.redistributionInputVector
For finite types , any natural number , a unitary redistribution code with natural message, entanglement, and work parameters and encoder and decoder matrices satisfying both adjoint-product identity equations, and any vector on , this defines a vector indexed by
where , , , , , , and . Its coefficient is
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 . The work index sets always contain ; for the source product is , and for the entangled-pair factor is on its singleton index set.
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.redistributionTargetVector
For finite types , any natural number , a unitary redistribution code with natural message, entanglement, and work parameters and encoder and decoder matrices satisfying both adjoint-product identity equations, and any vector on , this defines a vector indexed by
where , , , , , , and . Its coefficient is
No normalization assumption is made on , and this definition does not assert that the encoder and decoder produce this vector. Zero work parameters still allow the designated index ; makes the source product , and makes the bit-string pair a singleton with coefficient .
QAlgorithms.Papers.Independent.Gap48.P20.UnitaryRedistributionCode.reverseError
For finite types , a natural number , a unitary redistribution code , and any complex vector indexed by , this defines the real number
Here matrix square roots mean the real continuous functional calculus, and has entries . The code has natural-number parameters ; its encoder and decoder are rectangular matrices satisfying both and , with register maps
where means functions from to . Its global matrix preserves the reference string and has entries
The input vector has amplitude
on reference , Alice’s registers , and Bob’s registers . The target has the same product of source amplitudes, factor , and both output workspace labels equal to zero, with at Alice and at Bob. Matrix action is ordinary matrix–vector multiplication. No normalization of is required, all resource parameters may be zero, and for the source-amplitude product is .
QAlgorithms.Papers.Independent.Gap48.P20.aliceFirst
For types and any complex vector indexed by , this defines the vector indexed by
whose coordinates are
It is exactly this rearrangement of coordinates: the reference label becomes , while the other three labels are . No normalization hypothesis or additional constraint on the vector is imposed.
QAlgorithms.Papers.Independent.Gap48.P20.aliceFirstCorner
For finite index types and any complex Euclidean vector on the six registers , form the matrix . For any collection of these registers, let be its marginal, whose -entry is the sum of over all full indices with , , and identical coordinates outside , and write , where is applied by continuous functional calculus. The definition gives the following real vector, indexed in order by :
Here juxtaposition denotes a collection of distinct named registers. No normalization of , 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 and any complex Euclidean vector indexed by , this defines a vector indexed by by regrouping its coordinates:
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 and any complex Euclidean vector indexed by , this defines a vector indexed by by regrouping its coordinates:
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 and any complex Euclidean vector on the six registers , form . For any collection of registers, define its marginal by summing over full indices with prescribed -coordinates and equal coordinates outside , and put , with applied by continuous functional calculus. The definition gives the real vector with coordinates
Juxtaposition denotes a collection of distinct named registers. No normalization of , 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 and any complex vector indexed by , this defines the vector indexed by
whose coordinates are
Thus the reference label is , the next two labels are , and the final label is . The definition only rearranges coordinates and assumes no normalization or other property of .
QAlgorithms.Papers.Independent.Gap48.P20.catAlice
This defines a function from complex matrices indexed by Boolean pairs to complex matrices indexed by Booleans:
The definition applies to every input matrix , without requiring positivity or trace one.
QAlgorithms.Papers.Independent.Gap48.P20.catAliceKraus
For each Boolean value , this defines a complex matrix with Boolean row index and Boolean-pair column index , whose entries are
Here denotes the Boolean value of the inequality, equivalently .
QAlgorithms.Papers.Independent.Gap48.P20.catBob
This defines a function from complex matrices indexed by Booleans to complex matrices indexed by Boolean pairs:
Equivalently, when and , and is zero otherwise; no condition is imposed on .
QAlgorithms.Papers.Independent.Gap48.P20.catBobIsometry
This defines a complex matrix with Boolean-pair row index and Boolean column index , given by
Thus its action on a coordinate basis vector is .
QAlgorithms.Papers.Independent.Gap48.P20.catInput
This defines a complex matrix indexed by tuples of Booleans as the outer product , where
Consequently, its entry at and is 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 , with amplitudes
Equivalently, the vector is , with this specified register order.
QAlgorithms.Papers.Independent.Gap48.P20.conditionalCost
For finite types and any complex Euclidean vector indexed by tuples , define its subsystem matrices by summing over the complementary coordinates; explicitly,
Here abbreviates . Writing
the defined conditional cost is . The vector is not required to have norm ; zero vectors and empty finite index types are included.
QAlgorithms.Papers.Independent.Gap48.P20.firstSource
For arbitrary types and any complex Euclidean vector indexed by , this defines a vector indexed by through
There is no normalization hypothesis.
QAlgorithms.Papers.Independent.Gap48.P20.forwardApply
For types , with finite, let be any function from complex matrices to complex matrices indexed by , and let be any function from complex matrices indexed by to complex matrices. The defined function sends a matrix indexed by to the matrix indexed by with entries
where is the matrix with entry at 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 and any complex Euclidean vector indexed by , this defines a vector indexed by by regrouping coordinates:
There is no normalization hypothesis.
QAlgorithms.Papers.Independent.Gap48.P20.localProduct
For arbitrary types , with finite enumerations of and , and arbitrary functions from complex matrices to complex matrices and from complex matrices to complex matrices, this defines a function on matrices indexed by through
where and have a single entry at the indicated position and zero elsewhere. Neither linearity nor any channel property is assumed for or ; if or is empty, the displayed sum is zero.
QAlgorithms.Papers.Independent.Gap48.P20.mergingClassicalCost
For arbitrary finite types and any vector , this defines the real number
For each displayed collection of subsystem labels, group the coordinates of into retained coordinates belonging to and forgotten coordinates , and define
where is obtained by continuous functional calculus. Thus forgets , forgets , and forgets . No norm-one condition on or nonemptiness condition on the finite types is imposed; in particular, these matrices are not required by the declaration to have trace .
QAlgorithms.Papers.Independent.Gap48.P20.quantumCost
For finite types and any complex Euclidean vector on , let , for each coordinate collection , have entries
where ranges over the complementary coordinates and the arguments of are restored to the order . Define . The defined quantum cost is exactly
No normalization or nonzero condition is imposed on , and the finite coordinate types may be empty.
QAlgorithms.Papers.Independent.Gap48.P20.redistributionEntanglementRate
For finite types and any complex Euclidean vector on , let denote the matrix whose entry is , summing over the coordinates complementary to and restoring the argument order . With , the defined redistribution entanglement rate is
The definition requires neither normalization nor nonvanishing of , includes empty finite coordinate types, and imposes no sign condition on the resulting real number.
QAlgorithms.Papers.Independent.Gap48.P20.redistributionMarginal
For arbitrary types , with finite, any complex matrix indexed by , and any functions and , the defined matrix indexed by has entries
Neither function is required to be injective or surjective, their joint map is not required to identify a product decomposition, and need not be positive or normalized. The types may be empty; if is empty, every entry is zero.
QAlgorithms.Papers.Independent.Gap48.P20.secondSource
For arbitrary types and any complex Euclidean vector indexed by , this defines exactly the same vector, now viewed as having source registers : its coordinate at remains . There is no normalization hypothesis.
QAlgorithms.Papers.Independent.Gap48.P20.sequentialInitial
For finite index types , any natural number , transfer codes and of the indicated types, and any complex vector indexed by , this defines a matrix , meaning its entry at is . Write for the functions from to , write , and define
The codes contain natural numbers and encoding and decoding channels; has input registers and receiver registers , while has input registers and receiver registers . Each encoder outputs the retained source register, an register, and an message; each decoder outputs the transferred and receiver source registers and another register. Here a channel admits a finite expression with . Only the codes’ parameters enter this definition. The matrix basis is
with the grouping understood as , and its defining amplitude is
There is no normalization assumption on . The definition includes , when the product is , and zero values of either , when the corresponding bit-string register is a singleton.
QAlgorithms.Papers.Independent.Gap48.P20.sequentialOutput
For finite types , a natural number , transfer codes for and for , and any vector indexed by , this defines the following matrix. Each code has natural parameters , an encoder from to , and a decoder from to , for its respective triple ; both maps have finite Kraus representations with . Here means -tuples. For an encoder on an index set , with outputs , and a decoder on , with outputs , define their combined map explicitly by
where is the matrix with its sole nonzero entry at . 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 , whose amplitude, on the basis ordered as , is
Apply , leaving as spectators, to obtain a matrix . Reindex using the map
where , , and ; thus the reindexed entry at is . Finally apply , leaving as spectators. The result is indexed by
No normalization of is required, and and zero message or entanglement sizes are included.
QAlgorithms.Papers.Independent.Gap48.P20.sequentialTarget
For finite index types , any natural number , transfer codes for and for , and any complex vector on , this defines , with entries , on the basis
of
Here denotes -tuples, and the codes comprise natural message and initial/final entanglement parameters and encoding and decoding channels, each given by a finite Kraus sum with , on the respective retained, transferred, receiver, and bit-string registers. Only their final parameters enter this matrix. Its amplitude is
No unit-norm hypothesis is imposed on . For the source product is ; a zero entanglement parameter gives a singleton register with coefficient .
QAlgorithms.Papers.Independent.Gap48.P20.sourceAmplitude
For types , a complex Euclidean vector indexed by , a natural number , and tuples , , , and , the defined source amplitude is
There is no normalization hypothesis on . For , the product is .
QAlgorithms.Papers.Independent.Gap48.P20.subsystemEntropy
For types , with and finite, a complex matrix , and functions and , form the matrix
The defined subsystem entropy is
where denotes the library’s continuous functional calculus and is its total real logarithm to base . No positivity, Hermiticity, normalization, or compatibility assumptions on are required. Empty finite types are included.
QAlgorithms.Papers.Independent.Gap48.P20.swappedSource
For types and a complex Euclidean vector indexed by , the defined vector , indexed by , satisfies
Thus it reindexes the coefficients by exchanging the and coordinates. No normalization assumption is imposed.
QAlgorithms.Papers.Independent.Gap48.P20.threeForwardApply
For types , with finite, and arbitrary maps on complex matrices , , and , this defines a map from matrices on to matrices on . Specifically, for every input matrix and output labels , , its entry is
Here is the matrix with entry at 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 , and need not be finite or nonempty. All sums are finite; if any of the summed-over types is empty, every output entry is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.