Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Quantum information can be negative

Definition
QAlgorithms_Papers_Independent_Gap20_P11

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

prove2quantum

The objects the formalized statements of Quantum information can be negative (arXiv:quant-ph/0505062) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • classicalCost: PDF pp.3–4: I(A:R) for any purification, computed from rho_AB alone.
  • marginalAR: PDF p.4: the actual AR marginal, keeping off-diagonal reference blocks.
  • referenceInformation: PDF p.4: the mutual information of Alice and the inaccessible reference.
  • finTransport: PDF pp.2–3: basis transport of a physical two-party map, with no identification of Alice's and Bob's registers or of their operations.
  • IsLOCC: PDF pp.2–3: an actual finite adaptive LOCC map, in the physical bases. There is no joint quantum gate or free entanglement constructor.
  • mergingInput: PDF p.3: n source copies and k independently supplied Bell pairs. The order is R,(Alice source,Alice Bell),(Bob source,Bob Bell).
  • mergingTarget: PDF p.3: the entire ideal output. Alice holds only her final Bell halves; Bob holds both source shares and his final Bell halves.
  • MergingReconstructs: PDF pp.2–3: full reconstruction, uniformly over purifications of rho_AB. The fixed canonical reference dimension avoids any choice of a hidden realization. Trace-norm error tending to zero is equivalent to the source's fidelity tending to one, for these normalized inputs and the normalized pure target.
  • MergingCode: PDF pp.2–3: a general adaptive LOCC merging code with separate integer input/output entanglement resources. Validity is a property of its physical map.
  • MergingAchievable: PDF p.2: asymptotic signed ebit consumption per source copy. A quantum channel can distribute each consumed Bell pair; teleportation implements the opposite conversion using the permitted classical communication. No finite block count is equated to a generally irrational entropy.
  • productApply: PDF pp.3–4: tensor action defined on every matrix unit, so it retains all coherences and entanglement with arbitrary external registers.
  • MergingOneWayCode: PDF pp.3–4: Alice's actual instrument and Bob's outcome-conditioned channel. The private Kraus index is not communicated; only the finite outcome is sent. Bob receives no quantum message.
  • MergingOneWayCode.operation: PDF pp.3–4: sum over the communicated classical outcome; the private Kraus environment is traced out. This is the map of the stated LOCC protocol.
  • MergingConstruction: PDF pp.2–4: construction with a simultaneous signed ebit rate and cbit rate. For negative conditional entropy it supplies no initial EPR pairs at all. For positive cost it consumes at most n(e+delta) pairs, which can be distributed using that many qubits. The joint error includes the retained final EPR pairs.
  • unknownQubit: PDF pp.3–4, example 1: maximally mixed Alice qubit, trivial Bob register.
  • DirectCode: PDF pp.3–4, example 1: an actual single forward quantum register. Its dimension is 2^q; it is transmitted between the two local maps.
  • directQubit: PDF pp.3–4: the direct one-qubit transmission alternative.
  • teleportRow: PDF p.4: Bell measurement bra indexed by bit flip x and phase flip z. Each branch includes Alice's input and her half of one supplied EPR pair.
  • teleportCorrection: PDF p.4: correction Z^z X^x conditional on the two classical bits.
  • teleportOperation: PDF p.4: teleportation uses only a Bell measurement and a conditional local correction after one Bell pair has been supplied.
  • teleportReferenceInput: PDF pp.3–4: attach the charged Bell resource, retaining every reference block.
  • correlatedPurification: PDF p.4, example 2: canonical coherent purification, in R,A,B order.
  • plusMinusRow: PDF p.4: normalized plus/minus measurement bra, with true denoting minus.
  • correlatedDecoder: PDF p.4: conditional isometry at Bob, |b> ↦ (-1)^(s b)|bb>. The first output is the new local A-prime ancilla; no operation acts on R.
  • correlatedOperation: PDF p.4: Alice measures, sends one cbit, and Bob coherently copies and corrects. There is no quantum message and no supplied entanglement.
  • correlatedTarget: PDF p.4: target includes the reference and the reconstructed coherent source.
  • bobPreparesBell: PDF p.4, example 3: Bob prepares the known pure source Bell pair locally, retaining his original EPR half as the last output register.
  • bellMergingOperation: PDF p.4: keep the old shared resource and prepare the source at Bob. Output ownership is Alice old-half, then (Bob's new source, Bob old-half).
  • bellMergingTarget: PDF p.4: one shared Bell pair and, independently, the reconstructed source Bell pair entirely at Bob; this is not cloning an unknown state.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P20
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67

/-!
Horodecki, Oppenheim and Winter, Quantum information can be negative,
arXiv:quant-ph/0505062v1, PDF pp.1–7.

All registers are finite and nonzero at the theorem boundary. Entropies are
in bits. A block code acts on physical registers only, leaving R untouched.
The rate predicates quantify a code BEFORE every purification of the same
source density operator. The fixed reference A × B is large enough to purify
any density on A × B; invariance under reference isometries gives the usual
arbitrary-reference criterion. Errors include the entire final Bell resource.

The accepted FiniteLOCC predicate is reused with explicit basis transport.
It includes arbitrary finite numbers of adaptive rounds, not only one-way
codes. Ancillas and disposal are rectangular local Kraus operations. In the
vanishing-error operational rate, limits of protocols add no rates: approximate
or truncate each block protocol before assigning its error budget.

The independent-paper override permits importing reviewed accepted modules.
No result from the imported paper is used as a hypothesis or as this paper's
merging theorem; only its complete FiniteLOCC definition is used.
Copies, conditionalEntropy and the Bool specialization of the general Bell
vector are imported from the pinned accepted library rather than redeclared.
The sampling predicate Renew46.P05.Reconstructs, the general resource-port
Renew46.P34.OneWayCode and the unreferenced Information100.P21.teleportInput
have different types and tasks. The distinct local merging/reference concepts
use explicit names; ASSESSMENT.json records each comparison and decision.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Gap20.P11

open scoped Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Information100.P67 (conditionalEntropy)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.3–4: I(A:R) for any purification, computed from rho_AB alone. -/
def classicalCost {A B : Type} [Fintype A] [Fintype B]
    (rho : Matrix (A × B) (A × B) ℂ) : ℝ :=
  vnEntropy (traceRight rho) + conditionalEntropy rho

/-- PDF p.4: the actual AR marginal, keeping off-diagonal reference blocks. -/
def marginalAR {A B R : Type} [Fintype B]
    (rho : Matrix (R × (A × B)) (R × (A × B)) ℂ) :
    Matrix (A × R) (A × R) ℂ :=
  fun p q => ∑ b, rho (p.2, (p.1, b)) (q.2, (q.1, b))

/-- PDF p.4: the mutual information of Alice and the inaccessible reference. -/
def referenceInformation {A B R : Type} [Fintype A] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (R × (A × B))) : ℝ :=
  vnEntropy (traceRight (traceLeft (pureDensity psi))) +
    vnEntropy (traceRight (pureDensity psi)) - vnEntropy (marginalAR (pureDensity psi))

/-- PDF pp.2–3: basis transport of a physical two-party map, with no
identification of Alice's and Bob's registers or of their operations. -/
def finTransport {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (Phi : Superop (A × B) (C × D)) :
    Superop (Fin (Fintype.card A) × Fin (Fintype.card B))
      (Fin (Fintype.card C) × Fin (Fintype.card D)) :=
  let a := Fintype.equivFin A
  let b := Fintype.equivFin B
  let c := Fintype.equivFin C
  let d := Fintype.equivFin D
  fun X p q => Phi (fun i j => X (a i.1, b i.2) (a j.1, b j.2))
    (c.symm p.1, d.symm p.2) (c.symm q.1, d.symm q.2)

/-- PDF pp.2–3: an actual finite adaptive LOCC map, in the physical bases.
There is no joint quantum gate or free entanglement constructor. -/
def IsLOCC {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (Phi : Superop (A × B) (C × D)) : Prop :=
  QAlgorithms.Papers.Independent.Information100.P21.FiniteLOCC (finTransport Phi)

/-- PDF p.3: n source copies and k independently supplied Bell pairs.
The order is R,(Alice source,Alice Bell),(Bob source,Bob Bell). -/
def mergingInput {A B R : Type} (psi : EuclideanSpace ℂ (R × (A × B)))
    (n k : ℕ) :
    EuclideanSpace ℂ (Copies R n × ((Copies A n × Qubits k) × (Copies B n × Qubits k))) :=
  WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1 i, (p.2.1.1 i, p.2.2.1 i))) *
      maxEntangled k (p.2.1.2, p.2.2.2)

/-- PDF p.3: the entire ideal output. Alice holds only her final Bell halves;
Bob holds both source shares and his final Bell halves. -/
def mergingTarget {A B R : Type} (psi : EuclideanSpace ℂ (R × (A × B)))
    (n l : ℕ) :
    EuclideanSpace ℂ (Copies R n × (Qubits l × ((Copies A n × Copies B n) × Qubits l))) :=
  WithLp.toLp 2 fun p =>
    tensorPow n psi (fun i => (p.1 i, (p.2.2.1.1 i, p.2.2.1.2 i))) *
      maxEntangled l (p.2.1, p.2.2.2)

/-- PDF pp.2–3: full reconstruction, uniformly over purifications of rho_AB.
The fixed canonical reference dimension avoids any choice of a hidden realization.
Trace-norm error tending to zero is equivalent to the source's fidelity tending
to one, for these normalized inputs and the normalized pure target. -/
def MergingReconstructs {A B : Type} [Fintype A] [Fintype B]
    (rho : Matrix (A × B) (A × B) ℂ) (n k l : ℕ)
    (Phi : Superop ((Copies A n × Qubits k) × (Copies B n × Qubits k))
      (Qubits l × ((Copies A n × Copies B n) × Qubits l))) (eps : ℝ) : Prop :=
  ∀ psi : EuclideanSpace ℂ ((A × B) × (A × B)),
    IsState psi → traceLeft (pureDensity psi) = rho →
      traceNorm (idTensorSuperop Phi (pureDensity (mergingInput psi n k)) -
        pureDensity (mergingTarget psi n l)) ≤ eps

/-- PDF pp.2–3: a general adaptive LOCC merging code with separate integer
input/output entanglement resources. Validity is a property of its physical map. -/
structure MergingCode (A B : Type) [Fintype A] [Fintype B] (n : ℕ) where
  k : ℕ
  l : ℕ
  operation : Superop ((Copies A n × Qubits k) × (Copies B n × Qubits k))
    (Qubits l × ((Copies A n × Copies B n) × Qubits l))
  locc : IsLOCC operation

/-- PDF p.2: asymptotic signed ebit consumption per source copy. A quantum
channel can distribute each consumed Bell pair; teleportation implements the
opposite conversion using the permitted classical communication. No finite
block count is equated to a generally irrational entropy. -/
def MergingAchievable {A B : Type} [Fintype A] [Fintype B]
    (rho : Matrix (A × B) (A × B) ℂ) (rate : ℝ) : Prop :=
  ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ, ∀ n ≥ N, 1 ≤ n →
    ∃ P : MergingCode A B n,
      MergingReconstructs rho n P.k P.l P.operation eps ∧
        (P.k : ℝ) - (P.l : ℝ) ≤ (n : ℝ) * (rate + delta)

/-- PDF pp.3–4: tensor action defined on every matrix unit, so it retains all
coherences and entanglement with arbitrary external registers. -/
def productApply {A B C D : Type} [Fintype A] [Fintype B]
    (Phi : Superop A C) (Psi : Superop B D) : Superop (A × B) (C × D) :=
  fun X p q => ∑ a, ∑ a2, ∑ b, ∑ b2,
    X (a, b) (a2, b2) * Phi (Matrix.single a a2 1) p.1 q.1 *
      Psi (Matrix.single b b2 1) p.2 q.2

/-- PDF pp.3–4: Alice's actual instrument and Bob's outcome-conditioned
channel. The private Kraus index is not communicated; only the finite outcome
is sent. Bob receives no quantum message. -/
structure MergingOneWayCode (A B : Type) [Fintype A] [Fintype B] (n : ℕ) where
  k : ℕ
  l : ℕ
  outcomes : ℕ
  outcomes_pos : 0 < outcomes
  environment : ℕ
  alice : (Fin outcomes × Fin environment) →
    Matrix (Qubits l) (Copies A n × Qubits k) ℂ
  complete : IsKrausFamily alice
  bob : Fin outcomes → Superop (Copies B n × Qubits k)
    ((Copies A n × Copies B n) × Qubits l)
  bob_channel : ∀ s, IsChannel (bob s)

/-- PDF pp.3–4: sum over the communicated classical outcome; the private
Kraus environment is traced out. This is the map of the stated LOCC protocol. -/
def MergingOneWayCode.operation {A B : Type} [Fintype A] [Fintype B] {n : ℕ}
    (P : MergingOneWayCode A B n) :
    Superop ((Copies A n × Qubits P.k) × (Copies B n × Qubits P.k))
      (Qubits P.l × ((Copies A n × Copies B n) × Qubits P.l)) :=
  fun X => ∑ s, productApply (krausApply (fun e => P.alice (s, e))) (P.bob s) X

/-- PDF pp.2–4: construction with a simultaneous signed ebit rate and cbit
rate. For negative conditional entropy it supplies no initial EPR pairs at all.
For positive cost it consumes at most n(e+delta) pairs, which can be distributed
using that many qubits. The joint error includes the retained final EPR pairs. -/
def MergingConstruction {A B : Type} [Fintype A] [Fintype B]
    (rho : Matrix (A × B) (A × B) ℂ) (c e : ℝ) : Prop :=
  ∀ eps > (0 : ℝ), ∀ delta > (0 : ℝ), ∃ N : ℕ, ∀ n ≥ N, 1 ≤ n →
    ∃ P : MergingOneWayCode A B n,
      MergingReconstructs rho n P.k P.l P.operation eps ∧
      Real.logb 2 (P.outcomes : ℝ) ≤ (n : ℝ) * (c + delta) ∧
      (P.k : ℝ) - (P.l : ℝ) ≤ (n : ℝ) * (e + delta) ∧
      (P.k : ℝ) ≤ (n : ℝ) * (max e 0 + delta) ∧
      (n : ℝ) * (max (-e) 0 - delta) ≤ (P.l : ℝ) ∧
      (e < 0 → P.k = 0)

/-- Sanity: signed consumption uses real subtraction, including the negative regime. -/
example : (0 : ℝ) - (1 : ℝ) = -1 := by norm_num

/-- Sanity: zero-copy amplitudes and the zero-ebit resource are one, not an empty state. -/
example {A B R : Type} (psi : EuclideanSpace ℂ (R × (A × B)))
    (p : Copies R 0 × ((Copies A 0 × Qubits 0) × (Copies B 0 × Qubits 0))) :
    mergingInput psi 0 0 p = 1 := by
  have h : p.2.1.2 = p.2.2.2 := by
    funext i
    exact Fin.elim0 i
  simp [mergingInput, tensorPow, maxEntangled, h]

/-- Sanity: the imported general Bell vector specializes to the source qubit amplitude. -/
example : QAlgorithms.Papers.Independent.Information100.P22.bell Bool (false, false) =
    ((Real.sqrt 2)⁻¹ : ℂ) := by
  simp [QAlgorithms.Papers.Independent.Information100.P22.bell]

/-- PDF pp.3–4, example 1: maximally mixed Alice qubit, trivial Bob register. -/
def unknownQubit : Matrix (Bool × Unit) (Bool × Unit) ℂ :=
  fun p q => if p.1 = q.1 then (1 / 2 : ℂ) else 0

/-- PDF pp.3–4, example 1: an actual single forward quantum register.
Its dimension is 2^q; it is transmitted between the two local maps. -/
structure DirectCode where
  q : ℕ
  encode : Superop Bool (Qubits q)
  decode : Superop (Qubits q) Bool

/-- PDF pp.3–4: the direct one-qubit transmission alternative. -/
def directQubit : DirectCode where
  q := 1
  encode := fun X p q => X (p 0) (q 0)
  decode := fun X p q => X (fun _ => p) (fun _ => q)

/-- PDF p.4: Bell measurement bra indexed by bit flip x and phase flip z.
Each branch includes Alice's input and her half of one supplied EPR pair. -/
def teleportRow (s : Bool × Bool) : Matrix Unit (Bool × Bool) ℂ :=
  fun _ p => if p.2 = (p.1 != s.1) then
    ((Real.sqrt 2)⁻¹ : ℂ) * (if s.2 && p.1 then -1 else 1) else 0

/-- PDF p.4: correction Z^z X^x conditional on the two classical bits. -/
def teleportCorrection (s : Bool × Bool) : Matrix Bool Bool ℂ :=
  fun a b => if b = (a != s.1) then (if s.2 && a then -1 else 1) else 0

/-- PDF p.4: teleportation uses only a Bell measurement and a conditional
local correction after one Bell pair has been supplied. -/
def teleportOperation : Superop ((Bool × Bool) × Bool) (Unit × Bool) :=
  fun X => ∑ s : Bool × Bool,
    productApply (conjSuperop (teleportRow s))
      (conjSuperop (teleportCorrection s)) X

/-- PDF pp.3–4: attach the charged Bell resource, retaining every reference block. -/
def teleportReferenceInput {R : Type} (X : Matrix (R × Bool) (R × Bool) ℂ) :
    Matrix (R × ((Bool × Bool) × Bool)) (R × ((Bool × Bool) × Bool)) ℂ :=
  fun p q => X (p.1, p.2.1.1) (q.1, q.2.1.1) *
    pureDensity (QAlgorithms.Papers.Independent.Information100.P22.bell Bool) (p.2.1.2, p.2.2) (q.2.1.2, q.2.2)

/-- Sanity: the direct register really has one qubit. -/
example : directQubit.q = 1 := rfl

/-- PDF p.4, example 2: canonical coherent purification, in R,A,B order. -/
def correlatedPurification : EuclideanSpace ℂ (Bool × (Bool × Bool)) :=
  WithLp.toLp 2 fun p => if p.1 = p.2.1 ∧ p.2.1 = p.2.2
    then ((Real.sqrt 2)⁻¹ : ℂ) else 0

/-- PDF p.4: normalized plus/minus measurement bra, with true denoting minus. -/
def plusMinusRow (minus : Bool) : Matrix Unit Bool ℂ :=
  fun _ a => ((Real.sqrt 2)⁻¹ : ℂ) * (if minus && a then -1 else 1)

/-- PDF p.4: conditional isometry at Bob, |b> ↦ (-1)^(s b)|bb>.
The first output is the new local A-prime ancilla; no operation acts on R. -/
def correlatedDecoder (minus : Bool) : Matrix (Bool × Bool) Bool ℂ :=
  fun p b => if p = (b, b) then (if minus && b then -1 else 1) else 0

/-- PDF p.4: Alice measures, sends one cbit, and Bob coherently copies and
corrects. There is no quantum message and no supplied entanglement. -/
def correlatedOperation : Superop (Bool × Bool) (Unit × (Bool × Bool)) :=
  fun X => ∑ s : Bool, productApply (conjSuperop (plusMinusRow s))
    (conjSuperop (correlatedDecoder s)) X

/-- PDF p.4: target includes the reference and the reconstructed coherent source. -/
def correlatedTarget : EuclideanSpace ℂ (Bool × (Unit × (Bool × Bool))) :=
  WithLp.toLp 2 fun p => correlatedPurification (p.1, p.2.2)

/-- Sanity: the minus outcome has a negative amplitude on |1>, with unit normalization. -/
example : plusMinusRow true () true = -((Real.sqrt 2)⁻¹ : ℂ) := by
  simp [plusMinusRow]

/-- PDF p.4, example 3: Bob prepares the known pure source Bell pair locally,
retaining his original EPR half as the last output register. -/
def bobPreparesBell : Superop Bool ((Bool × Bool) × Bool) :=
  fun X p q => pureDensity (QAlgorithms.Papers.Independent.Information100.P22.bell Bool) p.1 q.1 * X p.2 q.2

/-- PDF p.4: keep the old shared resource and prepare the source at Bob.
Output ownership is Alice old-half, then (Bob's new source, Bob old-half). -/
def bellMergingOperation : Superop (Bool × Bool) (Bool × ((Bool × Bool) × Bool)) :=
  productApply (fun X : Matrix Bool Bool ℂ => X) bobPreparesBell

/-- PDF p.4: one shared Bell pair and, independently, the reconstructed
source Bell pair entirely at Bob; this is not cloning an unknown state. -/
def bellMergingTarget : Matrix (Bool × ((Bool × Bool) × Bool))
    (Bool × ((Bool × Bool) × Bool)) ℂ :=
  fun p q => pureDensity (QAlgorithms.Papers.Independent.Information100.P22.bell Bool) (p.1, p.2.2) (q.1, q.2.2) *
    pureDensity (QAlgorithms.Papers.Independent.Information100.P22.bell Bool) p.2.1 q.2.1

/-- Sanity: Bob's preparation is independent of the old half's matrix entry. -/
example (X : Matrix Bool Bool ℂ) (s t : Bool × Bool) (b c : Bool) :
    bobPreparesBell X (s, b) (t, c) = pureDensity (QAlgorithms.Papers.Independent.Information100.P22.bell Bool) s t * X b c := rfl

end QAlgorithms.Papers.Independent.Gap20.P11
Source
Quantum information can be negative, arXiv:quant-ph/0505062v1, https://arxiv.org/abs/quant-ph/0505062v1
Read-back

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

QAlgorithms.Papers.Independent.Gap20.P11.DirectCode

A direct code consists of a natural number qqq, a function sending complex matrices indexed by {0,1}\{0,1\}{0,1} to complex matrices indexed by the qqq-bit strings {0,1}q\{0,1\}^q{0,1}q, and a function sending matrices on those qqq-bit strings back to matrices on {0,1}\{0,1\}{0,1}. These two functions are named the encoder and decoder. No linearity, positivity, trace preservation, Kraus representation, or reconstruction property is required. The value q=0q=0q=0 is allowed, in which case the set of bit strings is a singleton.

QAlgorithms.Papers.Independent.Gap20.P11.IsLOCC

For finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and any function Φ\PhiΦ from matrices on A×BA\times BA×B to matrices on C×DC\times DC×D, this predicate says that, after reindexing each factor by its chosen bijection with an initial segment of the natural numbers, the resulting function belongs to the following inductively generated collection. The collection contains the identity on every pair of numerical dimensions. It also contains any function obtained by a finite local measurement followed by an outcome-dependent function already in the collection: an Alice step has finitely many matrices Ei:Ca→ChE_i:\mathbb C^a\to\mathbb C^hEi​:Ca→Ch satisfying ∑iEi†Ei=Ia\sum_iE_i^\dagger E_i=I_a∑i​Ei†​Ei​=Ia​, followed by functions Ψi\Psi_iΨi​ on the resulting bipartite system, and acts as

X⟼∑iΨi ⁣((Ei⊗Ib)X(Ei⊗Ib)†);X\longmapsto\sum_i\Psi_i\!\left((E_i\otimes I_b)X(E_i\otimes I_b)^\dagger\right);X⟼i∑​Ψi​((Ei​⊗Ib​)X(Ei​⊗Ib​)†);

a Bob step instead uses matrices Ei:Cb→ChE_i:\mathbb C^b\to\mathbb C^hEi​:Cb→Ch with ∑iEi†Ei=Ib\sum_iE_i^\dagger E_i=I_b∑i​Ei†​Ei​=Ib​, and acts as

X⟼∑iΨi ⁣((Ia⊗Ei)X(Ia⊗Ei)†).X\longmapsto\sum_i\Psi_i\!\left((I_a\otimes E_i)X(I_a\otimes E_i)^\dagger\right).X⟼i∑​Ψi​((Ia​⊗Ei​)X(Ia​⊗Ei​)†).

All dimensions and numbers of outcomes are natural numbers, including zero when the completeness equations permit it. Membership requires a finite derivation from these constructors.

QAlgorithms.Papers.Independent.Gap20.P11.MergingAchievable

For finite types A,BA,BA,B, any complex matrix ρ\rhoρ on A×BA\times BA×B, and any real rate rrr, this predicate says 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 natural numbers k,lk,lk,l and an operation Φ\PhiΦ with a finite local-operation derivation such that k−l≤n(r+δ)k-l\le n(r+\delta)k−l≤n(r+δ) and the following reconstruction requirement holds for every unit vector ψ∈C(A×B)×(A×B)\psi\in\mathbb C^{(A\times B)\times(A\times B)}ψ∈C(A×B)×(A×B) satisfying ∑sψ(s,x)ψ(s,y)‾=ρx,y\sum_s\psi(s,x)\overline{\psi(s,y)}=\rho_{x,y}∑s​ψ(s,x)ψ(s,y)​=ρx,y​:

∥(id⁡(A×B)n⊗Φ)(∣α⟩⟨α∣)−∣β⟩⟨β∣∥1≤ε.\left\|(\operatorname{id}_{(A\times B)^n}\otimes\Phi)(|\alpha\rangle\langle\alpha|) -|\beta\rangle\langle\beta|\right\|_1\le\varepsilon.​(id(A×B)n​⊗Φ)(∣α⟩⟨α∣)−∣β⟩⟨β∣​1​≤ε.

Here Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, Φ\PhiΦ maps matrices on (An×Qk)×(Bn×Qk)(A^n\times Q_k)\times(B^n\times Q_k)(An×Qk​)×(Bn×Qk​) to matrices on Ql×((An×Bn)×Ql)Q_l\times((A^n\times B^n)\times Q_l)Ql​×((An×Bn)×Ql​), α(s,((a,u),(b,v)))=∏iψ(si,(ai,bi)) 1u=v/2k\alpha_{(s,((a,u),(b,v)))}=\prod_i\psi(s_i,(a_i,b_i))\,\mathbf1_{u=v}/\sqrt{2^k}α(s,((a,u),(b,v)))​=∏i​ψ(si​,(ai​,bi​))1u=v​/2k​, and β(s,(u,((a,b),v)))=∏iψ(si,(ai,bi)) 1u=v/2l\beta_{(s,(u,((a,b),v)))}=\prod_i\psi(s_i,(a_i,b_i))\,\mathbf1_{u=v}/\sqrt{2^l}β(s,(u,((a,b),v)))​=∏i​ψ(si​,(ai​,bi​))1u=v​/2l​. The notation ∣w⟩⟨w∣|w\rangle\langle w|∣w⟩⟨w∣ means the matrix wxwy‾w_x\overline{w_y}wx​wy​​, ∥M∥1=Re⁡tr⁡(cfc⁡[⋅](M†M))\|M\|_1=\operatorname{Re}\operatorname{tr}(\operatorname{cfc}[\sqrt{\cdot}](M^\dagger M))∥M∥1​=Retr(cfc[⋅​](M†M)), and the identity extension applies Φ\PhiΦ to each reference-index block. A finite local-operation derivation, after numerical reindexing of local bases, starts from identities and recursively composes complete finite local Kraus families with outcome-dependent continuations, summing their outputs. No positivity or trace-one condition is imposed on ρ\rhoρ, and no nonnegativity condition is imposed on rrr. The reconstruction requirement is vacuous when no such purification exists, but the operations and resource bounds are still required.

QAlgorithms.Papers.Independent.Gap20.P11.MergingCode

For finite types A,BA,BA,B, possibly empty, and any natural number nnn, an object of this structure consists of natural numbers k,lk,lk,l, a function

Φ:Mat⁡((An×Qk)×(Bn×Qk))⟶Mat⁡(Ql×((An×Bn)×Ql)),\Phi:\operatorname{Mat}\big((A^n\times Q_k)\times(B^n\times Q_k)\big) \longrightarrow \operatorname{Mat}\big(Q_l\times((A^n\times B^n)\times Q_l)\big),Φ:Mat((An×Qk​)×(Bn×Qk​))⟶Mat(Ql​×((An×Bn)×Ql​)),

and evidence that Φ\PhiΦ has a finite local-operation derivation, where Mat⁡\operatorname{Mat}Mat denotes complex square matrices and Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j. Precisely, after reindexing all four local basis types by their chosen finite numerical enumerations, the allowed derivations start from bipartite identity functions and recursively use finitely many local matrices EiE_iEi​ satisfying ∑iEi†Ei=I\sum_iE_i^\dagger E_i=I∑i​Ei†​Ei​=I, followed by an outcome-dependent allowed continuation, with action X↦∑iΨi((Ei⊗I)X(Ei⊗I)†)X\mapsto\sum_i\Psi_i((E_i\otimes I)X(E_i\otimes I)^\dagger)X↦∑i​Ψi​((Ei​⊗I)X(Ei​⊗I)†) on the first party or the corresponding expression with I⊗EiI\otimes E_iI⊗Ei​ on the second. The parameters n,k,ln,k,ln,k,l may be zero. The structure imposes no reconstruction condition or resource bound.

QAlgorithms.Papers.Independent.Gap20.P11.MergingConstruction

For finite types A,BA,BA,B, an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and real numbers c,ec,ec,e, this predicate means that for every ε>0\varepsilon>0ε>0 and δ>0\delta>0δ>0, there is a natural number NNN such that every natural number n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 admits the following code. Writing Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, the code has natural numbers k,l,hk,l,hk,l,h, a positive natural number ooo, Alice matrices As,t:CAn×Qk→CQlA_{s,t}:\mathbb C^{A^n\times Q_k}\to\mathbb C^{Q_l}As,t​:CAn×Qk​→CQl​ with ∑s<o,t<hAs,t†As,t=I\sum_{s<o,t<h}A_{s,t}^{\dagger}A_{s,t}=I∑s<o,t<h​As,t†​As,t​=I, and Bob maps Bs:Bn×Qk→(An×Bn)×Ql\mathcal B_s:B^n\times Q_k\to(A^n\times B^n)\times Q_lBs​:Bn×Qk​→(An×Bn)×Ql​ on matrices, each expressible as Bs(Y)=∑jKs,jYKs,j†\mathcal B_s(Y)=\sum_jK_{s,j}YK_{s,j}^{\dagger}Bs​(Y)=∑j​Ks,j​YKs,j†​ with finitely many Kraus matrices and ∑jKs,j†Ks,j=I\sum_jK_{s,j}^{\dagger}K_{s,j}=I∑j​Ks,j†​Ks,j​=I. Its operation is T=∑s(As⊗Bs)\mathcal T=\sum_s(\mathcal A_s\otimes\mathcal B_s)T=∑s​(As​⊗Bs​), where As(X)=∑tAs,tXAs,t†\mathcal A_s(X)=\sum_tA_{s,t}XA_{s,t}^{\dagger}As​(X)=∑t​As,t​XAs,t†​ and the tensor product of maps is defined on matrix units by (As⊗Bs)(Ex,x′⊗Ey,y′)=As(Ex,x′)⊗Bs(Ey,y′)(\mathcal A_s\otimes\mathcal B_s)(E_{x,x'}\otimes E_{y,y'})=\mathcal A_s(E_{x,x'})\otimes\mathcal B_s(E_{y,y'})(As​⊗Bs​)(Ex,x′​⊗Ey,y′​)=As​(Ex,x′​)⊗Bs​(Ey,y′​) and extended linearly. For every unit vector ψ\psiψ on (A×B)×(A×B)(A\times B)\times(A\times B)(A×B)×(A×B) whose density matrix ∣ψ⟩⟨ψ∣|\psi\rangle\langle\psi|∣ψ⟩⟨ψ∣ has second-register marginal ρ\rhoρ, applying T\mathcal TT to the An,BnA^n,B^nAn,Bn registers of ψ⊗n\psi^{\otimes n}ψ⊗n, together with the two halves of Φk=2−k/2∑u∈Qk∣u,u⟩\Phi_k=2^{-k/2}\sum_{u\in Q_k}|u,u\rangleΦk​=2−k/2∑u∈Qk​​∣u,u⟩, while leaving the reference registers unchanged, must produce a matrix within trace norm ε\varepsilonε of the density matrix of ψ⊗n⊗Φl\psi^{\otimes n}\otimes\Phi_lψ⊗n⊗Φl​, regrouped so that the output registers are QlQ_lQl​ and (An×Bn)×Ql(A^n\times B^n)\times Q_l(An×Bn)×Ql​. Here the trace norm is Re⁡tr⁡Z†Z\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}RetrZ†Z​. The same code must satisfy

log⁡2o≤n(c+δ),k−l≤n(e+δ),k≤n(max⁡(e,0)+δ),n(max⁡(−e,0)−δ)≤l,e<0⟹k=0.\log_2 o\le n(c+\delta),\qquad k-l\le n(e+\delta),\qquad k\le n(\max(e,0)+\delta),\qquad n(\max(-e,0)-\delta)\le l,\qquad e<0\Longrightarrow k=0.log2​o≤n(c+δ),k−l≤n(e+δ),k≤n(max(e,0)+δ),n(max(−e,0)−δ)≤l,e<0⟹k=0.

No nonemptiness assumption on A,BA,BA,B, density assumption on ρ\rhoρ, or sign assumption on c,ec,ec,e is imposed. If no such unit-vector purification of ρ\rhoρ exists, the reconstruction requirement is vacuous, while the code and numerical requirements remain.

QAlgorithms.Papers.Independent.Gap20.P11.MergingOneWayCode

For finite types A,BA,BA,B, possibly empty, and any natural number nnn, an object of this structure consists of natural numbers k,l,o,ek,l,o,ek,l,o,e, with o>0o>0o>0, matrices

Ks,t:CAn×Qk⟶CQl(s∈{0,…,o−1}, t∈{0,…,e−1})K_{s,t}:\mathbb C^{A^n\times Q_k}\longrightarrow\mathbb C^{Q_l} \quad(s\in\{0,\ldots,o-1\},\ t\in\{0,\ldots,e-1\})Ks,t​:CAn×Qk​⟶CQl​(s∈{0,…,o−1}, t∈{0,…,e−1})

satisfying

∑s,tKs,t†Ks,t=IAn×Qk,\sum_{s,t}K_{s,t}^\dagger K_{s,t}=I_{A^n\times Q_k},s,t∑​Ks,t†​Ks,t​=IAn×Qk​​,

and, for every outcome sss, a function Bs\mathcal B_sBs​ from complex matrices on Bn×QkB^n\times Q_kBn×Qk​ to complex matrices on (An×Bn)×Ql(A^n\times B^n)\times Q_l(An×Bn)×Ql​ that is a channel. Here Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, and being a channel means that there exist a natural number hsh_shs​ and matrices Ls,jL_{s,j}Ls,j​ from the corresponding input space to output space such that ∑jLs,j†Ls,j=I\sum_jL_{s,j}^\dagger L_{s,j}=I∑j​Ls,j†​Ls,j​=I and Bs(X)=∑jLs,jXLs,j†\mathcal B_s(X)=\sum_jL_{s,j}XL_{s,j}^\daggerBs​(X)=∑j​Ls,j​XLs,j†​ for every matrix XXX. The fields o,eo,eo,e are respectively the number of outcomes and the environment index size. The parameters n,k,l,en,k,l,en,k,l,e may be zero, subject to the stated equations; in particular, e=0e=0e=0 makes the completeness sum zero and therefore requires its input identity matrix to be zero. No reconstruction or rate condition is part of the structure.

QAlgorithms.Papers.Independent.Gap20.P11.MergingOneWayCode.operation

For finite types A,BA,BA,B, any natural number nnn, and any code PPP, write An={0,…,n−1}→AA^n=\{0,\ldots,n-1\}\to AAn={0,…,n−1}→A, Bn={0,…,n−1}→BB^n=\{0,\ldots,n-1\}\to BBn={0,…,n−1}→B, and Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j. The code supplies natural numbers k,lk,lk,l, a positive number ooo of outcomes, a natural number hhh of environment indices, matrices As,t:CAn×Qk→CQlA_{s,t}:\mathbb C^{A^n\times Q_k}\to\mathbb C^{Q_l}As,t​:CAn×Qk​→CQl​ satisfying ∑s<o,t<hAs,t†As,t=I\sum_{s<o,t<h}A_{s,t}^{\dagger}A_{s,t}=I∑s<o,t<h​As,t†​As,t​=I, and maps Bs\mathcal B_sBs​ from matrices on Bn×QkB^n\times Q_kBn×Qk​ to matrices on (An×Bn)×Ql(A^n\times B^n)\times Q_l(An×Bn)×Ql​, each admitting a finite Kraus representation Bs(Y)=∑jKs,jYKs,j†\mathcal B_s(Y)=\sum_j K_{s,j}YK_{s,j}^{\dagger}Bs​(Y)=∑j​Ks,j​YKs,j†​ with ∑jKs,j†Ks,j=I\sum_jK_{s,j}^{\dagger}K_{s,j}=I∑j​Ks,j†​Ks,j​=I. Its operation is the map from matrices on (An×Qk)×(Bn×Qk)(A^n\times Q_k)\times(B^n\times Q_k)(An×Qk​)×(Bn×Qk​) to matrices on Ql×((An×Bn)×Ql)Q_l\times((A^n\times B^n)\times Q_l)Ql​×((An×Bn)×Ql​) whose entries are

TP(X)(u,v),(u′,v′)=∑s<o∑t<h∑x,x′∈An×Qk∑y,y′∈Bn×QkX(x,y),(x′,y′)(As,t)u,x(As,t)u′,x′‾[Bs(Ey,y′)]v,v′,\mathcal T_P(X)_{(u,v),(u',v')} =\sum_{s<o}\sum_{t<h}\sum_{x,x'\in A^n\times Q_k}\sum_{y,y'\in B^n\times Q_k} X_{(x,y),(x',y')}(A_{s,t})_{u,x} \overline{(A_{s,t})_{u',x'}} \bigl[\mathcal B_s(E_{y,y'})\bigr]_{v,v'},TP​(X)(u,v),(u′,v′)​=s<o∑​t<h∑​x,x′∈An×Qk​∑​y,y′∈Bn×Qk​∑​X(x,y),(x′,y′)​(As,t​)u,x​(As,t​)u′,x′​​[Bs​(Ey,y′​)]v,v′​,

where Ey,y′E_{y,y'}Ey,y′​ is the matrix with its sole nonzero entry, equal to 111, at (y,y′)(y,y')(y,y′). No density or normalization condition is imposed on XXX; n=0n=0n=0 and empty finite types A,BA,BA,B are included.

QAlgorithms.Papers.Independent.Gap20.P11.MergingReconstructs

For finite types A,BA,BA,B, any matrix ρ\rhoρ on A×BA\times BA×B, natural numbers n,k,ln,k,ln,k,l, a real number ε\varepsilonε, and any function Φ\PhiΦ from matrices on (An×Qk)×(Bn×Qk)(A^n\times Q_k)\times(B^n\times Q_k)(An×Qk​)×(Bn×Qk​) to matrices on Ql×((An×Bn)×Ql)Q_l\times((A^n\times B^n)\times Q_l)Ql​×((An×Bn)×Ql​), where Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, this predicate requires the following for every vector ψ∈C(A×B)×(A×B)\psi\in\mathbb C^{(A\times B)\times(A\times B)}ψ∈C(A×B)×(A×B): if ∥ψ∥=1\|\psi\|=1∥ψ∥=1 and

∑r∈A×Bψ(r,x)ψ(r,y)‾=ρx,yfor every x,y∈A×B,\sum_{r\in A\times B}\psi(r,x)\overline{\psi(r,y)}=\rho_{x,y} \quad\text{for every }x,y\in A\times B,r∈A×B∑​ψ(r,x)ψ(r,y)​=ρx,y​for every x,y∈A×B,

then

∥(id⁡(A×B)n⊗Φ)(∣α⟩⟨α∣)−∣β⟩⟨β∣∥1≤ε.\left\|(\operatorname{id}_{(A\times B)^n}\otimes\Phi)(|\alpha\rangle\langle\alpha|) -|\beta\rangle\langle\beta|\right\|_1\le\varepsilon.​(id(A×B)n​⊗Φ)(∣α⟩⟨α∣)−∣β⟩⟨β∣​1​≤ε.

Here α(r,((a,u),(b,v)))=∏iψ(ri,(ai,bi)) 1u=v/2k\alpha_{(r,((a,u),(b,v)))}=\prod_i\psi(r_i,(a_i,b_i))\,\mathbf1_{u=v}/\sqrt{2^k}α(r,((a,u),(b,v)))​=∏i​ψ(ri​,(ai​,bi​))1u=v​/2k​, and β(r,(u,((a,b),v)))=∏iψ(ri,(ai,bi)) 1u=v/2l\beta_{(r,(u,((a,b),v)))}=\prod_i\psi(r_i,(a_i,b_i))\,\mathbf1_{u=v}/\sqrt{2^l}β(r,(u,((a,b),v)))​=∏i​ψ(ri​,(ai​,bi​))1u=v​/2l​; empty products equal 111. For a vector www, (∣w⟩⟨w∣)x,y=wxwy‾(|w\rangle\langle w|)_{x,y}=w_x\overline{w_y}(∣w⟩⟨w∣)x,y​=wx​wy​​, and ∥M∥1=Re⁡tr⁡(cfc⁡[⋅](M†M))\|M\|_1=\operatorname{Re}\operatorname{tr}(\operatorname{cfc}[\sqrt{\cdot}](M^\dagger M))∥M∥1​=Retr(cfc[⋅​](M†M)). The extension id⁡⊗Φ\operatorname{id}\otimes\Phiid⊗Φ applies Φ\PhiΦ separately to every matrix block indexed by a pair of reference indices. No channel property is required of Φ\PhiΦ, no nonnegativity is required of ε\varepsilonε, and n,k,ln,k,ln,k,l may be zero. If no ψ\psiψ satisfies the two hypotheses, the predicate holds vacuously.

QAlgorithms.Papers.Independent.Gap20.P11.bellMergingOperation

Let Ω=(∣00⟩+∣11⟩)/2\Omega=(|00\rangle+|11\rangle)/\sqrt2Ω=(∣00⟩+∣11⟩)/2​, with Boolean values identified with 0,10,10,1. This defines a map Φ\PhiΦ from complex matrices on Bool×Bool\mathrm{Bool}\times\mathrm{Bool}Bool×Bool to complex matrices on Bool×((Bool×Bool)×Bool)\mathrm{Bool}\times((\mathrm{Bool}\times\mathrm{Bool})\times\mathrm{Bool})Bool×((Bool×Bool)×Bool) by leaving the first input register unchanged and applying X↦∣Ω⟩⟨Ω∣⊗XX\mapsto|\Omega\rangle\langle\Omega|\otimes XX↦∣Ω⟩⟨Ω∣⊗X to the second input register; explicitly, for every input matrix XXX, Φ(X)(a,((c,d),b)),(a′,((c′,d′),b′))=X(a,b),(a′,b′)Ωc,dΩc′,d′‾\Phi(X)_{(a,((c,d),b)),(a',((c',d'),b'))}=X_{(a,b),(a',b')}\Omega_{c,d}\overline{\Omega_{c',d'}}Φ(X)(a,((c,d),b)),(a′,((c′,d′),b′))​=X(a,b),(a′,b′)​Ωc,d​Ωc′,d′​​.

QAlgorithms.Papers.Independent.Gap20.P11.bellMergingTarget

Let Ω=(∣00⟩+∣11⟩)/2\Omega=(|00\rangle+|11\rangle)/\sqrt2Ω=(∣00⟩+∣11⟩)/2​, with Boolean values identified with 0,10,10,1. This defines the complex matrix TTT on Bool×((Bool×Bool)×Bool)\mathrm{Bool}\times((\mathrm{Bool}\times\mathrm{Bool})\times\mathrm{Bool})Bool×((Bool×Bool)×Bool) by T(a,((c,d),b)),(a′,((c′,d′),b′))=Ωa,bΩa′,b′‾Ωc,dΩc′,d′‾T_{(a,((c,d),b)),(a',((c',d'),b'))}=\Omega_{a,b}\overline{\Omega_{a',b'}}\Omega_{c,d}\overline{\Omega_{c',d'}}T(a,((c,d),b)),(a′,((c′,d′),b′))​=Ωa,b​Ωa′,b′​​Ωc,d​Ωc′,d′​​; thus its two factors are the rank-one matrices of Ω\OmegaΩ on the register pairs (a,b)(a,b)(a,b) and (c,d)(c,d)(c,d).

QAlgorithms.Papers.Independent.Gap20.P11.bobPreparesBell

Let Ω=(∣00⟩+∣11⟩)/2\Omega=(|00\rangle+|11\rangle)/\sqrt2Ω=(∣00⟩+∣11⟩)/2​, with Boolean values identified with 0,10,10,1. This defines a map FFF from complex matrices on a Boolean register to complex matrices on (Bool×Bool)×Bool(\mathrm{Bool}\times\mathrm{Bool})\times\mathrm{Bool}(Bool×Bool)×Bool by F(X)=∣Ω⟩⟨Ω∣⊗XF(X)=|\Omega\rangle\langle\Omega|\otimes XF(X)=∣Ω⟩⟨Ω∣⊗X; explicitly, F(X)((a,b),c),((a′,b′),c′)=Ωa,bΩa′,b′‾Xc,c′F(X)_{((a,b),c),((a',b'),c')}=\Omega_{a,b}\overline{\Omega_{a',b'}}X_{c,c'}F(X)((a,b),c),((a′,b′),c′)​=Ωa,b​Ωa′,b′​​Xc,c′​. The input matrix XXX is arbitrary.

QAlgorithms.Papers.Independent.Gap20.P11.classicalCost

For any finite types A,BA,BA,B, including empty types, and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines

classicalCost⁡(ρ)=S(ρA)+S(ρ)−S(ρB),\operatorname{classicalCost}(\rho) =S(\rho_A)+S(\rho)-S(\rho_B),classicalCost(ρ)=S(ρA​)+S(ρ)−S(ρB​),

where (ρA)a,a′=∑b∈Bρ(a,b),(a′,b)(\rho_A)_{a,a'}=\sum_{b\in B}\rho_{(a,b),(a',b)}(ρA​)a,a′​=∑b∈B​ρ(a,b),(a′,b)​, (ρB)b,b′=∑a∈Aρ(a,b),(a,b′)(\rho_B)_{b,b'}=\sum_{a\in A}\rho_{(a,b),(a,b')}(ρB​)b,b′​=∑a∈A​ρ(a,b),(a,b′)​, and

S(X)=−Re⁡tr⁡ ⁣(cfc⁡[x↦xlog⁡2x](X)).S(X)=-\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}[x\mapsto x\log_2 x](X)\right).S(X)=−Retr(cfc[x↦xlog2​x](X)).

Here cfc⁡\operatorname{cfc}cfc is the total real continuous functional calculus used by the code. There is no assumption that ρ\rhoρ is positive semidefinite, Hermitian, or of trace one; the displayed expression defines the value for every ρ\rhoρ.

QAlgorithms.Papers.Independent.Gap20.P11.correlatedDecoder

For every Boolean parameter sss, this defines a complex matrix DsD_sDs​ from a Boolean register to two Boolean registers by (Ds)(a,c),b=(−1)sb(D_s)_{(a,c),b}=(-1)^{sb}(Ds​)(a,c),b​=(−1)sb if (a,c)=(b,b)(a,c)=(b,b)(a,c)=(b,b), and 000 otherwise, identifying Boolean values with 0,10,10,1; equivalently, Ds∣b⟩=(−1)sb∣b,b⟩D_s|b\rangle=(-1)^{sb}|b,b\rangleDs​∣b⟩=(−1)sb∣b,b⟩.

QAlgorithms.Papers.Independent.Gap20.P11.correlatedOperation

This defines a map Φ\PhiΦ from complex matrices on Bool×Bool\mathrm{Bool}\times\mathrm{Bool}Bool×Bool to complex matrices on Unit×(Bool×Bool)\mathrm{Unit}\times(\mathrm{Bool}\times\mathrm{Bool})Unit×(Bool×Bool) by Φ(X)=∑s∈{0,1}(Ls⊗Ds)X(Ls⊗Ds)†\Phi(X)=\sum_{s\in\{0,1\}}(L_s\otimes D_s)X(L_s\otimes D_s)^\daggerΦ(X)=∑s∈{0,1}​(Ls​⊗Ds​)X(Ls​⊗Ds​)†, where Boolean values are identified with 0,10,10,1, the one-row matrix LsL_sLs​ has entries (Ls)∗,a=(−1)sa/2(L_s)_{*,a}=(-1)^{sa}/\sqrt2(Ls​)∗,a​=(−1)sa/2​, and Ds∣b⟩=(−1)sb∣b,b⟩D_s|b\rangle=(-1)^{sb}|b,b\rangleDs​∣b⟩=(−1)sb∣b,b⟩. The definition applies to every input matrix XXX, without requiring positivity or trace 111.

QAlgorithms.Papers.Independent.Gap20.P11.correlatedPurification

This defines the vector ψ∈CBool×(Bool×Bool)\psi\in\mathbb C^{\mathrm{Bool}\times(\mathrm{Bool}\times\mathrm{Bool})}ψ∈CBool×(Bool×Bool) whose coordinate at (a,(b,c))(a,(b,c))(a,(b,c)) is 1/21/\sqrt21/2​ if a=b=ca=b=ca=b=c, and 000 otherwise; equivalently, with Boolean values identified with 0,10,10,1, ψ=(∣0,(0,0)⟩+∣1,(1,1)⟩)/2\psi=(|0,(0,0)\rangle+|1,(1,1)\rangle)/\sqrt2ψ=(∣0,(0,0)⟩+∣1,(1,1)⟩)/2​.

QAlgorithms.Papers.Independent.Gap20.P11.correlatedTarget

This defines the vector τ∈CBool×(Unit×(Bool×Bool))\tau\in\mathbb C^{\mathrm{Bool}\times(\mathrm{Unit}\times(\mathrm{Bool}\times\mathrm{Bool}))}τ∈CBool×(Unit×(Bool×Bool)) whose coordinate at (a,(∗,(b,c)))(a,(*,(b,c)))(a,(∗,(b,c))) is 1/21/\sqrt21/2​ if a=b=ca=b=ca=b=c, and 000 otherwise; equivalently, τ=(∣0,(∗,(0,0))⟩+∣1,(∗,(1,1))⟩)/2\tau=(|0,(*,(0,0))\rangle+|1,(*,(1,1))\rangle)/\sqrt2τ=(∣0,(∗,(0,0))⟩+∣1,(∗,(1,1))⟩)/2​.

QAlgorithms.Papers.Independent.Gap20.P11.directQubit

This defines a direct code with q=1q=1q=1. For every complex matrix XXX on {0,1}\{0,1\}{0,1} and one-bit strings u,v:{0}→{0,1}u,v:\{0\}\to\{0,1\}u,v:{0}→{0,1}, its encoder is

Enc⁡(X)u,v=Xu(0),v(0).\operatorname{Enc}(X)_{u,v}=X_{u(0),v(0)}.Enc(X)u,v​=Xu(0),v(0)​.

For every complex matrix YYY on the one-bit strings and bits a,ba,ba,b, its decoder is

Dec⁡(Y)a,b=Ya‾,b‾,\operatorname{Dec}(Y)_{a,b}=Y_{\underline a,\underline b},Dec(Y)a,b​=Ya​,b​​,

where a‾\underline aa​ and b‾\underline bb​ are the constant one-bit strings with values aaa and bbb. Both functions are defined on arbitrary matrices.

QAlgorithms.Papers.Independent.Gap20.P11.finTransport

For finite types A,B,C,DA,B,C,DA,B,C,D, including empty types, and any function Φ\PhiΦ from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, choose the bijections a:A→{0,…,∣A∣−1}a:A\to\{0,\ldots,|A|-1\}a:A→{0,…,∣A∣−1}, b:B→{0,…,∣B∣−1}b:B\to\{0,\ldots,|B|-1\}b:B→{0,…,∣B∣−1}, c:C→{0,…,∣C∣−1}c:C\to\{0,\ldots,|C|-1\}c:C→{0,…,∣C∣−1}, and d:D→{0,…,∣D∣−1}d:D\to\{0,\ldots,|D|-1\}d:D→{0,…,∣D∣−1} supplied by the finite-type enumerations. This defines a function on matrices with these numerical indices by

finTransport⁡(Φ)(X)(u,v),(u′,v′)=Φ(X~)(c−1u,d−1v),(c−1u′,d−1v′),X~(i,j),(i′,j′)=X(a(i),b(j)),(a(i′),b(j′)).\operatorname{finTransport}(\Phi)(X)_{(u,v),(u',v')} =\Phi(\widetilde X)_{(c^{-1}u,d^{-1}v),(c^{-1}u',d^{-1}v')}, \quad \widetilde X_{(i,j),(i',j')}=X_{(a(i),b(j)),(a(i'),b(j'))}.finTransport(Φ)(X)(u,v),(u′,v′)​=Φ(X)(c−1u,d−1v),(c−1u′,d−1v′)​,X(i,j),(i′,j′)​=X(a(i),b(j)),(a(i′),b(j′))​.

No linearity, positivity, or channel property is assumed of Φ\PhiΦ.

QAlgorithms.Papers.Independent.Gap20.P11.marginalAR

For arbitrary types A,RA,RA,R, a finite type BBB, and any complex matrix ρ\rhoρ indexed by R×(A×B)R\times(A\times B)R×(A×B), this defines a matrix indexed by A×RA\times RA×R by

marginalAR⁡(ρ)(a,r),(a′,r′)=∑b∈Bρ(r,(a,b)),(r′,(a′,b)).\operatorname{marginalAR}(\rho)_{(a,r),(a',r')} =\sum_{b\in B}\rho_{(r,(a,b)),(r',(a',b))}.marginalAR(ρ)(a,r),(a′,r′)​=b∈B∑​ρ(r,(a,b)),(r′,(a′,b))​.

Thus the same BBB-coordinate is summed over in the row and column, and the retained coordinates are ordered as A,RA,RA,R. Only BBB is required to be finite. No positivity or normalization is assumed; if BBB is empty, the resulting matrix is zero.

QAlgorithms.Papers.Independent.Gap20.P11.mergingInput

For arbitrary types A,B,RA,B,RA,B,R, any vector ψ∈CR×(A×B)\psi\in\mathbb C^{R\times(A\times B)}ψ∈CR×(A×B), and natural numbers n,kn,kn,k, write XnX^nXn for the functions {0,…,n−1}→X\{0,\ldots,n-1\}\to X{0,…,n−1}→X, and Qk={0,1}kQ_k=\{0,1\}^kQk​={0,1}k. This defines a vector on Rn×((An×Qk)×(Bn×Qk))R^n\times((A^n\times Q_k)\times(B^n\times Q_k))Rn×((An×Qk​)×(Bn×Qk​)) whose coefficient is

mergingInput⁡(ψ,n,k)(r,((a,u),(b,v)))=(∏i=0n−1ψ(ri,(ai,bi))){(2k)−1/2,u=v,0,u≠v.\operatorname{mergingInput}(\psi,n,k)_{(r,((a,u),(b,v)))} =\left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,b_i))\right) \begin{cases} (2^k)^{-1/2},&u=v,\\ 0,&u\ne v. \end{cases}mergingInput(ψ,n,k)(r,((a,u),(b,v)))​=(i=0∏n−1​ψ(ri​,(ai​,bi​))){(2k)−1/2,0,​u=v,u=v.​

No finiteness or normalization assumption is imposed on A,B,R,ψA,B,R,\psiA,B,R,ψ. The definition includes n=0n=0n=0, when the product is 111, and k=0k=0k=0, when both bit-string registers have a single empty string and the second factor is 111.

QAlgorithms.Papers.Independent.Gap20.P11.mergingTarget

For arbitrary types A,B,RA,B,RA,B,R, any vector ψ∈CR×(A×B)\psi\in\mathbb C^{R\times(A\times B)}ψ∈CR×(A×B), and natural numbers n,ln,ln,l, let XnX^nXn denote the functions {0,…,n−1}→X\{0,\ldots,n-1\}\to X{0,…,n−1}→X, and let Ql={0,1}lQ_l=\{0,1\}^lQl​={0,1}l. This defines a vector on Rn×(Ql×((An×Bn)×Ql))R^n\times(Q_l\times((A^n\times B^n)\times Q_l))Rn×(Ql​×((An×Bn)×Ql​)) by

mergingTarget⁡(ψ,n,l)(r,(u,((a,b),v)))=(∏i=0n−1ψ(ri,(ai,bi))){(2l)−1/2,u=v,0,u≠v.\operatorname{mergingTarget}(\psi,n,l)_{(r,(u,((a,b),v)))} =\left(\prod_{i=0}^{n-1}\psi(r_i,(a_i,b_i))\right) \begin{cases} (2^l)^{-1/2},&u=v,\\ 0,&u\ne v. \end{cases}mergingTarget(ψ,n,l)(r,(u,((a,b),v)))​=(i=0∏n−1​ψ(ri​,(ai​,bi​))){(2l)−1/2,0,​u=v,u=v.​

There are no finiteness or normalization assumptions on A,B,R,ψA,B,R,\psiA,B,R,ψ. For n=0n=0n=0 the product is 111, and for l=0l=0l=0 the bit-string factor is 111.

QAlgorithms.Papers.Independent.Gap20.P11.plusMinusRow

For every Boolean parameter sss, this defines a complex matrix LsL_sLs​ with one row, indexed by the unique element ∗*∗ of Unit\mathrm{Unit}Unit, and columns indexed by Boolean values aaa, with (Ls)∗,a=(−1)sa/2(L_s)_{*,a}=(-1)^{sa}/\sqrt2(Ls​)∗,a​=(−1)sa/2​ when Boolean values are identified with 0,10,10,1; thus L0=(1,1)/2L_0=(1,1)/\sqrt2L0​=(1,1)/2​ and L1=(1,−1)/2L_1=(1,-1)/\sqrt2L1​=(1,−1)/2​.

QAlgorithms.Papers.Independent.Gap20.P11.productApply

For finite types A,BA,BA,B, arbitrary types C,DC,DC,D, and arbitrary functions Φ:Mat⁡(A)→Mat⁡(C)\Phi:\operatorname{Mat}(A)\to\operatorname{Mat}(C)Φ:Mat(A)→Mat(C) and Ψ:Mat⁡(B)→Mat⁡(D)\Psi:\operatorname{Mat}(B)\to\operatorname{Mat}(D)Ψ:Mat(B)→Mat(D), with complex matrix entries, this defines a function on matrices over A×BA\times BA×B by

productApply⁡(Φ,Ψ)(X)(c,d),(c′,d′)=∑a,a′∈A∑b,b′∈BX(a,b),(a′,b′) Φ(Ea,a′)c,c′ Ψ(Eb,b′)d,d′,\operatorname{productApply}(\Phi,\Psi)(X)_{(c,d),(c',d')} =\sum_{a,a'\in A}\sum_{b,b'\in B} X_{(a,b),(a',b')}\, \Phi(E_{a,a'})_{c,c'}\, \Psi(E_{b,b'})_{d,d'},productApply(Φ,Ψ)(X)(c,d),(c′,d′)​=a,a′∈A∑​b,b′∈B∑​X(a,b),(a′,b′)​Φ(Ea,a′​)c,c′​Ψ(Eb,b′​)d,d′​,

where Eu,vE_{u,v}Eu,v​ is the matrix with entry 111 at (u,v)(u,v)(u,v) and zero elsewhere. Neither function is assumed linear, positive, or a channel. The definition uses their values on these elementary matrices; if either input index type is empty, all output entries are zero.

QAlgorithms.Papers.Independent.Gap20.P11.referenceInformation

For finite types A,B,RA,B,RA,B,R, possibly empty, and any vector ψ∈CR×(A×B)\psi\in\mathbb C^{R\times(A\times B)}ψ∈CR×(A×B), let

ρ(r,(a,b)),(r′,(a′,b′))=ψ(r,(a,b)) ψ(r′,(a′,b′))‾.\rho_{(r,(a,b)),(r',(a',b'))} =\psi(r,(a,b))\,\overline{\psi(r',(a',b'))}.ρ(r,(a,b)),(r′,(a′,b′))​=ψ(r,(a,b))ψ(r′,(a′,b′))​.

Define (ρA)a,a′=∑r,bρ(r,(a,b)),(r,(a′,b))(\rho_A)_{a,a'}=\sum_{r,b}\rho_{(r,(a,b)),(r,(a',b))}(ρA​)a,a′​=∑r,b​ρ(r,(a,b)),(r,(a′,b))​, (ρR)r,r′=∑a,bρ(r,(a,b)),(r′,(a,b))(\rho_R)_{r,r'}=\sum_{a,b}\rho_{(r,(a,b)),(r',(a,b))}(ρR​)r,r′​=∑a,b​ρ(r,(a,b)),(r′,(a,b))​, and (ρAR)(a,r),(a′,r′)=∑bρ(r,(a,b)),(r′,(a′,b))(\rho_{AR})_{(a,r),(a',r')}=\sum_b\rho_{(r,(a,b)),(r',(a',b))}(ρAR​)(a,r),(a′,r′)​=∑b​ρ(r,(a,b)),(r′,(a′,b))​. The definition is

referenceInformation⁡(ψ)=S(ρA)+S(ρR)−S(ρAR),S(X)=−Re⁡tr⁡ ⁣(cfc⁡[x↦xlog⁡2x](X)).\operatorname{referenceInformation}(\psi)=S(\rho_A)+S(\rho_R)-S(\rho_{AR}), \qquad S(X)=-\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}[x\mapsto x\log_2x](X)\right).referenceInformation(ψ)=S(ρA​)+S(ρR​)−S(ρAR​),S(X)=−Retr(cfc[x↦xlog2​x](X)).

The continuous functional calculus is taken with its total convention. The vector ψ\psiψ is not required to have norm one.

QAlgorithms.Papers.Independent.Gap20.P11.teleportCorrection

For every pair of bits s=(s1,s2)s=(s_1,s_2)s=(s1​,s2​), this defines a complex matrix CsC_sCs​ indexed by row and column bits a,ba,ba,b:

(Cs)a,b={(−1)s2a,b=a⊕s1,0,b≠a⊕s1.(C_s)_{a,b}= \begin{cases} (-1)^{s_2a},&b=a\oplus s_1,\\ 0,&b\ne a\oplus s_1. \end{cases}(Cs​)a,b​={(−1)s2​a,0,​b=a⊕s1​,b=a⊕s1​.​

Here ⊕\oplus⊕ denotes addition modulo 222, with bits interpreted as 0,10,10,1 in the exponent. The nonzero entry is −1-1−1 exactly when s2=a=1s_2=a=1s2​=a=1, and otherwise is 111.

QAlgorithms.Papers.Independent.Gap20.P11.teleportOperation

This defines a function from complex matrices on ({0,1}×{0,1})×{0,1}(\{0,1\}\times\{0,1\})\times\{0,1\}({0,1}×{0,1})×{0,1} to complex matrices on {∗}×{0,1}\{*\}\times\{0,1\}{∗}×{0,1}. For each bit pair s=(s1,s2)s=(s_1,s_2)s=(s1​,s2​), let RsR_sRs​ be the matrix with entries (Rs)∗,(a,b)=2−1/2(−1)s2a (R_s)_{*,(a,b)}=2^{-1/2}(-1)^{s_2a}(Rs​)∗,(a,b)​=2−1/2(−1)s2​a when b=a⊕s1b=a\oplus s_1b=a⊕s1​, and 000 otherwise, and let CsC_sCs​ have entries (Cs)a,b=(−1)s2a(C_s)_{a,b}=(-1)^{s_2a}(Cs​)a,b​=(−1)s2​a when b=a⊕s1b=a\oplus s_1b=a⊕s1​, and 000 otherwise. Here ⊕\oplus⊕ is addition modulo 222, and bits in exponents are 0,10,10,1. For every input matrix XXX, the defined output is

T(X)=∑s∈{0,1}2(Rs⊗Cs) X (Rs⊗Cs)†.\mathcal T(X)=\sum_{s\in\{0,1\}^2} (R_s\otimes C_s)\,X\,(R_s\otimes C_s)^\dagger.T(X)=s∈{0,1}2∑​(Rs​⊗Cs​)X(Rs​⊗Cs​)†.

The sum includes all four bit pairs, and the input need not be a density matrix.

QAlgorithms.Papers.Independent.Gap20.P11.teleportReferenceInput

For any type RRR, without a finiteness or nonemptiness assumption, and any complex matrix XXX indexed by R×{0,1}R\times\{0,1\}R×{0,1}, this defines a complex matrix on R×(({0,1}×{0,1})×{0,1})R\times((\{0,1\}\times\{0,1\})\times\{0,1\})R×(({0,1}×{0,1})×{0,1}). For arbitrary r,r′∈Rr,r'\in Rr,r′∈R and bits a,b,c,a′,b′,c′a,b,c,a',b',c'a,b,c,a′,b′,c′, its entries are

Y(r,((a,b),c)),(r′,((a′,b′),c′))=12 X(r,a),(r′,a′) 1{b=c}1{b′=c′}.Y_{(r,((a,b),c)),(r',((a',b'),c'))} =\frac12\,X_{(r,a),(r',a')}\, \mathbf1_{\{b=c\}}\mathbf1_{\{b'=c'\}}.Y(r,((a,b),c)),(r′,((a′,b′),c′))​=21​X(r,a),(r′,a′)​1{b=c}​1{b′=c′}​.

Equivalently, the entry of XXX is multiplied by the corresponding entry of ∣Φ⟩⟨Φ∣|\Phi\rangle\langle\Phi|∣Φ⟩⟨Φ∣, where Φ=(∣0,0⟩+∣1,1⟩)/2\Phi=(|0,0\rangle+|1,1\rangle)/\sqrt2Φ=(∣0,0⟩+∣1,1⟩)/2​; the output indexing places a,ba,ba,b together and ccc last. No positivity, trace, or normalization hypothesis is imposed on XXX.

QAlgorithms.Papers.Independent.Gap20.P11.teleportRow

For every pair of bits s=(s1,s2)s=(s_1,s_2)s=(s1​,s2​), this defines a complex matrix RsR_sRs​ with a singleton row index and a pair of bits (a,b)(a,b)(a,b) as column index:

(Rs)∗,(a,b)={2−1/2(−1)s2a,b=a⊕s1,0,b≠a⊕s1.(R_s)_{*,(a,b)}= \begin{cases} 2^{-1/2}(-1)^{s_2a},&b=a\oplus s_1,\\ 0,&b\ne a\oplus s_1. \end{cases}(Rs​)∗,(a,b)​={2−1/2(−1)s2​a,0,​b=a⊕s1​,b=a⊕s1​.​

Here ⊕\oplus⊕ is addition modulo 222, and bits in the exponent are identified with 0,10,10,1; consequently the nonzero entry is negative exactly when both s2s_2s2​ and aaa are true.

QAlgorithms.Papers.Independent.Gap20.P11.unknownQubit

This defines a complex matrix on {0,1}×{∗}\{0,1\}\times\{*\}{0,1}×{∗}, where {∗}\{*\}{∗} is a singleton, by

ρ(a,∗),(b,∗)={12,a=b,0,a≠b.\rho_{(a,*),(b,*)}= \begin{cases} \tfrac12,&a=b,\\ 0,&a\ne b. \end{cases}ρ(a,∗),(b,∗)​={21​,0,​a=b,a=b.​

Thus its two diagonal entries are 1/21/21/2, and its two off-diagonal entries are 000.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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