Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for Fundamental limits to quantum channel discrimination

Definition
QAlgorithms_Papers_Independent_Intakethird100_P49

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Fundamental limits to quantum channel discrimination (arXiv:1803.02834) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • Ports: PDF pp.2--3, (6): M labelled ports, each of dimension d.
  • pbtSignal: PDF pp.2--3, (6)--(7), Supplement I (65)--(66): Bell projector on C,A_i, identity on the other Alice ports. The common signal normalization cancels in SRM.
  • pbtPOVM: PDF p.3, standard square-root measurement: generalized inverse on the support, with the missing kernel projector shared equally among all M outcomes.
  • pbtSelection: PDF pp.3--4, Fig.2: Alice measures C,A and sends i; Bob keeps B_i and traces out every other port. Formula on ALL joint operators preserves reference coherences. Alice's remaining output is Unit, so this has an explicit LOCC cut.
  • bellPorts: PDF p.3, (6): M independent NORMALIZED Bell pairs, grouped Alice:Bob.
  • pbtChannel: PDF p.3, (7): operational PBT channel, obtained from measurement and port selection with standard Bell resources. This is not defined as a depolarizing map.
  • pbtError: PDF p.3, (8): UNHALVED diamond simulation error of the actual protocol.
  • pbtEntanglementFidelity: PDF p.3, (8): entanglement fidelity against the normalized Bell ket.
  • pbtNumber: PDF p.3, (10): extract depolarizing probability from attenuation of |0><1|. Only d>=2 is used; the otherwise branch is unused and explicitly zero. The theorem, rather than a structure field, identifies the whole channel as depolarizing.
  • simulated: PDF p.4, (12): approximate channel is E composed with the actual PBT channel.
  • choiPorts: PDF p.4, (13): actual M-copy normalized Choi resource, grouped Alice:Bob.
  • pbtSimulationInput: PDF p.4, (13): input and grouped Choi copies at the simulation's correct cut.
  • symmetricAdaptiveError: PDF p.2, (1)--(2): equal-prior operational optimum over the frozen genuine adaptive tests. Each test is fixed before the unknown label and counts n actual calls. At zero calls, every label-independent preparation/POVM has error 1/2. For CPTP pairs the positive-use infimum is nonempty and contained in [0,1].
  • testOutput: PDF p.2: terminal register before the final POVM, for a positive-use test.
  • AdaptiveProtocol: PDF pp.1--2, arbitrary-task protocol: arbitrary finite retained memory, normalized preparation and CPTP interleavings, independent of E. A fixed maximum memory accommodates changing finite dimensions. Both terminal channels are explicit; only terminalZero is used at n=0, and only terminal is used at positive n.
  • protocolInput: PDF p.2: state entering the next actual call; the kth interleaving follows it.
  • adaptiveProtocolOutput: PDF pp.2,4: computed general-task terminal output, including the no-call case.
  • universalBound: PDF p.4, (20): the unclipped bound at the integer port count M.
  • meanSimulationError: PDF p.6, (30): the average of the two actual unhalved channel errors.
  • qubitNumberFormula: PDF p.3, (11): k=(M-1)/2-s is an integer. Real exponents avoid truncated M-4 at M=2,3. The sum includes the s=0 term when M is odd.
  • dampingFidelity: PDF p.7, (35): explicit root fidelity scalar, not its square.
  • dampingSimulationError: PDF p.7, (36): explicit candidate for the actual simulation error.
  • bellProbeBlockError: PDF pp.6--7, (34): independent Bell probes and optimal JOINT measurement.
  • opticalChannel: Supplement II, PDF p.15, (117)--(124): coherent vacuum/one-photon qubit-to-qutrit imaging channel. sign=false/true selects the plus/minus position. Output order is vacuum, symmetric mode, antisymmetric mode. Printed (121) has a fixed minus; the relative sign here follows the defining (117),(118),(124).
  • opticalAntiBell: Supplement II, PDF p.15: the source's anti-Bell input, reference FIRST.
  • opticalChoi: Supplement II, PDF p.15, (125)--(126): source Choi states, computed from actual coherent channels using the anti-Bell convention.
  • opticalPsi: Supplement II, PDF p.15, (127), with reference/output order made explicit. The leakage vacuum is the JOINT reference/output vacuum (0,0).
  • illuminationNoise: Supplement III, PDF pp.16--17, (145)--(146): d one-photon modes plus vacuum, with one photon TOTAL. Physical range is b>=0, d*b<=1.
  • illuminationChannel: Supplement III, PDF p.17, (146): target absent (replacement by tau_b), or present (mixture of that channel with identity). Defined on every operator.
  • illuminationOmegaSquared: Supplement III, PDF p.17, (148): actual positive product sqrt(sigma)rhosqrt(sigma). Canonical reference-first Choi order is a common swap of the source's order.
  • illuminationBlock: Supplement III, PDF p.17, corrected (149), already divided by (d+1)^2. Printed positive-mode diagonal b*(b+eta) is changed to (1-eta)b^2+etab, as forced by exact (148). This correction requires independent moderation.
  • AdmissiblePrivateMeasure: Supplement V, PDF p.19, (178)--(182): the source's admissible entanglement-measure properties on ACTUAL finite bipartite states. Continuity has an explicit full-norm domain and compared-state dimension, and applies to all errors at most gamma. Normalization uses private targets of arbitrary finite shield size; no uniform shield-dimension restriction is imposed.
  • realREE: Supplement V, PDF p.20, (184): finite REAL state REE in bits, before any subtraction. For normalized finite-dimensional states the accepted REE is finite, since the normalized identity is a full-support separable comparison. The toReal default at infinity is therefore never used on the theorem's states.
  • amortizedREE: Supplement V, PDF p.20, (184): amortized REE, an EXTENDED supremum of finite real differences. Positive finite memories on BOTH sides are optimized. The input cut is (a',a):b', correcting the printed b to b'; the output cut is a':(b,b'). The extension of the ACTUAL channel retains all coherences.
  • capacityContinuity: Supplement V, PDF p.20, (186): continuity function, including 0*log(0)=0.
  • privateCapacityBound: Supplement V, PDF p.20, (190): explicit bound for an INTEGER port count.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_QuantumOutputMetrics
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P18
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P54
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P25
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P07

/-!
Pirandola--Laurenza--Lupo--Pereira, arXiv:1803.02834v4.
Only the assigned paper's new definitions live here. Standard deterministic PBT
is computed from its square-root POVM and Bell resources, never postulated to be
depolarizing. All channel distances are unhalved; state distance is half trace norm.
Source issues and deferred approximate claims are recorded in HARD.md.
Compilation and independent moderation are pending their separate handoffs.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P49

open QAlgorithms Filter
open scoped Matrix ComplexConjugate ComplexOrder BigOperators

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower)
open QAlgorithms.Papers.Independent.Dependency50.P18 (bipartiteTensor)
open QAlgorithms.Papers.Independent.Information100.P71 (diamond AdaptiveTest adaptiveInput adaptiveAccept)
open QAlgorithms.Papers.Independent.Bridge50.P25
  (LOCCOn normalizedChannelChoi TwoWayGenerationCode TwoWayChannelProtocol
   generationCodeError twoWayGenerationCapacity sendChannelRegister StateFunctional
   IsDimensionChangingLOCCMonotone privateStateInPartyOrder)
open QAlgorithms.Papers.Independent.Support50.P07 (amplitudeDampingChannel)

/-- PDF pp.2--3, (6): M labelled ports, each of dimension d. -/
abbrev Ports (d M : ℕ) := Fin M → Fin d

/-- PDF pp.2--3, (6)--(7), Supplement I (65)--(66): Bell projector on C,A_i,
identity on the other Alice ports. The common signal normalization cancels in SRM. -/
def pbtSignal (d M : ℕ) (i : Fin M) : Mat (Fin d × Ports d M) :=
  fun p q => if p.1 = p.2 i ∧ q.1 = q.2 i ∧
    (∀ j, j ≠ i → p.2 j = q.2 j) then (1 / (d : ℂ)) else 0

/-- PDF p.3, standard square-root measurement: generalized inverse on the support,
with the missing kernel projector shared equally among all M outcomes. -/
def pbtPOVM (d M : ℕ) (i : Fin M) : Mat (Fin d × Ports d M) :=
  let S := ∑ j : Fin M, pbtSignal d M j
  let R := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) S
  R * pbtSignal d M i * R + (1 / (M : ℂ)) • (1 - R * S * R)

/-- PDF pp.3--4, Fig.2: Alice measures C,A and sends i; Bob keeps B_i and
traces out every other port. Formula on ALL joint operators preserves reference
coherences. Alice's remaining output is Unit, so this has an explicit LOCC cut. -/
def pbtSelection (d e M : ℕ) :
    Superop ((Fin d × Ports d M) × Ports e M) (Unit × Fin e) :=
  fun X u v => ∑ i : Fin M, ∑ p : Fin d × Ports d M, ∑ q : Fin d × Ports d M,
    ∑ b : Ports e M, ∑ c : Ports e M,
      if b i = u.2 ∧ c i = v.2 ∧ (∀ j, j ≠ i → b j = c j)
      then pbtPOVM d M i q p * X (p,b) (q,c) else 0

/-- PDF p.3, (6): M independent NORMALIZED Bell pairs, grouped Alice:Bob. -/
def bellPorts (d M : ℕ) : Mat (Ports d M × Ports d M) :=
  fun p q => ∏ i, if p.1 i = p.2 i ∧ q.1 i = q.2 i then (1 / (d : ℂ)) else 0

/-- PDF p.3, (7): operational PBT channel, obtained from measurement and port
selection with standard Bell resources. This is not defined as a depolarizing map. -/
def pbtChannel (d M : ℕ) : Superop (Fin d) (Fin d) :=
  fun X a b => pbtSelection d d M
    (fun p q => X p.1.1 q.1.1 * bellPorts d M (p.1.2,p.2) (q.1.2,q.2))
    ((),a) ((),b)

/-- PDF p.3, (8): UNHALVED diamond simulation error of the actual protocol. -/
def pbtError (d M : ℕ) : ℝ := diamond (fun X => X - pbtChannel d M X)

/-- PDF p.3, (8): entanglement fidelity against the normalized Bell ket. -/
def pbtEntanglementFidelity (d M : ℕ) [NeZero d] : ℝ :=
  let v := finiteMaxEntangled (Fin d)
  (∑ a, ∑ b, conj (v a) * normalizedChannelChoi (pbtChannel d M) a b * v b).re

/-- PDF p.3, (10): extract depolarizing probability from attenuation of |0><1|.
Only d>=2 is used; the otherwise branch is unused and explicitly zero.
The theorem, rather than a structure field, identifies the whole channel as depolarizing. -/
def pbtNumber (d M : ℕ) : ℝ :=
  if hd : 2 ≤ d then
    let z : Fin d := ⟨0, by omega⟩
    let o : Fin d := ⟨1, by omega⟩
    1 - (pbtChannel d M (Matrix.single z o 1) z o).re
  else 0

/-- PDF p.4, (12): approximate channel is E composed with the actual PBT channel. -/
def simulated {d e : ℕ} (E : Superop (Fin d) (Fin e)) (M : ℕ) :
    Superop (Fin d) (Fin e) := E ∘ pbtChannel d M

/-- PDF p.4, (13): actual M-copy normalized Choi resource, grouped Alice:Bob. -/
def choiPorts {d e : ℕ} [NeZero d] (E : Superop (Fin d) (Fin e)) (M : ℕ) :
    Mat (Ports d M × Ports e M) :=
  fun p q => ∏ i, normalizedChannelChoi E (p.1 i,p.2 i) (q.1 i,q.2 i)

/-- PDF p.4, (13): input and grouped Choi copies at the simulation's correct cut. -/
def pbtSimulationInput {d e : ℕ} [NeZero d] (E : Superop (Fin d) (Fin e))
    (M : ℕ) (X : Mat (Fin d)) : Mat ((Fin d × Ports d M) × Ports e M) :=
  fun p q => X p.1.1 q.1.1 * choiPorts E M (p.1.2,p.2) (q.1.2,q.2)

/-- PDF p.2, (1)--(2): equal-prior operational optimum over the frozen genuine
adaptive tests. Each test is fixed before the unknown label and counts n actual
calls. At zero calls, every label-independent preparation/POVM has error 1/2.
For CPTP pairs the positive-use infimum is nonempty and contained in [0,1]. -/
def symmetricAdaptiveError {d e : ℕ} (n : ℕ) (E0 E1 : Superop (Fin d) (Fin e)) : ℝ :=
  if n = 0 then 1 / 2 else
    sInf {p | ∃ P : AdaptiveTest (Fin d) (Fin e) n,
      p = (1 - adaptiveAccept P E0 + adaptiveAccept P E1) / 2}

/-- PDF p.2: terminal register before the final POVM, for a positive-use test. -/
def testOutput {d e n : ℕ} (P : AdaptiveTest (Fin d) (Fin e) n)
    (E : Superop (Fin d) (Fin e)) : Mat (Fin P.memory × Fin e) :=
  idTensorSuperop E (adaptiveInput P E (n - 1))

/-- PDF pp.1--2, arbitrary-task protocol: arbitrary finite retained memory,
normalized preparation and CPTP interleavings, independent of E. A fixed maximum
memory accommodates changing finite dimensions. Both terminal channels are explicit;
only terminalZero is used at n=0, and only terminal is used at positive n. -/
structure AdaptiveProtocol (d e o n : ℕ) where
  memory : ℕ
  memory_pos : 0 < memory
  initial : Mat (Fin memory × Fin d)
  initial_density : IsDensityMatrix initial
  between : ℕ → Superop (Fin memory × Fin e) (Fin memory × Fin d)
  between_channels : ∀ k, IsChannel (between k)
  terminalZero : Superop (Fin memory × Fin d) (Fin o)
  terminalZero_channel : IsChannel terminalZero
  terminal : Superop (Fin memory × Fin e) (Fin o)
  terminal_channel : IsChannel terminal

/-- PDF p.2: state entering the next actual call; the kth interleaving follows it. -/
def protocolInput {d e o n : ℕ} (P : AdaptiveProtocol d e o n)
    (E : Superop (Fin d) (Fin e)) : ℕ → Mat (Fin P.memory × Fin d)
  | 0 => P.initial
  | k + 1 => P.between k (idTensorSuperop E (protocolInput P E k))

/-- PDF pp.2,4: computed general-task terminal output, including the no-call case. -/
def adaptiveProtocolOutput {d e o n : ℕ} (P : AdaptiveProtocol d e o n)
    (E : Superop (Fin d) (Fin e)) : Mat (Fin o) :=
  if n = 0 then P.terminalZero P.initial
  else P.terminal (idTensorSuperop E (protocolInput P E (n - 1)))

/-- PDF p.4, (20): the unclipped bound at the integer port count M. -/
def universalBound {d e : ℕ} [NeZero d] (n M : ℕ)
    (E0 E1 : Superop (Fin d) (Fin e)) : ℝ :=
  (1 - n * pbtError d M - traceDistance
    (tensorPower (n * M) (normalizedChannelChoi E0))
    (tensorPower (n * M) (normalizedChannelChoi E1))) / 2

/-- PDF p.6, (30): the average of the two actual unhalved channel errors. -/
def meanSimulationError {d e : ℕ} (M : ℕ)
    (E0 E1 : Superop (Fin d) (Fin e)) : ℝ :=
  (diamond (fun X => E0 X - simulated E0 M X) +
   diamond (fun X => E1 X - simulated E1 M X)) / 2

/-- PDF p.3, (11): k=(M-1)/2-s is an integer. Real exponents avoid truncated
M-4 at M=2,3. The sum includes the s=0 term when M is odd. -/
def qubitNumberFormula (M : ℕ) : ℝ :=
  ((M : ℝ) + 2) / (3 * (2 : ℝ) ^ ((M : ℝ) - 1)) +
    (1 / 3 : ℝ) * ∑ k ∈ Finset.range ((M - 1) / 2 + 1),
      let s := ((M : ℝ) - 1) / 2 - (k : ℝ)
      s * (s + 1) / (2 : ℝ) ^ ((M : ℝ) - 4) * (M.choose k : ℝ) *
        (((M : ℝ) + 2) - Real.sqrt (((M : ℝ) + 2)^2 - (2*s+1)^2)) /
          (((M : ℝ) + 2)^2 - (2*s+1)^2)

/-- PDF p.7, (35): explicit root fidelity scalar, not its square. -/
def dampingFidelity (p q : ℝ) : ℝ :=
  (1 + Real.sqrt ((1-p)*(1-q)) + Real.sqrt (p*q)) / 2

/-- PDF p.7, (36): explicit candidate for the actual simulation error. -/
def dampingSimulationError (M : ℕ) (p : ℝ) : ℝ :=
  pbtNumber 2 M * ((1-p)/2 + Real.sqrt (1-p))

/-- PDF pp.6--7, (34): independent Bell probes and optimal JOINT measurement. -/
def bellProbeBlockError {d e : ℕ} [NeZero d] (n : ℕ)
    (E0 E1 : Superop (Fin d) (Fin e)) : ℝ :=
  (1 - traceDistance (tensorPower n (normalizedChannelChoi E0))
    (tensorPower n (normalizedChannelChoi E1))) / 2

/-! Sanity examples pin operational construction and boundary conventions. -/

example {d e : ℕ} (E0 E1 : Superop (Fin d) (Fin e)) :
    symmetricAdaptiveError 0 E0 E1 = 1 / 2 := by simp [symmetricAdaptiveError]

example {d e o : ℕ} (P : AdaptiveProtocol d e o 0)
    (E : Superop (Fin d) (Fin e)) :
    adaptiveProtocolOutput P E = P.terminalZero P.initial := by simp [adaptiveProtocolOutput]

example (d M : ℕ) (i : Fin M) (p q : Fin d × Ports d M)
    (h : p.1 ≠ p.2 i) : pbtSignal d M i p q = 0 := by simp [pbtSignal, h]

example {d e : ℕ} [NeZero d] (E : Superop (Fin d) (Fin e))
    (p q : Ports d 0 × Ports e 0) : choiPorts E 0 p q = 1 := by simp [choiPorts]

example : dampingFidelity 0 1 = 1 / 2 := by norm_num [dampingFidelity]

/-- Supplement II, PDF p.15, (117)--(124): coherent vacuum/one-photon
qubit-to-qutrit imaging channel. sign=false/true selects the plus/minus position.
Output order is vacuum, symmetric mode, antisymmetric mode. Printed (121) has
a fixed minus; the relative sign here follows the defining (117),(118),(124). -/
def opticalChannel (eta delta : ℝ) (sign : Bool) : Superop (Fin 2) (Fin 3) :=
  let a := Real.sqrt ((1+delta)*eta/2)
  let b := (if sign then -1 else 1 : ℝ) * Real.sqrt ((1-delta)*eta/2)
  krausApply ![!![1, 0; 0, (a : ℂ); 0, (b : ℂ)],
    !![0, (Real.sqrt (1-eta) : ℂ); 0, 0; 0, 0]]

/-- Supplement II, PDF p.15: the source's anti-Bell input, reference FIRST. -/
def opticalAntiBell : EuclideanSpace ℂ (Fin 2 × Fin 2) :=
  WithLp.toLp 2 fun p => if p.1 ≠ p.2 then ((Real.sqrt 2)⁻¹ : ℂ) else 0

/-- Supplement II, PDF p.15, (125)--(126): source Choi states, computed
from actual coherent channels using the anti-Bell convention. -/
def opticalChoi (eta delta : ℝ) (sign : Bool) : Mat (Fin 2 × Fin 3) :=
  idTensorSuperop (opticalChannel eta delta sign) (pureDensity opticalAntiBell)

/-- Supplement II, PDF p.15, (127), with reference/output order made explicit.
The leakage vacuum is the JOINT reference/output vacuum (0,0). -/
def opticalPsi (eta delta : ℝ) (sign : Bool) : EuclideanSpace ℂ (Fin 2 × Fin 3) :=
  WithLp.toLp 2 fun p =>
    ((if p = (1,0) then 1 else if p = (0,1) then Real.sqrt ((1+delta)*eta/2)
      else if p = (0,2) then (if sign then -1 else 1)*Real.sqrt ((1-delta)*eta/2)
      else 0 : ℝ) / Real.sqrt (1+eta) : ℂ)

/-- Supplement III, PDF pp.16--17, (145)--(146): d one-photon modes plus
vacuum, with one photon TOTAL. Physical range is b>=0, d*b<=1. -/
def illuminationNoise (d : ℕ) (b : ℝ) : Mat (Fin (d+1)) :=
  Matrix.diagonal fun j => ((if j.val = 0 then 1-d*b else b : ℝ) : ℂ)

/-- Supplement III, PDF p.17, (146): target absent (replacement by tau_b),
or present (mixture of that channel with identity). Defined on every operator. -/
def illuminationChannel (d : ℕ) (b eta : ℝ) : Superop (Fin (d+1)) (Fin (d+1)) :=
  fun X => ((1-eta : ℝ) : ℂ) • (X.trace • illuminationNoise d b) + (eta : ℂ) • X

/-- Supplement III, PDF p.17, (148): actual positive product sqrt(sigma)*rho*sqrt(sigma).
Canonical reference-first Choi order is a common swap of the source's order. -/
def illuminationOmegaSquared (d : ℕ) (b eta : ℝ) : Mat (Fin (d+1) × Fin (d+1)) :=
  let sigma := normalizedChannelChoi (illuminationChannel d b 0)
  let rho := normalizedChannelChoi (illuminationChannel d b eta)
  cfc Real.sqrt sigma * rho * cfc Real.sqrt sigma

/-- Supplement III, PDF p.17, corrected (149), already divided by (d+1)^2.
Printed positive-mode diagonal b*(b+eta) is changed to (1-eta)*b^2+eta*b,
as forced by exact (148). This correction requires independent moderation. -/
def illuminationBlock (d : ℕ) (b eta : ℝ) : Mat (Fin (d+1)) :=
  fun i j =>
    ((if i.val = 0 ∧ j.val = 0 then (1-eta)*(1-d*b)^2+eta*(1-d*b)
      else if i.val = 0 ∨ j.val = 0 then eta*Real.sqrt ((1-d*b)*b)
      else if i = j then (1-eta)*b^2+eta*b else eta*b : ℝ) /
      ((d : ℝ)+1)^2 : ℂ)

/-- Supplement V, PDF p.19, (178)--(182): the source's admissible
entanglement-measure properties on ACTUAL finite bipartite states. Continuity
has an explicit full-norm domain and compared-state dimension, and applies to
all errors at most gamma. Normalization uses private targets of arbitrary finite
shield size; no uniform shield-dimension restriction is imposed. -/
def AdmissiblePrivateMeasure (E : StateFunctional) (g h : ℝ → ℝ) (domain : Set ℝ) : Prop :=
  IsDimensionChangingLOCCMonotone E ∧
  Tendsto g (nhdsWithin 0 (Set.Ioi 0)) (nhds 0) ∧
  Tendsto h (nhdsWithin 0 (Set.Ioi 0)) (nhds 0) ∧
  domain ⊆ Set.Ici 0 ∧
  (∀ (A B C D : Type) [Fintype A] [DecidableEq A] [Nonempty A]
    [Fintype B] [DecidableEq B] [Nonempty B]
    [Fintype C] [DecidableEq C] [Nonempty C]
    [Fintype D] [DecidableEq D] [Nonempty D]
    (rho : Mat (A × B)) (sigma : Mat (C × D)),
    IsDensityMatrix rho → IsDensityMatrix sigma →
    E (A × C) (B × D) (bipartiteTensor rho sigma) ≤ E A B rho + E C D sigma) ∧
  (∀ (k s : ℕ) (sigma : Mat (Fin (s+1) × Fin (s+1)))
    (U : Fin (2^k) → Matrix.unitaryGroup (Fin (s+1) × Fin (s+1)) ℂ),
    IsDensityMatrix sigma →
    (k : ℝ) ≤ E (Fin (2^k) × Fin (s+1)) (Fin (2^k) × Fin (s+1))
      (privateStateInPartyOrder (2^k) s sigma U)) ∧
  (∀ (A B : Type) [Fintype A] [DecidableEq A] [Nonempty A]
    [Fintype B] [DecidableEq B] [Nonempty B]
    (rho sigma : Mat (A × B)) (gamma : ℝ),
    IsDensityMatrix rho → IsDensityMatrix sigma → gamma ∈ domain →
    traceNorm (rho-sigma) ≤ gamma →
    |E A B rho - E A B sigma| ≤
      g gamma * Real.logb 2 (Fintype.card A * Fintype.card B) + h gamma)

/-- Supplement V, PDF p.20, (184): finite REAL state REE in bits, before
any subtraction. For normalized finite-dimensional states the accepted REE is
finite, since the normalized identity is a full-support separable comparison.
The toReal default at infinity is therefore never used on the theorem's states. -/
def realREE {A B : Type} [Fintype A] [DecidableEq A] [Nonempty A]
    [Fintype B] [DecidableEq B] [Nonempty B] (rho : Mat (A × B)) : ℝ :=
  (QAlgorithms.Papers.Independent.Information100.P54.relativeEntanglement rho).toReal

/-- Supplement V, PDF p.20, (184): amortized REE, an EXTENDED supremum of
finite real differences. Positive finite memories on BOTH sides are optimized.
The input cut is (a',a):b', correcting the printed b to b'; the output cut
is a':(b,b'). The extension of the ACTUAL channel retains all coherences. -/
def amortizedREE {d e : ℕ} [NeZero d] [NeZero e]
    (E : Superop (Fin d) (Fin e)) : EReal :=
  sSup {v | ∃ a b : ℕ, ∃ rho : Mat ((Fin (a+1) × Fin d) × Fin (b+1)),
    IsDensityMatrix rho ∧
    v = ((realREE (sendChannelRegister E rho) - realREE rho : ℝ) : EReal)}

/-- Supplement V, PDF p.20, (186): continuity function, including 0*log(0)=0. -/
def capacityContinuity (t : ℝ) : ℝ :=
  (1+t)*Real.logb 2 (1+t) - t*Real.logb 2 t

/-- Supplement V, PDF p.20, (190): explicit bound for an INTEGER port count. -/
def privateCapacityBound (d M : ℕ) [NeZero d]
    (E : Superop (Fin d) (Fin d)) : ℝ :=
  M * realREE (normalizedChannelChoi E) +
    2*(d : ℝ)*(d-1 : ℝ)/M * Real.logb 2 d +
    capacityContinuity ((d : ℝ)*(d-1 : ℝ)/M)

example (eta delta : ℝ) (s : Bool) :
    opticalPsi eta delta s (1,0) = ((1 / Real.sqrt (1+eta) : ℝ) : ℂ) := by
  simp [opticalPsi]

example (d : ℕ) (b : ℝ) (i : Fin (d+1)) :
    illuminationNoise d b i i = ((if i.val = 0 then 1-d*b else b : ℝ) : ℂ) := by
  simp [illuminationNoise]

example (d : ℕ) (b : ℝ) : illuminationChannel d b 1 = id := by
  funext X
  simp [illuminationChannel]

example {A B C D : Type} (rho : Mat (A × B)) (sigma : Mat (C × D))
    (p q : (A × C) × (B × D)) : bipartiteTensor rho sigma p q =
    rho (p.1.1,p.2.1) (q.1.1,q.2.1) * sigma (p.1.2,p.2.2) (q.1.2,q.2.2) := rfl

example : capacityContinuity 0 = 0 := by simp [capacityContinuity]

end QAlgorithms.Papers.Independent.Intakethird100.P49
Source
Fundamental limits to quantum channel discrimination, arXiv:1803.02834v4, https://arxiv.org/abs/1803.02834v4
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P49.AdaptiveProtocol

For any natural numbers d,e,o,nd,e,o,nd,e,o,n, this structure consists of a natural number rrr with r>0r>0r>0; an initial complex matrix ρ0\rho_0ρ0​ on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd that is positive semidefinite and has complex trace 111; a function assigning to every k∈Nk\in\mathbb Nk∈N a channel Bk\mathcal B_kBk​ from matrices on Cr⊗Ce\mathbb C^r\otimes\mathbb C^eCr⊗Ce to matrices on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd; a channel Z\mathcal ZZ from matrices on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd to complex o×oo\times oo×o matrices; and a channel T\mathcal TT from matrices on Cr⊗Ce\mathbb C^r\otimes\mathbb C^eCr⊗Ce to complex o×oo\times oo×o matrices. Each channel requirement means that the corresponding function equals X↦∑j=0m−1KjXKj†X\mapsto\sum_{j=0}^{m-1}K_jXK_j^\daggerX↦∑j=0m−1​Kj​XKj†​ for some natural number mmm and matrices KjK_jKj​ satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The parameter nnn imposes no further condition on these fields, and the intermediate channels are specified for every natural index, including indices beyond nnn. The dimension parameters are not separately required to be positive, although the density and channel requirements can make some zero-dimensional choices impossible.

QAlgorithms.Papers.Independent.Intakethird100.P49.AdmissiblePrivateMeasure

Let EEE assign a real number EA:B(ρ)E_{A:B}(\rho)EA:B​(ρ) to every complex matrix on A×BA\times BA×B, for all finite nonempty index types A,BA,BA,B with decidable equality; let g,h:R→Rg,h:\mathbb R\to\mathbb Rg,h:R→R and D⊆R\mathcal D\subseteq\mathbb RD⊆R. This predicate means that all the following hold jointly: EA:B(ρ)≥0E_{A:B}(\rho)\ge0EA:B​(ρ)≥0 for every density matrix ρ\rhoρ, and EC:D(L(ρ))≤EA:B(ρ)E_{C:D}(L(\rho))\le E_{A:B}(\rho)EC:D​(L(ρ))≤EA:B​(ρ) for every such ρ\rhoρ and every finite local protocol LLL from A:BA:BA:B to C:DC:DC:D; these protocols, after identifying the bases with finite integer index sets, are generated by identities and finite local Kraus families satisfying ∑iKi†Ki=1\sum_iK_i^\dagger K_i=1∑i​Ki†​Ki​=1, with an independently chosen subsequent protocol for each outcome and the resulting branches summed. Both g(t)g(t)g(t) and h(t)h(t)h(t) tend to zero as t→0t\to0t→0 through positive real values, and D⊆[0,∞)\mathcal D\subseteq[0,\infty)D⊆[0,∞). For every four finite nonempty index types A,B,C,DA,B,C,DA,B,C,D with decidable equality and density matrices ρ\rhoρ on A×BA\times BA×B and σ\sigmaσ on C×DC\times DC×D,

E(A×C):(B×D)(ρ⊠σ)≤EA:B(ρ)+EC:D(σ),(ρ⊠σ)(a,c,b,d),(a′,c′,b′,d′)=ρ(a,b),(a′,b′)σ(c,d),(c′,d′).E_{(A\times C):(B\times D)}(\rho\boxtimes\sigma) \le E_{A:B}(\rho)+E_{C:D}(\sigma), \quad (\rho\boxtimes\sigma)_{(a,c,b,d),(a',c',b',d')} =\rho_{(a,b),(a',b')}\sigma_{(c,d),(c',d')}.E(A×C):(B×D)​(ρ⊠σ)≤EA:B​(ρ)+EC:D​(σ),(ρ⊠σ)(a,c,b,d),(a′,c′,b′,d′)​=ρ(a,b),(a′,b′)​σ(c,d),(c′,d′)​.

For every k,s∈Nk,s\in\mathbb Nk,s∈N, every density matrix σ\sigmaσ on {0,…,s}2\{0,\ldots,s\}^2{0,…,s}2, and every family of unitary matrices UaU_aUa​ on that space indexed by 0≤a<2k0\le a<2^k0≤a<2k, one has k≤E(γ)k\le E(\gamma)k≤E(γ), with the bipartition (a,x):(b,y)(a,x):(b,y)(a,x):(b,y), where

γ((a,x),(b,y)),((a′,x′),(b′,y′))={2−k(UaσUa′†)(x,y),(x′,y′),a=b, a′=b′,0,otherwise.\gamma_{((a,x),(b,y)),((a',x'),(b',y'))} = \begin{cases} 2^{-k}(U_a\sigma U_{a'}^\dagger)_{(x,y),(x',y')}, &a=b,\ a'=b',\\ 0,&\text{otherwise}. \end{cases}γ((a,x),(b,y)),((a′,x′),(b′,y′))​={2−k(Ua​σUa′†​)(x,y),(x′,y′)​,0,​a=b, a′=b′,otherwise.​

Finally, for every finite nonempty A,BA,BA,B with decidable equality, density matrices ρ,σ\rho,\sigmaρ,σ on A×BA\times BA×B, and γ∈D\gamma\in\mathcal Dγ∈D satisfying ∥ρ−σ∥1≤γ\|\rho-\sigma\|_1\le\gamma∥ρ−σ∥1​≤γ,

∣EA:B(ρ)−EA:B(σ)∣≤g(γ)log⁡2(∣A∣∣B∣)+h(γ).|E_{A:B}(\rho)-E_{A:B}(\sigma)| \le g(\gamma)\log_2(|A||B|)+h(\gamma).∣EA:B​(ρ)−EA:B​(σ)∣≤g(γ)log2​(∣A∣∣B∣)+h(γ).

Here a density matrix is positive semidefinite with trace 111, and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The cases k=0k=0k=0 and s=0s=0s=0 are included; D\mathcal DD may be empty, making the last condition vacuous, and no separate nonnegativity assumption on g,hg,hg,h is imposed.

QAlgorithms.Papers.Independent.Intakethird100.P49.Ports

For natural numbers d,Md,Md,M, this denotes the set of functions {0,…,M−1}→{0,…,d−1}\{0,\ldots,M-1\}\to\{0,\ldots,d-1\}{0,…,M−1}→{0,…,d−1}, equivalently length-MMM strings with symbols in a ddd-element set. When M=0M=0M=0, it contains exactly the empty string, including when d=0d=0d=0; when d=0<Md=0<Md=0<M, it is empty.

QAlgorithms.Papers.Independent.Intakethird100.P49.adaptiveProtocolOutput

For natural numbers d,e,o,nd,e,o,nd,e,o,n, a protocol PPP, and an arbitrary function E\mathcal EE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines a complex o×oo\times oo×o matrix by

adaptiveProtocolOutput⁡(P,E)={P.terminalZero(P.initial),n=0,P.terminal ⁣(E^(ρn−1)),n>0,ρ0=P.initial,ρk+1=P.betweenk(E^(ρk)).\operatorname{adaptiveProtocolOutput}(P,\mathcal E)= \begin{cases} P.\mathrm{terminalZero}(P.\mathrm{initial}),&n=0,\\ P.\mathrm{terminal}\!\left(\widehat{\mathcal E}(\rho_{n-1})\right),&n>0, \end{cases} \qquad \rho_0=P.\mathrm{initial},\quad \rho_{k+1}=P.\mathrm{between}_k(\widehat{\mathcal E}(\rho_k)).adaptiveProtocolOutput(P,E)={P.terminalZero(P.initial),P.terminal(E(ρn−1​)),​n=0,n>0,​ρ0​=P.initial,ρk+1​=P.betweenk​(E(ρk​)).

Here the memory dimension r=P.memoryr=P.\mathrm{memory}r=P.memory is positive, and E^(X)(u,b),(v,c)=E((X(u,i),(v,j))i,j)b,c\widehat{\mathcal E}(X)_{(u,b),(v,c)}=\mathcal E((X_{(u,i),(v,j)})_{i,j})_{b,c}E(X)(u,b),(v,c)​=E((X(u,i),(v,j)​)i,j​)b,c​. The initial matrix is positive semidefinite with trace 111. Every intermediate map, the map P.terminalZeroP.\mathrm{terminalZero}P.terminalZero from the memory–input space, and the map P.terminalP.\mathrm{terminal}P.terminal from the memory–output space has a finite Kraus representation X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. No such assumption is made on E\mathcal EE. The zero-use branch does not apply E\mathcal EE; the positive-use branch applies it nnn times, with n−1n-1n−1 intermediate maps.

QAlgorithms.Papers.Independent.Intakethird100.P49.amortizedREE

For positive natural numbers d,ed,ed,e and any function E\mathcal EE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines the extended-real supremum

sup⁡a,b∈Nρ density on (({0,…,a}×{0,…,d−1})×{0,…,b})[RR(ω)−RR(ρ)],\sup_{\substack{a,b\in\mathbb N\\ \rho\ \mathrm{density\ on}\ ((\{0,\ldots,a\}\times\{0,\ldots,d-1\})\times\{0,\ldots,b\})}} \left[R_{\mathbb R}(\omega)-R_{\mathbb R}(\rho)\right],a,b∈Nρ density on (({0,…,a}×{0,…,d−1})×{0,…,b})​sup​[RR​(ω)−RR​(ρ)],

where

ω(x,(u,y)),(x′,(u′,y′))=E ⁣([ρ((x,i),y),((x′,j),y′)]i,j)u,u′.\omega_{(x,(u,y)),(x',(u',y'))} =\mathcal E\!\left( \bigl[\rho_{((x,i),y),((x',j),y')}\bigr]_{i,j} \right)_{u,u'}.ω(x,(u,y)),(x′,(u′,y′))​=E([ρ((x,i),y),((x′,j),y′)​]i,j​)u,u′​.

The input bipartition is (x,i):y(x,i):y(x,i):y, and the output bipartition is x:(u,y)x:(u,y)x:(u,y). For either bipartition, RR(X)R_{\mathbb R}(X)RR​(X) is the real conversion of the infimum, over finite convex combinations of product density matrices σ\sigmaσ, of Dbits(X∥σ)D_{\mathrm{bits}}(X\|\sigma)Dbits​(X∥σ); +∞+\infty+∞ converts to 000. Here Dbits=+∞D_{\mathrm{bits}}=+\inftyDbits​=+∞ unless both arguments are positive semidefinite of trace 111 and ker⁡σ⊆ker⁡X\ker\sigma\subseteq\ker Xkerσ⊆kerX; otherwise it equals max⁡{0,Re⁡tr⁡[(t↦tln⁡t)(X)−X(ln⁡)(σ)]}/ln⁡2\max\{0,\operatorname{Re}\operatorname{tr}[(t\mapsto t\ln t)(X)-X(\ln)(\sigma)]\}/\ln2max{0,Retr[(t↦tlnt)(X)−X(ln)(σ)]}/ln2. All functions of matrices use continuous functional calculus. The ancillary parameters a,ba,ba,b may be zero, giving one-dimensional ancillary registers. No linearity or channel assumption on E\mathcal EE is imposed, so ω\omegaω need not be a density matrix.

QAlgorithms.Papers.Independent.Intakethird100.P49.bellPorts

For natural numbers d,Md,Md,M, this defines a complex square matrix BBB indexed by pairs of strings in DMD^MDM, where D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, by

B(x,y),(x′,y′)=∏i=0M−1{1/d,xi=yi and xi′=yi′,0,otherwise.B_{(x,y),(x',y')} = \prod_{i=0}^{M-1} \begin{cases} 1/d,&x_i=y_i\ \text{and }x'_i=y'_i,\\ 0,&\text{otherwise}. \end{cases}B(x,y),(x′,y′)​=i=0∏M−1​{1/d,0,​xi​=yi​ and xi′​=yi′​,otherwise.​

For d>0d>0d>0, this entry is d−Md^{-M}d−M when x=yx=yx=y and x′=y′x'=y'x′=y′, and zero otherwise. When M=0M=0M=0, the index set is a singleton and its sole entry is the empty product 111, including when d=0d=0d=0. When d=0<Md=0<Md=0<M, the matrix has no entries.

QAlgorithms.Papers.Independent.Intakethird100.P49.bellProbeBlockError

For natural numbers d,e,nd,e,nd,e,n with d≠0d\ne0d=0, and arbitrary functions E0,E1\mathcal E_0,\mathcal E_1E0​,E1​ from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines

1−12∥C0[n]−C1[n]∥12,Ci((a,b),(a′,b′))=Ei(d−1∣a⟩⟨a′∣)b,b′.\frac{1-\tfrac12\|C_0^{[n]}-C_1^{[n]}\|_1}{2}, \qquad C_i((a,b),(a',b'))= \mathcal E_i(d^{-1}|a\rangle\langle a'|)_{b,b'}.21−21​∥C0[n]​−C1[n]​∥1​​,Ci​((a,b),(a′,b′))=Ei​(d−1∣a⟩⟨a′∣)b,b′​.

Here a,a′<da,a'<da,a′<d, b,b′<eb,b'<eb,b′<e, ∣a⟩⟨a′∣|a\rangle\langle a'|∣a⟩⟨a′∣ is the matrix unit, C[n](x,y)=∏j=0n−1C(xj,yj)C^{[n]}(x,y)=\prod_{j=0}^{n-1}C(x_j,y_j)C[n](x,y)=∏j=0n−1​C(xj​,yj​), and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​. Equivalently, CiC_iCi​ is obtained by extending Ei\mathcal E_iEi​ blockwise to the second factor of the pure density matrix of d−1/2∑a<d∣a,a⟩d^{-1/2}\sum_{a<d}|a,a\rangled−1/2∑a<d​∣a,a⟩. The functions Ei\mathcal E_iEi​ are not assumed to be linear or channels, and e=0e=0e=0 is permitted. When n=0n=0n=0, each product is empty and equals 111, so the two matrices coincide and the defined number is 1/21/21/2.

QAlgorithms.Papers.Independent.Intakethird100.P49.capacityContinuity

For every real number ttt, this defines

c(t)=(1+t)log⁡2(1+t)−tlog⁡2t.c(t)=(1+t)\log_2(1+t)-t\log_2t.c(t)=(1+t)log2​(1+t)−tlog2​t.

There is no restriction t≥0t\ge0t≥0. The logarithms are the total real logarithms used by the code: log⁡20=0\log_2 0=0log2​0=0, and for nonzero negative arguments log⁡2x=ln⁡∣x∣/ln⁡2\log_2x=\ln|x|/\ln2log2​x=ln∣x∣/ln2; in particular, c(0)=0c(0)=0c(0)=0.

QAlgorithms.Papers.Independent.Intakethird100.P49.choiPorts

For natural numbers d,ed,ed,e, with the explicit assumption d≠0d\ne0d=0, any function EEE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, and any natural number MMM, this defines a complex matrix indexed by DM×FMD^M\times F^MDM×FM, where D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1} and F={0,…,e−1}F=\{0,\ldots,e-1\}F={0,…,e−1}, as follows. Let Br,sB^{r,s}Br,s be the d×dd\times dd×d matrix whose sole nonzero entry is 1/d1/d1/d in position (r,s)(r,s)(r,s). The entries are

C(x,y),(x′,y′)=∏i=0M−1E(Bxi,xi′)yi,yi′.C_{(x,y),(x',y')} = \prod_{i=0}^{M-1} E(B^{x_i,x'_i})_{y_i,y'_i}.C(x,y),(x′,y′)​=i=0∏M−1​E(Bxi​,xi′​)yi​,yi′​​.

Each factor is the corresponding entry of the matrix obtained by applying the identity on one half of the normalized maximally entangled projector and EEE on the other half. No linearity or channel assumption is made on EEE, so the factor 1/d1/d1/d remains inside its argument. When M=0M=0M=0, the matrix has one entry, equal to the empty product 111; e=0e=0e=0 is allowed.

QAlgorithms.Papers.Independent.Intakethird100.P49.dampingFidelity

For every pair of real numbers p,qp,qp,q, this defines

dampingFidelity⁡(p,q)=1+(1−p)(1−q)+pq2.\operatorname{dampingFidelity}(p,q) =\frac{1+\sqrt{(1-p)(1-q)}+\sqrt{pq}}2.dampingFidelity(p,q)=21+(1−p)(1−q)​+pq​​.

There are no assumptions that ppp or qqq lie in [0,1][0,1][0,1]. Each real square root is the total real square-root function, which returns 000 for a negative argument.

QAlgorithms.Papers.Independent.Intakethird100.P49.dampingSimulationError

For every natural number MMM and real number ppp, this defines

ξM(1−p2+1−p).\xi_M\left(\frac{1-p}{2}+\sqrt{1-p}\right).ξM​(21−p​+1−p​).

The scalar ξM\xi_MξM​ is specified as follows. On indices (a,u)(a,u)(a,u), where a∈{0,1}a\in\{0,1\}a∈{0,1} and u∈{0,1}Mu\in\{0,1\}^Mu∈{0,1}M, define Si((a,u),(b,v))=1/2S_i((a,u),(b,v))=1/2Si​((a,u),(b,v))=1/2 when a=uia=u_ia=ui​, b=vib=v_ib=vi​, and uj=vju_j=v_juj​=vj​ for every j≠ij\ne ij=i, and define it to be 000 otherwise. Set S=∑i<MSiS=\sum_{i<M}S_iS=∑i<M​Si​, R=f(S)R=f(S)R=f(S) by continuous functional calculus for f(x)=(x)−1f(x)=(\sqrt x)^{-1}f(x)=(x​)−1, and Qi=RSiR+M−1(I−RSR)Q_i=RS_iR+M^{-1}(I-RSR)Qi​=RSi​R+M−1(I−RSR). Then

ξM=1−Re⁡ ⁣(2−M∑i<M∑u,v∈{0,1}Mui=0, vi=1uj=vj (j≠i)Qi((1,v),(0,u))).\xi_M= 1-\operatorname{Re}\!\left( 2^{-M}\sum_{i<M} \sum_{\substack{u,v\in\{0,1\}^M\\u_i=0,\ v_i=1\\u_j=v_j\ (j\ne i)}} Q_i((1,v),(0,u)) \right).ξM​=1−Re​2−Mi<M∑​u,v∈{0,1}Mui​=0, vi​=1uj​=vj​ (j=i)​∑​Qi​((1,v),(0,u))​.

Thus ξM\xi_MξM​ is one minus the real (0,1)(0,1)(0,1) entry obtained by applying the specified selection map to the matrix unit ∣0⟩⟨1∣|0\rangle\langle1|∣0⟩⟨1∣. All inverses at zero are 000; M=0M=0M=0 is included and gives ξ0=1\xi_0=1ξ0​=1 through the empty sum. There is no restriction on ppp, and 1−p=0\sqrt{1-p}=01−p​=0 when p>1p>1p>1. This declaration defines a real number without asserting that it is an error probability.

QAlgorithms.Papers.Independent.Intakethird100.P49.illuminationBlock

For every d∈Nd\in\mathbb Nd∈N and arbitrary b,η∈Rb,\eta\in\mathbb Rb,η∈R, this defines a complex (d+1)×(d+1)(d+1)\times(d+1)(d+1)×(d+1) matrix with real entries

Bij=1(d+1)2{(1−η)(1−db)2+η(1−db),i=j=0,η(1−db)b,exactly one of i,j is 0,(1−η)b2+ηb,i=j≠0,ηb,i≠j, i,j≠0.B_{ij}=\frac1{(d+1)^2} \begin{cases} (1-\eta)(1-db)^2+\eta(1-db),&i=j=0,\\ \eta\sqrt{(1-db)b},&\text{exactly one of }i,j\text{ is }0,\\ (1-\eta)b^2+\eta b,&i=j\ne0,\\ \eta b,&i\ne j,\ i,j\ne0. \end{cases}Bij​=(d+1)21​⎩⎨⎧​(1−η)(1−db)2+η(1−db),η(1−db)b​,(1−η)b2+ηb,ηb,​i=j=0,exactly one of i,j is 0,i=j=0,i=j, i,j=0.​

No positivity or range conditions are imposed. A negative square-root argument gives zero, while the denominator is always positive. For d=0d=0d=0, the matrix is (1)(1)(1).

QAlgorithms.Papers.Independent.Intakethird100.P49.illuminationChannel

For every natural number ddd and arbitrary real numbers b,ηb,\etab,η, this defines a function on complex (d+1)×(d+1)(d+1)\times(d+1)(d+1)×(d+1) matrices by

Λd,b,η(X)=(1−η)tr⁡(X) diag⁡(1−db,b,…,b)+ηX.\Lambda_{d,b,\eta}(X) =(1-\eta)\operatorname{tr}(X)\, \operatorname{diag}(1-db,b,\ldots,b)+\eta X.Λd,b,η​(X)=(1−η)tr(X)diag(1−db,b,…,b)+ηX.

The input XXX is arbitrary, and no assumptions that the displayed function is a channel or that the diagonal matrix is positive are part of this definition. The case d=0d=0d=0 is included.

QAlgorithms.Papers.Independent.Intakethird100.P49.illuminationNoise

For every natural number ddd, including d=0d=0d=0, and every b∈Rb\in\mathbb Rb∈R, this defines the complex diagonal matrix

τd,b=diag⁡(1−db,b,…,b⏟d entries)\tau_{d,b}=\operatorname{diag}(1-db,\underbrace{b,\ldots,b}_{d\text{ entries}})τd,b​=diag(1−db,d entriesb,…,b​​)

on the indices 0,…,d0,\ldots,d0,…,d. No positivity assumption on these entries is imposed. When d=0d=0d=0, the matrix is the 1×11\times11×1 matrix (1)(1)(1).

QAlgorithms.Papers.Independent.Intakethird100.P49.illuminationOmegaSquared

For every d∈Nd\in\mathbb Nd∈N and b,η∈Rb,\eta\in\mathbb Rb,η∈R, put D=d+1D=d+1D=d+1, τ=diag⁡(1−db,b,…,b)\tau=\operatorname{diag}(1-db,b,\ldots,b)τ=diag(1−db,b,…,b), and define matrices on {0,…,d}2\{0,\ldots,d\}^2{0,…,d}2 by

(Ct)(i,a),(j,b′)=1−tD 1i=jτab′+tD 1a=i1b′=j.(C_t)_{(i,a),(j,b')} =\frac{1-t}{D}\,\mathbf1_{i=j}\tau_{a b'} +\frac{t}{D}\,\mathbf1_{a=i}\mathbf1_{b'=j}.(Ct​)(i,a),(j,b′)​=D1−t​1i=j​τab′​+Dt​1a=i​1b′=j​.

These are obtained by applying X↦(1−t)tr⁡(X)τ+tXX\mapsto(1-t)\operatorname{tr}(X)\tau+tXX↦(1−t)tr(X)τ+tX to the second register of the projector onto D−1/2∑i∣i,i⟩D^{-1/2}\sum_i|i,i\rangleD−1/2∑i​∣i,i⟩. The declaration defines

Ωd,b,η2=(x )(C0) Cη (x )(C0),\Omega^2_{d,b,\eta} =\bigl(\sqrt{\phantom{x}}\,\bigr)(C_0)\,C_\eta\, \bigl(\sqrt{\phantom{x}}\,\bigr)(C_0),Ωd,b,η2​=(x​)(C0​)Cη​(x​)(C0​),

where the square-root function is applied through the real continuous functional calculus. No positivity or parameter restrictions are assumed; negative eigenvalues of the Hermitian matrix C0C_0C0​ contribute zero under the real square root. The case d=0d=0d=0 is included.

QAlgorithms.Papers.Independent.Intakethird100.P49.meanSimulationError

For natural numbers d,e,Md,e,Md,e,M and arbitrary functions E0,E1\mathcal E_0,\mathcal E_1E0​,E1​ from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines

∥E0−E0∘Pd,M∥⋄+∥E1−E1∘Pd,M∥⋄2.\frac{\|\mathcal E_0-\mathcal E_0\circ\mathcal P_{d,M}\|_\diamond+ \|\mathcal E_1-\mathcal E_1\circ\mathcal P_{d,M}\|_\diamond}{2}.2∥E0​−E0​∘Pd,M​∥⋄​+∥E1​−E1​∘Pd,M​∥⋄​​.

For a function FFF of these matrix dimensions, the notation used here means ∥F∥⋄=sup⁡∥X∥1≤1∥F^(X)∥1\|F\|_\diamond=\sup_{\|X\|_1\le1}\|\widehat F(X)\|_1∥F∥⋄​=sup∥X∥1​≤1​∥F(X)∥1​, where XXX is a matrix on Cd⊗Cd\mathbb C^d\otimes\mathbb C^dCd⊗Cd, F^(X)(a,b),(a′,b′)=F((X(a,i),(a′,j))i,j)b,b′\widehat F(X)_{(a,b),(a',b')}=F((X_{(a,i),(a',j)})_{i,j})_{b,b'}F(X)(a,b),(a′,b′)​=F((X(a,i),(a′,j)​)i,j​)b,b′​, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​. To define Pd,M\mathcal P_{d,M}Pd,M​, for i<Mi<Mi<M and u,v∈[d]Mu,v\in[d]^Mu,v∈[d]M, set Si((a,u),(b,v))=d−1S_i((a,u),(b,v))=d^{-1}Si​((a,u),(b,v))=d−1 if a=uia=u_ia=ui​, b=vib=v_ib=vi​, and uj=vju_j=v_juj​=vj​ for all j≠ij\ne ij=i, and set it to 000 otherwise. Let S=∑iSiS=\sum_iS_iS=∑i​Si​, let R=f(S)R=f(S)R=f(S) by continuous functional calculus for f(x)=(x)−1f(x)=(\sqrt x)^{-1}f(x)=(x​)−1, and let Qi=RSiR+M−1(I−RSR)Q_i=RS_iR+M^{-1}(I-RSR)Qi​=RSi​R+M−1(I−RSR). The simulation function is

Pd,M(X)b,c=d−M∑i<M∑a,a′<d∑u,v∈[d]Mui=b, vi=cuj=vj (j≠i)Qi((a′,v),(a,u))Xa,a′.\mathcal P_{d,M}(X)_{b,c} =d^{-M}\sum_{i<M}\sum_{a,a'<d} \sum_{\substack{u,v\in[d]^M\\u_i=b,\ v_i=c\\u_j=v_j\ (j\ne i)}} Q_i((a',v),(a,u))X_{a,a'}.Pd,M​(X)b,c​=d−Mi<M∑​a,a′<d∑​u,v∈[d]Mui​=b, vi​=cuj​=vj​ (j=i)​∑​Qi​((a′,v),(a,u))Xa,a′​.

Zero dimensions and M=0M=0M=0 are included, empty products are 111, and all inverses at zero are 000; in particular Pd,0=0\mathcal P_{d,0}=0Pd,0​=0. The functions Ei\mathcal E_iEi​ need not be linear or channels. The suprema are total real suprema, taking value 000 when their defining sets are unbounded above.

QAlgorithms.Papers.Independent.Intakethird100.P49.opticalAntiBell

This definition specifies a vector in the complex Euclidean space indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}: its coordinate at (i,j)(i,j)(i,j) is 1/21/\sqrt21/2​ when i≠ji\ne ji=j, and zero when i=ji=ji=j. Equivalently, the vector is

∣0,1⟩+∣1,0⟩2,\frac{|0,1\rangle+|1,0\rangle}{\sqrt2},2​∣0,1⟩+∣1,0⟩​,

where each displayed basis vector has coordinate one at its named index and zero elsewhere.

QAlgorithms.Papers.Independent.Intakethird100.P49.opticalChannel

For arbitrary real numbers η,δ\eta,\deltaη,δ and a Boolean value sss, this definition gives a map from complex 2×22\times22×2 matrices to complex 3×33\times33×3 matrices. Put

a=(1+δ)η2,b={−(1−δ)η2,s=true,(1−δ)η2,s=false,a=\sqrt{\frac{(1+\delta)\eta}{2}}, \qquad b=\begin{cases} -\sqrt{\frac{(1-\delta)\eta}{2}},&s=\mathrm{true},\\ \sqrt{\frac{(1-\delta)\eta}{2}},&s=\mathrm{false}, \end{cases}a=2(1+δ)η​​,b=⎩⎨⎧​−2(1−δ)η​​,2(1−δ)η​​,​s=true,s=false,​

and define

Oη,δ,s(X)=K0XK0†+K1XK1†,K0=(100a0b),K1=(01−η0000).\mathcal O_{\eta,\delta,s}(X) =K_0XK_0^\dagger+K_1XK_1^\dagger, \qquad K_0=\begin{pmatrix}1&0\\0&a\\0&b\end{pmatrix}, \quad K_1=\begin{pmatrix}0&\sqrt{1-\eta}\\0&0\\0&0\end{pmatrix}.Oη,δ,s​(X)=K0​XK0†​+K1​XK1†​,K0​=​100​0ab​​,K1​=​000​1−η​00​​.

There are no restrictions on η\etaη or δ\deltaδ, and the definition does not assert Kraus completeness or trace preservation; each real square root is defined to be zero when its argument is negative.

QAlgorithms.Papers.Independent.Intakethird100.P49.opticalChoi

For arbitrary real numbers η,δ\eta,\deltaη,δ and a Boolean sss, this defines a complex matrix on {0,1}×{0,1,2}\{0,1\}\times\{0,1,2\}{0,1}×{0,1,2} by

Cη,δ,s=(id⁡⊗Φη,δ,s)(∣χ⟩⟨χ∣),∣χ⟩=∣0,1⟩+∣1,0⟩2,C_{\eta,\delta,s}=(\operatorname{id}\otimes\Phi_{\eta,\delta,s})(|\chi\rangle\langle\chi|), \qquad |\chi\rangle=\frac{|0,1\rangle+|1,0\rangle}{\sqrt2},Cη,δ,s​=(id⊗Φη,δ,s​)(∣χ⟩⟨χ∣),∣χ⟩=2​∣0,1⟩+∣1,0⟩​,

where Φ(X)=K0XK0†+K1XK1†\Phi(X)=K_0XK_0^\dagger+K_1XK_1^\daggerΦ(X)=K0​XK0†​+K1​XK1†​, with

K0=(100(1+δ)η/20εs(1−δ)η/2),K1=(01−η0000),εs={−1s=true,1s=false.K_0=\begin{pmatrix} 1&0\\ 0&\sqrt{(1+\delta)\eta/2}\\ 0&\varepsilon_s\sqrt{(1-\delta)\eta/2} \end{pmatrix}, \qquad K_1=\begin{pmatrix}0&\sqrt{1-\eta}\\0&0\\0&0\end{pmatrix}, \quad \varepsilon_s=\begin{cases}-1&s=\mathrm{true},\\1&s=\mathrm{false}.\end{cases}K0​=​100​0(1+δ)η/2​εs​(1−δ)η/2​​​,K1​=​000​1−η​00​​,εs​={−11​s=true,s=false.​

Here ∣v⟩⟨v∣|v\rangle\langle v|∣v⟩⟨v∣ has entries vivj‾v_i\overline{v_j}vi​vj​​, and the identity extension applies Φ\PhiΦ separately to each block indexed by the first register. No range assumptions on η,δ\eta,\deltaη,δ are imposed; real square roots of negative numbers are zero.

QAlgorithms.Papers.Independent.Intakethird100.P49.opticalPsi

For arbitrary η,δ∈R\eta,\delta\in\mathbb Rη,δ∈R and Boolean sss, this defines the vector in C{0,1}×{0,1,2}\mathbb C^{\{0,1\}\times\{0,1,2\}}C{0,1}×{0,1,2}

ψη,δ,s=∣1,0⟩+(1+δ)η/2 ∣0,1⟩+εs(1−δ)η/2 ∣0,2⟩1+η,εs={−1s=true,1s=false.\psi_{\eta,\delta,s} =\frac{|1,0\rangle+\sqrt{(1+\delta)\eta/2}\,|0,1\rangle +\varepsilon_s\sqrt{(1-\delta)\eta/2}\,|0,2\rangle} {\sqrt{1+\eta}}, \qquad \varepsilon_s=\begin{cases}-1&s=\mathrm{true},\\1&s=\mathrm{false}.\end{cases}ψη,δ,s​=1+η​∣1,0⟩+(1+δ)η/2​∣0,1⟩+εs​(1−δ)η/2​∣0,2⟩​,εs​={−11​s=true,s=false.​

All other coordinates are zero. There are no parameter restrictions or normalization hypotheses. Real square roots of negative numbers and division by zero are interpreted as zero; in particular, the vector is zero when η≤−1\eta\le-1η≤−1.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtChannel

For natural numbers d,Md,Md,M, let D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}. On D×DMD\times D^MD×DM, define Ai[(r,x),(s,y)]=1/dA_i[(r,x),(s,y)]=1/dAi​[(r,x),(s,y)]=1/d if r=xir=x_ir=xi​, s=yis=y_is=yi​, and xj=yjx_j=y_jxj​=yj​ for all j≠ij\ne ij=i, and zero otherwise; put S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) using continuous functional calculus with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, and Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR). This declaration defines a function Td,M\mathcal T_{d,M}Td,M​ from complex D×DD\times DD×D matrices to such matrices, whose entries can be written

Td,M(X)a,b=d−M∑i<M, r,s∈D, x,y∈DMxi=a, yi=b, xj=yj ∀j≠i(Hi)(s,y),(r,x)Xr,s.\mathcal T_{d,M}(X)_{a,b} = d^{-M} \sum_{\substack{i<M,\ r,s\in D,\ x,y\in D^M\\ x_i=a,\ y_i=b,\ x_j=y_j\ \forall j\ne i}} (H_i)_{(s,y),(r,x)}X_{r,s}.Td,M​(X)a,b​=d−Mi<M, r,s∈D, x,y∈DMxi​=a, yi​=b, xj​=yj​ ∀j=i​∑​(Hi​)(s,y),(r,x)​Xr,s​.

Here d−Md^{-M}d−M means (d−1)M(d^{-1})^M(d−1)M, and all reciprocals are total, taking value zero at zero. There is no restriction on XXX, and the definition includes d=0d=0d=0 and M=0M=0M=0. For M=0M=0M=0, this function is the zero map; for d=0d=0d=0, its input and output matrices have empty index sets.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtEntanglementFidelity

For natural numbers d,Md,Md,M, with the explicit assumption d≠0d\ne0d=0, put D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}. On D×DMD\times D^MD×DM, let Ai[(r,x),(s,y)]=1/dA_i[(r,x),(s,y)]=1/dAi​[(r,x),(s,y)]=1/d when r=xir=x_ir=xi​, s=yis=y_is=yi​, and xj=yjx_j=y_jxj​=yj​ for all j≠ij\ne ij=i, and zero otherwise; set S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) by continuous functional calculus for f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, and Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR). The declared real number, obtained by evaluating the normalized Choi matrix against the vector whose (r,s)(r,s)(r,s)-coordinate is d−1/2d^{-1/2}d−1/2 if r=sr=sr=s and zero otherwise, is explicitly

1dM+2Re⁡∑r,s∈D, i<M, x,y∈DMxi=r, yi=s, xj=yj ∀j≠i(Hi)(s,y),(r,x).\frac{1}{d^{M+2}} \operatorname{Re} \sum_{\substack{r,s\in D,\ i<M,\ x,y\in D^M\\ x_i=r,\ y_i=s,\ x_j=y_j\ \forall j\ne i}} (H_i)_{(s,y),(r,x)}.dM+21​Rer,s∈D, i<M, x,y∈DMxi​=r, yi​=s, xj​=yj​ ∀j=i​∑​(Hi​)(s,y),(r,x)​.

The index MMM may be zero, in which case the sum and the declared number are zero. In the functional calculus, the reciprocal of t\sqrt tt​ is zero for t≤0t\le0t≤0.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtError

For natural numbers d,Md,Md,M, put D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}. Define Ai[(r,x),(s,y)]A_i[(r,x),(s,y)]Ai​[(r,x),(s,y)], for r,s∈Dr,s\in Dr,s∈D and x,y∈DMx,y\in D^Mx,y∈DM, to be 1/d1/d1/d when r=xir=x_ir=xi​, s=yis=y_is=yi​, and xj=yjx_j=y_jxj​=yj​ for every j≠ij\ne ij=i, and zero otherwise. Set S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) by continuous functional calculus with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR), and

T(X)a,b=d−M ⁣∑i<M, r,s∈D, x,y∈DMxi=a, yi=b, xj=yj ∀j≠i(Hi)(s,y),(r,x)Xr,s.\mathcal T(X)_{a,b} = d^{-M}\! \sum_{\substack{i<M,\ r,s\in D,\ x,y\in D^M\\ x_i=a,\ y_i=b,\ x_j=y_j\ \forall j\ne i}} (H_i)_{(s,y),(r,x)}X_{r,s}.T(X)a,b​=d−Mi<M, r,s∈D, x,y∈DMxi​=a, yi​=b, xj​=yj​ ∀j=i​∑​(Hi​)(s,y),(r,x)​Xr,s​.

For a complex matrix ZZZ indexed by D×DD\times DD×D, let Zr,sZ^{r,s}Zr,s be the matrix with entries Zu,vr,s=Z(r,u),(s,v)Z^{r,s}_{u,v}=Z_{(r,u),(s,v)}Zu,vr,s​=Z(r,u),(s,v)​, and define Δ^(Z)(r,a),(s,b)=Z(r,a),(s,b)−T(Zr,s)a,b\widehat\Delta(Z)_{(r,a),(s,b)}=Z_{(r,a),(s,b)}-\mathcal T(Z^{r,s})_{a,b}Δ(Z)(r,a),(s,b)​=Z(r,a),(s,b)​−T(Zr,s)a,b​. The declared real number is

sup⁡{∥Δ^(Z)∥1:∥Z∥1≤1},∥Y∥1=Re⁡Tr⁡Y†Y,\sup\left\{\|\widehat\Delta(Z)\|_1:\|Z\|_1\le1\right\}, \qquad \|Y\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{Y^\dagger Y},sup{∥Δ(Z)∥1​:∥Z∥1​≤1},∥Y∥1​=ReTrY†Y​,

with the square root interpreted by continuous functional calculus. The supremum includes arbitrary complex matrices ZZZ, without positivity or Hermiticity requirements, and has no factor 1/21/21/2. Zero sizes are included; at M=0M=0M=0, T\mathcal TT is zero. All reciprocals use the convention 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtNumber

For natural numbers d,Md,Md,M, this defines the number to be 000 if d<2d<2d<2. If d≥2d\ge2d≥2, put D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, and on D×DMD\times D^MD×DM define Ai[(r,x),(s,y)]=1/dA_i[(r,x),(s,y)]=1/dAi​[(r,x),(s,y)]=1/d when r=xir=x_ir=xi​, s=yis=y_is=yi​, and xj=yjx_j=y_jxj​=yj​ for all j≠ij\ne ij=i, and zero otherwise; set S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) using continuous functional calculus with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, and Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR). In this case the number is

1−Re⁡[d−M∑i<M, x,y∈DMxi=0, yi=1, xj=yj ∀j≠i(Hi)(1,y),(0,x)].1-\operatorname{Re}\left[ d^{-M} \sum_{\substack{i<M,\ x,y\in D^M\\ x_i=0,\ y_i=1,\ x_j=y_j\ \forall j\ne i}} (H_i)_{(1,y),(0,x)} \right].1−Re​d−Mi<M, x,y∈DMxi​=0, yi​=1, xj​=yj​ ∀j=i​∑​(Hi​)(1,y),(0,x)​​.

Equivalently, the subtracted quantity is the real part of the (0,1)(0,1)(0,1) entry obtained by applying the port map to the matrix having a single 111 in entry (0,1)(0,1)(0,1). Thus M=0M=0M=0 gives 111 when d≥2d\ge2d≥2. Reciprocals are total, with 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtPOVM

For natural numbers d,Md,Md,M and i∈{0,…,M−1}i\in\{0,\ldots,M-1\}i∈{0,…,M−1}, let H={0,…,d−1}×{0,…,d−1}M\mathcal H=\{0,\ldots,d-1\}\times\{0,\ldots,d-1\}^{M}H={0,…,d−1}×{0,…,d−1}M, and define matrices on H\mathcal HH by (Aj)(a,x),(b,y)=1/d(A_j)_{(a,x),(b,y)}=1/d(Aj​)(a,x),(b,y)​=1/d when a=xja=x_ja=xj​, b=yjb=y_jb=yj​, and xℓ=yℓx_\ell=y_\ellxℓ​=yℓ​ for every ℓ≠j\ell\ne jℓ=j, and zero otherwise. Set

S=∑j=0M−1Aj,R=f(S),f(t)=(t)−1,S=\sum_{j=0}^{M-1}A_j,\qquad R=f(S),\quad f(t)=(\sqrt t)^{-1},S=j=0∑M−1​Aj​,R=f(S),f(t)=(t​)−1,

where f(S)f(S)f(S) uses continuous functional calculus. This declaration defines the matrix

Hi=RAiR+1M(I−RSR).H_i=RA_iR+\frac1M(I-RSR).Hi​=RAi​R+M1​(I−RSR).

The scalar function uses the real square root and the total reciprocal, so f(t)=0f(t)=0f(t)=0 for t≤0t\le0t≤0. The index iii requires M>0M>0M>0; d=0d=0d=0 is allowed and gives an empty matrix. This definition itself imposes no additional condition asserting that the resulting family is a measurement.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtSelection

For natural numbers d,e,Md,e,Md,e,M, put D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, F={0,…,e−1}F=\{0,\ldots,e-1\}F={0,…,e−1}, and H=D×DM\mathcal H=D\times D^MH=D×DM. On H\mathcal HH, define Ai[(a,x),(b,y)]A_i[(a,x),(b,y)]Ai​[(a,x),(b,y)] to be 1/d1/d1/d if a=xia=x_ia=xi​, b=yib=y_ib=yi​, and xj=yjx_j=y_jxj​=yj​ for all j≠ij\ne ij=i, and zero otherwise; set S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) by continuous functional calculus for f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, and Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR). This declaration defines a function from complex matrices indexed by H×FM\mathcal H\times F^MH×FM to complex matrices indexed by {∗}×F\{\ast\}\times F{∗}×F: for any input matrix XXX,

S(X)(∗,a),(∗,a′)=∑i<M, p,q∈H, b,c∈FMbi=a, ci=a′, bj=cj ∀j≠i(Hi)q,p X(p,b),(q,c).\mathcal S(X)_{(\ast,a),(\ast,a')} = \sum_{\substack{i<M,\ p,q\in\mathcal H,\ b,c\in F^M\\ b_i=a,\ c_i=a',\ b_j=c_j\ \forall j\ne i}} (H_i)_{q,p}\,X_{(p,b),(q,c)}.S(X)(∗,a),(∗,a′)​=i<M, p,q∈H, b,c∈FMbi​=a, ci​=a′, bj​=cj​ ∀j=i​∑​(Hi​)q,p​X(p,b),(q,c)​.

In particular, the matrix entry of HiH_iHi​ occurs in the order q,pq,pq,p. No density, positivity, or normalization condition is required of XXX. All sizes may be zero; when M=0M=0M=0, the sum is empty and the function returns the zero matrix. Reciprocals, including those in fff, are total and take value zero at zero.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtSignal

For natural numbers d,Md,Md,M and an index i∈{0,…,M−1}i\in\{0,\ldots,M-1\}i∈{0,…,M−1}, this defines a complex square matrix AiA_iAi​ indexed by pairs (a,x)(a,x)(a,x), where a∈{0,…,d−1}a\in\{0,\ldots,d-1\}a∈{0,…,d−1} and x∈{0,…,d−1}Mx\in\{0,\ldots,d-1\}^{M}x∈{0,…,d−1}M, by

(Ai)(a,x),(b,y)={1/d,a=xi, b=yi, and xj=yj for every j≠i,0,otherwise.(A_i)_{(a,x),(b,y)} = \begin{cases} 1/d,&a=x_i,\ b=y_i,\ \text{and }x_j=y_j\text{ for every }j\ne i,\\ 0,&\text{otherwise}. \end{cases}(Ai​)(a,x),(b,y)​={1/d,0,​a=xi​, b=yi​, and xj​=yj​ for every j=i,otherwise.​

There is no positivity assumption on ddd or MMM. Supplying iii requires M>0M>0M>0; if d=0d=0d=0, the matrix has an empty index set. The division is complex division, with inverse zero defined to be zero.

QAlgorithms.Papers.Independent.Intakethird100.P49.pbtSimulationInput

For natural numbers d,ed,ed,e, with the explicit assumption d≠0d\ne0d=0, any function EEE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, any natural number MMM, and any complex d×dd\times dd×d matrix XXX, this defines a complex matrix indexed by (D×DM)×FM(D\times D^M)\times F^M(D×DM)×FM, where D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1} and F={0,…,e−1}F=\{0,\ldots,e-1\}F={0,…,e−1}, by

Y((a,x),y),((a′,x′),y′)=Xa,a′∏i=0M−1E(Bxi,xi′)yi,yi′,Y_{((a,x),y),((a',x'),y')} = X_{a,a'}\prod_{i=0}^{M-1}E(B^{x_i,x'_i})_{y_i,y'_i},Y((a,x),y),((a′,x′),y′)​=Xa,a′​i=0∏M−1​E(Bxi​,xi′​)yi​,yi′​​,

where Br,sB^{r,s}Br,s has entry 1/d1/d1/d in position (r,s)(r,s)(r,s) and zero elsewhere. Thus the product consists of entries of the normalized Choi matrix defined by applying EEE to blocks of the normalized maximally entangled projector. Neither EEE nor XXX is assumed to satisfy linearity, positivity, or normalization conditions. When M=0M=0M=0, both string registers are singletons and this matrix is XXX under the resulting reindexing; e=0e=0e=0 is allowed.

QAlgorithms.Papers.Independent.Intakethird100.P49.privateCapacityBound

For every positive natural number ddd, every natural number MMM, and any function E\mathcal EE on complex d×dd\times dd×d matrices, this defines

MRR(CE)+2d(d−1)Mlog⁡2d+(1+t)log⁡2(1+t)−tlog⁡2t,t=d(d−1)M.M R_{\mathbb R}(C_{\mathcal E}) +\frac{2d(d-1)}M\log_2d +(1+t)\log_2(1+t)-t\log_2t, \qquad t=\frac{d(d-1)}M.MRR​(CE​)+M2d(d−1)​log2​d+(1+t)log2​(1+t)−tlog2​t,t=Md(d−1)​.

Here d−1d-1d−1 is real subtraction, and the matrix CEC_{\mathcal E}CE​ on {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 is given by

(CE)(i,a),(j,b)=E(d−1∣i⟩⟨j∣)a,b.(C_{\mathcal E})_{(i,a),(j,b)} =\mathcal E(d^{-1}|i\rangle\langle j|)_{a,b}.(CE​)(i,a),(j,b)​=E(d−1∣i⟩⟨j∣)a,b​.

The value RR(X)R_{\mathbb R}(X)RR​(X) is the real conversion of the infimum over separable density matrices σ\sigmaσ of Dbits(X∥σ)D_{\mathrm{bits}}(X\|\sigma)Dbits​(X∥σ), with +∞+\infty+∞ converted to zero; separable density matrices are finite convex combinations of product density matrices. The divergence is infinite unless both arguments are density matrices and ker⁡σ⊆ker⁡X\ker\sigma\subseteq\ker Xkerσ⊆kerX, and otherwise equals max⁡{0,Re⁡tr⁡[(x↦xln⁡x)(X)−X(ln⁡)(σ)]}/ln⁡2\max\{0,\operatorname{Re}\operatorname{tr}[(x\mapsto x\ln x)(X)-X(\ln)(\sigma)]\}/\ln2max{0,Retr[(x↦xlnx)(X)−X(ln)(σ)]}/ln2, with continuous functional calculus. No channel assumption on E\mathcal EE is imposed. The case M=0M=0M=0 is allowed: total division by zero gives zero, so the entire expression is zero.

QAlgorithms.Papers.Independent.Intakethird100.P49.protocolInput

For natural numbers d,e,o,nd,e,o,nd,e,o,n, a protocol PPP, and an arbitrary function E\mathcal EE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines a sequence of matrices on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd, with r=P.memory>0r=P.\mathrm{memory}>0r=P.memory>0, by

ρ0=P.initial,ρk+1=P.betweenk ⁣(E^(ρk))(k∈N),\rho_0=P.\mathrm{initial},\qquad \rho_{k+1}=P.\mathrm{between}_k\!\left(\widehat{\mathcal E}(\rho_k)\right) \quad(k\in\mathbb N),ρ0​=P.initial,ρk+1​=P.betweenk​(E(ρk​))(k∈N),

where E^(X)(u,b),(v,c)=E((X(u,i),(v,j))i,j)b,c\widehat{\mathcal E}(X)_{(u,b),(v,c)}=\mathcal E((X_{(u,i),(v,j)})_{i,j})_{b,c}E(X)(u,b),(v,c)​=E((X(u,i),(v,j)​)i,j​)b,c​. The protocol supplies a positive semidefinite initial matrix of trace 111, all the intermediate channels, and terminal channels from the memory–input and memory–output spaces to an ooo-dimensional output space; the terminal channels are unused here. Each channel is a function with a finite representation ∑jKjXKj†\sum_jK_jXK_j^\dagger∑j​Kj​XKj†​ satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The function E\mathcal EE itself need not be a channel or linear. The sequence is defined for every natural kkk, without restricting kkk to the protocol parameter nnn.

QAlgorithms.Papers.Independent.Intakethird100.P49.qubitNumberFormula

For every natural number MMM, this defines the real number

M+23 2M−1+13∑k=0⌊(M\dotminus1)/2⌋sk(sk+1)2M−4(Mk)M+2−(M+2)2−(2sk+1)2(M+2)2−(2sk+1)2,sk=M−12−k.\frac{M+2}{3\,2^{M-1}} +\frac13\sum_{k=0}^{\lfloor(M\mathbin{\dotminus}1)/2\rfloor} \frac{s_k(s_k+1)}{2^{M-4}}\binom Mk \frac{M+2-\sqrt{(M+2)^2-(2s_k+1)^2}} {(M+2)^2-(2s_k+1)^2}, \qquad s_k=\frac{M-1}{2}-k.32M−1M+2​+31​k=0∑⌊(M\dotminus1)/2⌋​2M−4sk​(sk​+1)​(kM​)(M+2)2−(2sk​+1)2M+2−(M+2)2−(2sk​+1)2​​,sk​=2M−1​−k.

In the sum’s upper limit, M\dotminus1=max⁡(M−1,0)M\mathbin{\dotminus}1=\max(M-1,0)M\dotminus1=max(M−1,0) is natural-number subtraction and the division by 222 is natural-number division. In sks_ksk​, in the exponents M−1M-1M−1 and M−4M-4M−4, and elsewhere in the summand, MMM and kkk have first been converted to real numbers, so those subtractions are ordinary real subtraction and the powers of 222 are real powers. The definition includes M=0M=0M=0. Division by zero has value 000, and the real square root of a negative argument has value 000.

QAlgorithms.Papers.Independent.Intakethird100.P49.realREE

For any finite nonempty index types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ on A×BA\times BA×B, this defines a real number by first taking

R(ρ)=inf⁡σ separable densityDbits(ρ∥σ)in [0,∞],R(\rho)=\inf_{\sigma\ \mathrm{separable\ density}}D_{\mathrm{bits}}(\rho\|\sigma) \quad\text{in }[0,\infty],R(ρ)=σ separable densityinf​Dbits​(ρ∥σ)in [0,∞],

then converting R(ρ)R(\rho)R(ρ) to a real number, with +∞+\infty+∞ converted to 000. A separable density matrix here is a finite sum σ=∑jwj(Aj⊗Bj)\sigma=\sum_jw_j(A_j\otimes B_j)σ=∑j​wj​(Aj​⊗Bj​), where wj≥0w_j\ge0wj​≥0, ∑jwj=1\sum_jw_j=1∑j​wj​=1, and every Aj,BjA_j,B_jAj​,Bj​ is positive semidefinite with trace 111. The quantity DbitsD_{\mathrm{bits}}Dbits​ is +∞+\infty+∞ unless both arguments are density matrices and ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ; otherwise it is

max⁡ ⁣{0,Re⁡tr⁡[(x↦xln⁡x)(ρ)−ρ (ln⁡)(σ)]}ln⁡2,\frac{\max\!\left\{0,\operatorname{Re}\operatorname{tr} \left[(x\mapsto x\ln x)(\rho)-\rho\,(\ln)(\sigma)\right]\right\}}{\ln2},ln2max{0,Retr[(x↦xlnx)(ρ)−ρ(ln)(σ)]}​,

using continuous functional calculus and the total real logarithm, for which ln⁡0=0\ln0=0ln0=0. There is no density hypothesis on the input ρ\rhoρ; in particular, a non-density input gives the real value 000.

QAlgorithms.Papers.Independent.Intakethird100.P49.simulated

For natural numbers d,ed,ed,e, any function EEE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, and any natural number MMM, this defines the function X↦E(T(X))X\mapsto E(\mathcal T(X))X↦E(T(X)). Here, writing D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, define Ai[(r,x),(s,y)]=1/dA_i[(r,x),(s,y)]=1/dAi​[(r,x),(s,y)]=1/d on D×DMD\times D^MD×DM when r=xir=x_ir=xi​, s=yis=y_is=yi​, and xj=yjx_j=y_jxj​=yj​ for all j≠ij\ne ij=i, and zero otherwise; put S=∑iAiS=\sum_iA_iS=∑i​Ai​, R=f(S)R=f(S)R=f(S) by continuous functional calculus for f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, and Hi=RAiR+M−1(I−RSR)H_i=RA_iR+M^{-1}(I-RSR)Hi​=RAi​R+M−1(I−RSR). Then

T(X)a,b=d−M∑i<M, r,s∈D, x,y∈DMxi=a, yi=b, xj=yj ∀j≠i(Hi)(s,y),(r,x)Xr,s.\mathcal T(X)_{a,b} = d^{-M} \sum_{\substack{i<M,\ r,s\in D,\ x,y\in D^M\\ x_i=a,\ y_i=b,\ x_j=y_j\ \forall j\ne i}} (H_i)_{(s,y),(r,x)}X_{r,s}.T(X)a,b​=d−Mi<M, r,s∈D, x,y∈DMxi​=a, yi​=b, xj​=yj​ ∀j=i​∑​(Hi​)(s,y),(r,x)​Xr,s​.

No linearity or channel assumption is imposed on EEE. In particular, when M=0M=0M=0, the resulting function is the constant function X↦E(0)X\mapsto E(0)X↦E(0), which is not required to be zero. The sizes d,ed,ed,e may also be zero, and all reciprocals use 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Intakethird100.P49.symmetricAdaptiveError

For natural numbers d,e,nd,e,nd,e,n and arbitrary functions E0,E1\mathcal E_0,\mathcal E_1E0​,E1​ from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines a real number equal to 1/21/21/2 when n=0n=0n=0. For n>0n>0n>0, it is

inf⁡P1−aP(E0)+aP(E1)2.\inf_P\frac{1-a_P(\mathcal E_0)+a_P(\mathcal E_1)}2.Pinf​21−aP​(E0​)+aP​(E1​)​.

Here PPP ranges over the following data: a positive memory dimension rrr; a positive semidefinite matrix ρ0\rho_0ρ0​ on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd with complex trace 111; a channel Bk\mathcal B_kBk​ from matrices on Cr⊗Ce\mathbb C^r\otimes\mathbb C^eCr⊗Ce to matrices on Cr⊗Cd\mathbb C^r\otimes\mathbb C^dCr⊗Cd for every natural number kkk; and an effect TTT on Cr⊗Ce\mathbb C^r\otimes\mathbb C^eCr⊗Ce, meaning T≥0T\ge0T≥0 and I−T≥0I-T\ge0I−T≥0. A channel here has a finite Kraus representation X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. For any function E\mathcal EE, its extension to the memory register is defined blockwise by E^(X)(u,b),(v,c)=E((X(u,i),(v,j))i,j)b,c\widehat{\mathcal E}(X)_{(u,b),(v,c)}=\mathcal E((X_{(u,i),(v,j)})_{i,j})_{b,c}E(X)(u,b),(v,c)​=E((X(u,i),(v,j)​)i,j​)b,c​. Set ρk+1E=Bk(E^(ρkE))\rho_{k+1}^{\mathcal E}=\mathcal B_k(\widehat{\mathcal E}(\rho_k^{\mathcal E}))ρk+1E​=Bk​(E(ρkE​)), starting at ρ0\rho_0ρ0​; then aP(E)=Re⁡Tr⁡(TE^(ρn−1E))a_P(\mathcal E)=\operatorname{Re}\operatorname{Tr}(T\widehat{\mathcal E}(\rho_{n-1}^{\mathcal E}))aP​(E)=ReTr(TE(ρn−1E​)). Neither E0\mathcal E_0E0​ nor E1\mathcal E_1E1​ is assumed to be a channel or linear, so these scalars are not required to be probabilities. Zero dimensions are allowed; for example, d=0d=0d=0 makes the required initial density matrix impossible. The infimum is the total real infimum, which is 000 for an empty set or a set unbounded below.

QAlgorithms.Papers.Independent.Intakethird100.P49.testOutput

For natural numbers d,e,nd,e,nd,e,n, an adaptive test PPP, and an arbitrary function E\mathcal EE from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines a matrix on Cr⊗Ce\mathbb C^r\otimes\mathbb C^eCr⊗Ce, where r=P.memory>0r=P.\mathrm{memory}>0r=P.memory>0, by

testOutput⁡(P,E)=E^(ρn−1E),ρ0E=P.initial,ρk+1E=P.betweenk ⁣(E^(ρkE)).\operatorname{testOutput}(P,\mathcal E)=\widehat{\mathcal E}(\rho_{n-1}^{\mathcal E}),\qquad \rho_0^{\mathcal E}=P.\mathrm{initial},\qquad \rho_{k+1}^{\mathcal E}=P.\mathrm{between}_k\!\left(\widehat{\mathcal E}(\rho_k^{\mathcal E})\right).testOutput(P,E)=E(ρn−1E​),ρ0E​=P.initial,ρk+1E​=P.betweenk​(E(ρkE​)).

The blockwise extension is E^(X)(u,b),(v,c)=E((X(u,i),(v,j))i,j)b,c\widehat{\mathcal E}(X)_{(u,b),(v,c)}=\mathcal E((X_{(u,i),(v,j)})_{i,j})_{b,c}E(X)(u,b),(v,c)​=E((X(u,i),(v,j)​)i,j​)b,c​. The test supplies an initial positive semidefinite matrix of trace 111, channels P.betweenkP.\mathrm{between}_kP.betweenk​ for every k∈Nk\in\mathbb Nk∈N, and an effect T≥0T\ge0T≥0 with I−T≥0I-T\ge0I−T≥0; the effect is not used in this definition. Each supplied channel has a finite Kraus representation X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. No channel assumption is imposed on E\mathcal EE. The subtraction n−1n-1n−1 is natural-number subtraction, so when n=0n=0n=0 this definition still applies E^\widehat{\mathcal E}E once to the initial matrix.

QAlgorithms.Papers.Independent.Intakethird100.P49.universalBound

For natural numbers d,e,n,Md,e,n,Md,e,n,M with d≠0d\ne0d=0, and arbitrary functions E0,E1\mathcal E_0,\mathcal E_1E0​,E1​ from complex d×dd\times dd×d matrices to complex e×ee\times ee×e matrices, this defines

1−nΔd,M−12∥C0[nM]−C1[nM]∥12.\frac{1-n\Delta_{d,M}-\tfrac12\left\|C_0^{[nM]}-C_1^{[nM]}\right\|_1}{2}.21−nΔd,M​−21​​C0[nM]​−C1[nM]​​1​​.

Here ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, CiC_iCi​ is the matrix with entries Ci((a,b),(a′,b′))=Ei(d−1∣a⟩⟨a′∣)b,b′C_i((a,b),(a',b'))=\mathcal E_i(d^{-1}|a\rangle\langle a'|)_{b,b'}Ci​((a,b),(a′,b′))=Ei​(d−1∣a⟩⟨a′∣)b,b′​, and C[r](x,y)=∏j=0r−1C(xj,yj)C^{[r]}(x,y)=\prod_{j=0}^{r-1}C(x_j,y_j)C[r](x,y)=∏j=0r−1​C(xj​,yj​). The scalar Δd,M\Delta_{d,M}Δd,M​ is defined as ∥id−Pd,M∥⋄\|\mathrm{id}-\mathcal P_{d,M}\|_\diamond∥id−Pd,M​∥⋄​, where for any function FFF on ddd-dimensional matrices,

∥F∥⋄=sup⁡∥X∥1≤1∥F^(X)∥1,F^(X)(a,b),(a′,b′)=F((X(a,i),(a′,j))i,j)b,b′.\|F\|_\diamond=\sup_{\|X\|_1\le1}\|\widehat F(X)\|_1,\qquad \widehat F(X)_{(a,b),(a',b')}= F((X_{(a,i),(a',j)})_{i,j})_{b,b'}.∥F∥⋄​=∥X∥1​≤1sup​∥F(X)∥1​,F(X)(a,b),(a′,b′)​=F((X(a,i),(a′,j)​)i,j​)b,b′​.

The function Pd,M\mathcal P_{d,M}Pd,M​ is specified by the following finite matrices and sums. Write [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, let u,v∈[d]Mu,v\in[d]^Mu,v∈[d]M, and, for i<Mi<Mi<M, set

Si((a,u),(b,v))={d−1,a=ui, b=vi, and uj=vj for every j≠i,0,otherwise.S_i((a,u),(b,v))= \begin{cases} d^{-1},&a=u_i,\ b=v_i,\ \text{and }u_j=v_j\text{ for every }j\ne i,\\ 0,&\text{otherwise}. \end{cases}Si​((a,u),(b,v))={d−1,0,​a=ui​, b=vi​, and uj​=vj​ for every j=i,otherwise.​

Set S=∑i<MSiS=\sum_{i<M}S_iS=∑i<M​Si​, R=f(S)R=f(S)R=f(S) by continuous functional calculus with f(x)=(x)−1f(x)=(\sqrt x)^{-1}f(x)=(x​)−1, and Qi=RSiR+M−1(I−RSR)Q_i=RS_iR+M^{-1}(I-RSR)Qi​=RSi​R+M−1(I−RSR). Then

Pd,M(X)b,c=d−M∑i<M∑a,a′<d∑u,v∈[d]Mui=b, vi=cuj=vj (j≠i)Qi((a′,v),(a,u))Xa,a′.\mathcal P_{d,M}(X)_{b,c} =d^{-M}\sum_{i<M}\sum_{a,a'<d} \sum_{\substack{u,v\in[d]^M\\u_i=b,\ v_i=c\\u_j=v_j\ (j\ne i)}} Q_i((a',v),(a,u))X_{a,a'}.Pd,M​(X)b,c​=d−Mi<M∑​a,a′<d∑​u,v∈[d]Mui​=b, vi​=cuj​=vj​ (j=i)​∑​Qi​((a′,v),(a,u))Xa,a′​.

All inverses are total, with 0−1=00^{-1}=00−1=0, including in the functional calculus. No channel assumptions are imposed on Ei\mathcal E_iEi​, no positivity assumption is imposed on eee, and n,Mn,Mn,M may be zero. Empty products equal 111, the M=0M=0M=0 sum gives Pd,0=0\mathcal P_{d,0}=0Pd,0​=0, and the defined bound at n=0n=0n=0 is 1/21/21/2. This declaration defines a scalar; it asserts no inequality.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me