Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for Entanglement manipulation and distillability beyond LOCC

Definition
QAlgorithms_Papers_Independent_Intakethird100_P19

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

prove2quantum

The objects the formalized statements of Entanglement manipulation and distillability beyond LOCC (arXiv:1711.03835) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • UnitBipartiteKet: PDF p.4: a normalized pure ket. Results require positive local dimensions.
  • UnitBipartiteKet.rho: PDF p.4: the pure density represented by a unit ket.
  • SeparableState: PDF p.4: normalized states in the full separable positive cone.
  • squaredSchmidtCoefficient: PDF p.4: decreasing squared Schmidt coefficients, with zero padding on Alice. The reduced density is always Hermitian, so the frozen helper's non-Hermitian fallback is never used.
  • schmidtAt: PDF p.4: coefficients outside the local dimension are zero.
  • finiteSchmidtRank: PDF p.4: Schmidt rank counts strictly positive squared coefficients.
  • traceBilinearDual: PDF p.5: trace-bilinear dual, computed on every matrix unit.
  • sourceOutputChoi: PDF p.5: unnormalized Choi operator, output factor first.
  • partyGroupedChoi: PDF p.5: regroup Choi factors across Alice-out Alice-in : Bob-out Bob-in.
  • NE: PDF p.6, Definition 2.1: preserve the entire cone, without ancillary closure.
  • DNE: PDF p.6, Definition 2.2: the dual need not be trace preserving.
  • PPTPositive: PDF p.4: the PPT positive cone includes subnormalized and zero operators.
  • PPTPreserving: PDF p.6, Definition 2.1: PPT preservation, distinct from PPT Choi.
  • SEP: PDF p.5: separable CP map, without a TP assumption.
  • ChoiPPT: PDF pp.5-6: PPT of the Choi operator across grouped parties.
  • partyAmplification: PDF p.6: identity amplification preserves off-diagonal ancilla blocks. The enlarged cut is A E : B F.
  • KNE: PDF p.6, Definition 2.3: k-dimensional ancilla at each party.
  • KPPT: PDF p.6, Definition 2.4: preserve the amplified PPT cone.
  • CompleteNE: PDF p.6: complete non-entangling, independent of Choi separability.
  • CompletePPT: PDF p.6: complete PPT preservation, independent of PPT Choi.
  • tensorMaps: PDF pp.15-16: two maps on two copies, regrouped across Alice:Bob.
  • noiseRobustness: PDF p.8, Eq.(3): fixed separable-noise robustness; an empty set gives infinity.
  • standardStateRobustness: PDF p.8, Eqs.(2)-(3): standard robustness, using separable noise. For normalized finite states the feasible set is nonempty and bounded below. This definition is not generalized robustness.
  • RenyiOrder: PDF p.9: extended order; its inversion sends zero to infinity.
  • schmidtRenyi: PDF p.9: all four entropy branches, in bits and using squared coefficients.
  • petzStateDivergence: PDF p.10: Petz divergence in bits on states; support violations give infinity.
  • relativeRenyi: PDF p.10: infimum over every separable density, without a full-rank restriction.
  • Witness: PDF pp.6-7: Hermitian and nonnegative on the separable cone. Zero and positive semidefinite witnesses are permitted.
  • frobenius: PDF p.16: Frobenius norm, not operator norm.
  • binaryMeasurePrepare: PDF p.5, Eq.(1): measure-and-prepare on all operators.
  • witnessMap: PDF pp.16-17, Eq.(21): the constructed map, including the factor 2I.
  • Undetected: PDF p.18, Definition 2.5: inequalities on the regrouped unnormalized Choi.
  • swapOperator: PDF p.4: the swap (flip) operator.
  • betaWernerState: PDF p.21, Eq.(29): the source Werner parameterization.
  • antisymmetricDensity: PDF p.14: the specific input for the unbounded negativity ratio.
  • negativityMap: PDF p.14, Eq.(15): the specific PPT-preserving map in Theorem 10.
  • Coisometry: PDF p.21: rectangular coisometry, not a square idempotent.
  • localCoisometryCompression: PDF p.22: unnormalized compression, which may be zero.
  • compressChoi: PDF p.21, Eq.(28): Choi compression, regrouped by party.
  • rankThreeKet: PDF p.23: canonical rank-three detector in the first three coordinates.
  • rankThreeMap: PDF p.23: Eq.(21) with the rank-three partially transposed projector.
  • powerDividedDifference: PDF p.28, Eq.(46): divided difference with the diagonal derivative branch.
  • partyCopies: PDF p.15: n copies encoded by fixed local tuple enumerations. The cut is A^n:B^n; the empty tensor product at n=0 is 1.
  • LOCCDistillable: PDF p.15: deterministic LOCC distillation in trace norm. Finite approximants also describe distillation using the closure of LOCC: the error tends to zero.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
import Definitions.Def_QAlgorithms_Defs_EntanglementNegativity
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Defs_ExtendedQuantumEntropy
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P69
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P19

/-!
Statements from Chitambar, de Vicente, Girard and Gour, arXiv:1711.03835v2.
All citations use PDF pages. Exact accepted interfaces are imported; local
definitions specialize the finite product-basis model where accepted interfaces differ. No claim concerns the infinite-dimensional objectives of arXiv:2007.14270.
Lemma 8 is corrected as its proof requires. Theorem 16 and its tensor-rank
consequence are excluded for the counterexample recorded in HARD.md.
-/

noncomputable section

open QAlgorithms QAlgorithms.Entanglement Filter
open scoped Matrix ComplexOrder ComplexConjugate ENNReal

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Intakethird100.P19

-- Exact accepted interfaces; no local aliases or duplicate definitions.
open QAlgorithms.Papers.Independent.Information100.P21 (Op FiniteLOCC)
open QAlgorithms.Papers.Independent.Information100.P19 (Bip)
open QAlgorithms.Papers.Independent.Information100.P69 (CP)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower SupportIncluded)
open QAlgorithms.Papers.Independent.Dependency50.P19 (epr)

/-- PDF p.4: a normalized pure ket. Results require positive local dimensions. -/
structure UnitBipartiteKet (a b : ℕ) where
  ket : EuclideanSpace ℂ (Fin a × Fin b)
  normalized : ‖ket‖ = 1

/-- PDF p.4: the pure density represented by a unit ket. -/
def UnitBipartiteKet.rho {a b : ℕ} (psi : UnitBipartiteKet a b) : Bip a b := pureDensity psi.ket

/-- PDF p.4: normalized states in the full separable positive cone. -/
def SeparableState {A B : Type} [Fintype A] [Fintype B]
    (X : Op (A × B)) : Prop := IsDensityMatrix X ∧ IsSeparablePositive X

/-- PDF p.4: decreasing squared Schmidt coefficients, with zero padding on Alice.
The reduced density is always Hermitian, so the frozen helper's non-Hermitian
fallback is never used. -/
def squaredSchmidtCoefficient {a b : ℕ} (psi : EuclideanSpace ℂ (Fin a × Fin b)) (i : Fin a) : ℝ :=
  ascEigenvalues (traceRight (pureDensity psi))
    (Fin.cast (Fintype.card_fin a).symm i.rev)

/-- PDF p.4: coefficients outside the local dimension are zero. -/
def schmidtAt {a b : ℕ} (psi : EuclideanSpace ℂ (Fin a × Fin b)) (j : ℕ) : ℝ :=
  if h : j < a then squaredSchmidtCoefficient psi ⟨j, h⟩ else 0

/-- PDF p.4: Schmidt rank counts strictly positive squared coefficients. -/
def finiteSchmidtRank {a b : ℕ} (psi : EuclideanSpace ℂ (Fin a × Fin b)) : ℕ :=
  (Finset.univ.filter fun i => 0 < squaredSchmidtCoefficient psi i).card

/-- PDF p.5: trace-bilinear dual, computed on every matrix unit. -/
def traceBilinearDual {I J : Type} [Fintype I] [Fintype J] (L : Superop I J) : Superop J I :=
  fun Y i j => (L (Matrix.single j i 1) * Y).trace

/-- PDF p.5: unnormalized Choi operator, output factor first. -/
def sourceOutputChoi {I J : Type} [Fintype I] (L : Superop I J) : Op (J × I) :=
  (QAlgorithms.Papers.Independent.Information100.P69.choi L).submatrix Prod.swap Prod.swap

/-- PDF p.5: regroup Choi factors across Alice-out Alice-in : Bob-out Bob-in. -/
def partyGroupedChoi {A B C D : Type} [Fintype A] [Fintype B]
    (L : Superop (A × B) (C × D)) : Op ((C × A) × (D × B)) :=
  (sourceOutputChoi L).submatrix (fun x => ((x.1.1, x.2.1), (x.1.2, x.2.2)))
    (fun x => ((x.1.1, x.2.1), (x.1.2, x.2.2)))

/-- PDF p.6, Definition 2.1: preserve the entire cone, without ancillary closure. -/
def NE {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop :=
  CP L ∧ ∀ X, IsSeparablePositive X → IsSeparablePositive (L X)

/-- PDF p.6, Definition 2.2: the dual need not be trace preserving. -/
def DNE {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop := NE L ∧ NE (traceBilinearDual L)

/-- PDF p.4: the PPT positive cone includes subnormalized and zero operators. -/
def PPTPositive {A B : Type} [Fintype A] [Fintype B] (X : Op (A × B)) : Prop :=
  X.PosSemidef ∧ (partialTransposeFirst X).PosSemidef

/-- PDF p.6, Definition 2.1: PPT preservation, distinct from PPT Choi. -/
def PPTPreserving {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop :=
  CP L ∧ ∀ X, PPTPositive X → PPTPositive (L X)

/-- PDF p.5: separable CP map, without a TP assumption. -/
def SEP {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop := CP L ∧ IsSeparablePositive (partyGroupedChoi L)

/-- PDF pp.5-6: PPT of the Choi operator across grouped parties. -/
def ChoiPPT {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop := CP L ∧ PPTPositive (partyGroupedChoi L)

/-- PDF p.6: identity amplification preserves off-diagonal ancilla blocks.
The enlarged cut is A E : B F. -/
def partyAmplification {A B C D E F : Type} (L : Superop (A × B) (C × D)) :
    Superop ((A × E) × (B × F)) ((C × E) × (D × F)) :=
  fun X p q => L (fun i j => X ((i.1, p.1.2), (i.2, p.2.2))
    ((j.1, q.1.2), (j.2, q.2.2))) (p.1.1, p.2.1) (q.1.1, q.2.1)

/-- PDF p.6, Definition 2.3: k-dimensional ancilla at each party. -/
def KNE {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (k : ℕ) (L : Superop (A × B) (C × D)) : Prop :=
  0 < k ∧ CP L ∧ NE (partyAmplification (E := Fin k) (F := Fin k) L)

/-- PDF p.6, Definition 2.4: preserve the amplified PPT cone. -/
def KPPT {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (k : ℕ) (L : Superop (A × B) (C × D)) : Prop :=
  0 < k ∧ CP L ∧ PPTPreserving (partyAmplification (E := Fin k) (F := Fin k) L)

/-- PDF p.6: complete non-entangling, independent of Choi separability. -/
def CompleteNE {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop := ∀ k : ℕ, 0 < k → KNE k L

/-- PDF p.6: complete PPT preservation, independent of PPT Choi. -/
def CompletePPT {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop := ∀ k : ℕ, 0 < k → KPPT k L

/-- PDF pp.15-16: two maps on two copies, regrouped across Alice:Bob. -/
def tensorMaps {A B C D E F G H : Type}
    [Fintype A] [Fintype B] [Fintype E] [Fintype F]
    (L : Superop (A × B) (C × D)) (M : Superop (E × F) (G × H)) :
    Superop ((A × E) × (B × F)) ((C × G) × (D × H)) :=
  fun X p q => ∑ i : A × B, ∑ j : A × B, ∑ s : E × F, ∑ t : E × F,
    X ((i.1, s.1), (i.2, s.2)) ((j.1, t.1), (j.2, t.2)) *
      L (Matrix.single i j 1) (p.1.1, p.2.1) (q.1.1, q.2.1) *
      M (Matrix.single s t 1) (p.1.2, p.2.2) (q.1.2, q.2.2)

/-- PDF p.8, Eq.(3): fixed separable-noise robustness; an empty set gives infinity. -/
def noiseRobustness {A B : Type} [Fintype A] [Fintype B]
    (rho sigma : Op (A × B)) : ℝ≥0∞ :=
  sInf {s | ∃ t : ℝ, 0 ≤ t ∧ s = ENNReal.ofReal t ∧
    SeparableState sigma ∧ IsSeparablePositive (rho + (t : ℂ) • sigma)}

/-- PDF p.8, Eqs.(2)-(3): standard robustness, using separable noise.
For normalized finite states the feasible set is nonempty and bounded below.
This definition is not generalized robustness. -/
def standardStateRobustness {A B : Type} [Fintype A] [Fintype B] (rho : Op (A × B)) : ℝ :=
  sInf {s : ℝ | 0 ≤ s ∧ ∃ sigma : Op (A × B), SeparableState sigma ∧
    IsSeparablePositive (rho + (s : ℂ) • sigma)}

/-- PDF p.9: extended order; its inversion sends zero to infinity. -/
abbrev RenyiOrder := ℝ≥0∞

/-- PDF p.9: all four entropy branches, in bits and using squared coefficients. -/
def schmidtRenyi {a b : ℕ} (alpha : RenyiOrder)
    (psi : EuclideanSpace ℂ (Fin a × Fin b)) : ℝ :=
  if alpha = ⊤ then -Real.logb 2 (schmidtAt psi 0)
  else if alpha = 0 then Real.logb 2 (finiteSchmidtRank psi)
  else if alpha = 1 then -∑ i, squaredSchmidtCoefficient psi i * Real.logb 2 (squaredSchmidtCoefficient psi i)
  else Real.logb 2 (∑ i, Real.rpow (squaredSchmidtCoefficient psi i) alpha.toReal) / (1 - alpha.toReal)

/-- PDF p.10: Petz divergence in bits on states; support violations give infinity. -/
def petzStateDivergence {I : Type} [Fintype I] (alpha : ℝ) (rho sigma : Op I) : ℝ≥0∞ :=
  if h : IsDensityMatrix rho ∧ IsDensityMatrix sigma then
    if alpha = 1 then
      QuantumLoss.umegakiEntropy rho sigma h.1 h.2 / ENNReal.ofReal (Real.log 2)
    else if 1 < alpha ∧ ¬ SupportIncluded rho sigma then ⊤
    else
      let z := (supportPower rho alpha * supportPower sigma (1 - alpha)).trace.re
      if 0 < z then ENNReal.ofReal (Real.logb 2 z / (alpha - 1)) else ⊤
  else ⊤

/-- PDF p.10: infimum over every separable density, without a full-rank restriction. -/
def relativeRenyi {A B : Type} [Fintype A] [Fintype B]
    (alpha : ℝ) (rho : Op (A × B)) : ℝ≥0∞ :=
  sInf {v | ∃ sigma : Op (A × B), SeparableState sigma ∧ v = petzStateDivergence alpha rho sigma}

/-- PDF pp.6-7: Hermitian and nonnegative on the separable cone.
Zero and positive semidefinite witnesses are permitted. -/
def Witness {A B : Type} [Fintype A] [Fintype B] (W : Op (A × B)) : Prop :=
  W.IsHermitian ∧ ∀ X, IsSeparablePositive X → 0 ≤ (W * X).trace.re

/-- PDF p.16: Frobenius norm, not operator norm. -/
def frobenius {I : Type} [Fintype I] (W : Op I) : ℝ :=
  Real.sqrt (∑ i, ∑ j, Complex.normSq (W i j))

/-- PDF p.5, Eq.(1): measure-and-prepare on all operators. -/
def binaryMeasurePrepare {I J : Type} [Fintype I]
    (A : Op I) (rho sigma : Op J) : Superop I J :=
  fun X => (A * X).trace • rho + ((1 - A) * X).trace • sigma

/-- PDF pp.16-17, Eq.(21): the constructed map, including the factor 2I. -/
def witnessMap {a b : ℕ} (W : Bip a b) : Superop (Fin a × Fin b) (Fin 2 × Fin 2) :=
  binaryMeasurePrepare ((1 / 3 : ℂ) • (W + (2 : ℂ) • 1)) ((1 / 4 : ℂ) • 1) (epr 2)

/-- PDF p.18, Definition 2.5: inequalities on the regrouped unnormalized Choi. -/
def Undetected {a b c d n : ℕ}
    (W : Fin n → Op ((Fin c × Fin a) × (Fin d × Fin b)))
    (L : Superop (Fin a × Fin b) (Fin c × Fin d)) : Prop :=
  CP L ∧ ∀ i, 0 ≤ (W i * partyGroupedChoi L).trace.re

/-- PDF p.4: the swap (flip) operator. -/
def swapOperator (d : ℕ) : Bip d d := fun p q => if p.1 = q.2 ∧ p.2 = q.1 then 1 else 0

/-- PDF p.21, Eq.(29): the source Werner parameterization. -/
def betaWernerState (d : ℕ) (beta : ℝ) : Bip d d :=
  (((d : ℂ) ^ 2 - ((beta + 1 : ℝ) : ℂ))⁻¹ : ℂ) •
    (1 - (((beta + 1) / d : ℝ) : ℂ) • swapOperator d)

/-- PDF p.14: the specific input for the unbounded negativity ratio. -/
def antisymmetricDensity (d : ℕ) : Bip d d :=
  (((d : ℂ) * ((d - 1 : ℕ) : ℂ))⁻¹ : ℂ) • (1 - swapOperator d)

/-- PDF p.14, Eq.(15): the specific PPT-preserving map in Theorem 10. -/
def negativityMap (d : ℕ) : Superop (Fin d × Fin d) (Fin d × Fin d) :=
  binaryMeasurePrepare (((d + 1 : ℂ)⁻¹ : ℂ) • ((d : ℂ) • 1 + swapOperator d))
    (((d : ℂ) ^ 2)⁻¹ • 1) (epr d)

/-- PDF p.21: rectangular coisometry, not a square idempotent. -/
def Coisometry {k d : ℕ} (P : Matrix (Fin k) (Fin d) ℂ) : Prop := P * Pᴴ = 1

/-- PDF p.22: unnormalized compression, which may be zero. -/
def localCoisometryCompression {k d : ℕ} (P Q : Matrix (Fin k) (Fin d) ℂ) (X : Bip d d) : Bip k k :=
  Matrix.kronecker P Q * X * (Matrix.kronecker P Q)ᴴ

/-- PDF p.21, Eq.(28): Choi compression, regrouped by party. -/
def compressChoi {d k : ℕ} (L : Superop (Fin d × Fin d) (Fin d × Fin d))
    (P Q : Matrix (Fin k) (Fin d) ℂ) : Op ((Fin d × Fin k) × (Fin d × Fin k)) :=
  let T := Matrix.kronecker (Matrix.kronecker (1 : Op (Fin d)) P)
    (Matrix.kronecker (1 : Op (Fin d)) Q)
  T * partyGroupedChoi L * Tᴴ

/-- PDF p.23: canonical rank-three detector in the first three coordinates. -/
def rankThreeKet (d : ℕ) : EuclideanSpace ℂ (Fin d × Fin d) :=
  WithLp.toLp 2 fun p => if p.1 = p.2 ∧ p.1.val < 3 then ((Real.sqrt 3)⁻¹ : ℂ) else 0

/-- PDF p.23: Eq.(21) with the rank-three partially transposed projector. -/
def rankThreeMap (d : ℕ) : Superop (Fin d × Fin d) (Fin 2 × Fin 2) :=
  witnessMap (partialTransposeFirst (pureDensity (rankThreeKet d)))

/-- PDF p.28, Eq.(46): divided difference with the diagonal derivative branch. -/
def powerDividedDifference (alpha x y : ℝ) : ℝ :=
  if x = y then (1 - alpha) * Real.rpow x (-alpha)
  else (Real.rpow x (1 - alpha) - Real.rpow y (1 - alpha)) / (x - y)

/-- PDF p.15: n copies encoded by fixed local tuple enumerations.
The cut is A^n:B^n; the empty tensor product at n=0 is 1. -/
def partyCopies {a b : ℕ} (rho : Bip a b) (n : ℕ) :
    Bip (Fintype.card (Fin n → Fin a)) (Fintype.card (Fin n → Fin b)) :=
  fun p q => ∏ j : Fin n,
    rho ((Fintype.equivFin (Fin n → Fin a)).symm p.1 j,
      (Fintype.equivFin (Fin n → Fin b)).symm p.2 j)
    ((Fintype.equivFin (Fin n → Fin a)).symm q.1 j,
      (Fintype.equivFin (Fin n → Fin b)).symm q.2 j)

/-- PDF p.15: deterministic LOCC distillation in trace norm. Finite approximants
also describe distillation using the closure of LOCC: the error tends to zero. -/
def LOCCDistillable {a b : ℕ} (rho : Bip a b) : Prop :=
  IsDensityMatrix rho ∧ ∃ L : (n : ℕ) →
    Superop (Fin (Fintype.card (Fin (n + 1) → Fin a)) ×
      Fin (Fintype.card (Fin (n + 1) → Fin b))) (Fin 2 × Fin 2),
    (∀ n, FiniteLOCC (L n) ∧ IsChannel (L n)) ∧
    Tendsto (fun n => traceNorm (L n (partyCopies rho (n + 1)) - epr 2)) atTop (nhds 0)

/-- Sanity: rank-one currency is a scalar density. PDF p.4. -/
example : epr 1 (0, 0) (0, 0) = 1 := by simp [epr]

/-- Sanity: Bell entries have the source normalization. PDF p.4. -/
example : epr 2 (0, 0) (1, 1) = 1 / 2 := by norm_num [epr]

/-- Sanity: zero is in the PPT cone. PDF p.4. -/
example {A B : Type} [Fintype A] [Fintype B] : PPTPositive (0 : Op (A × B)) :=
  ⟨Matrix.PosSemidef.zero, Matrix.PosSemidef.zero⟩

/-- Sanity: zero is a permitted witness. PDF p.7. -/
example {A B : Type} [Fintype A] [Fintype B] : Witness (0 : Op (A × B)) := by
  refine ⟨Matrix.isHermitian_zero, ?_⟩
  intro X hX
  simp

/-- Sanity: a zero effect prepares only the second state. PDF p.5. -/
example {I J : Type} [Fintype I] (rho sigma : Op J) (X : Op I) :
    binaryMeasurePrepare 0 rho sigma X = X.trace • sigma := by simp [binaryMeasurePrepare]

/-- Sanity: amplified identity acts on off-diagonal blocks too. PDF p.6. -/
example {A B E F : Type} (X : Op ((A × E) × (B × F))) :
    partyAmplification (fun Y : Op (A × B) => Y) X = X := rfl

/-- Sanity: the diagonal derivative at alpha=2, x=1. PDF pp.28-30. -/
example : powerDividedDifference 2 1 1 = -1 := by norm_num [powerDividedDifference]

/-- Sanity: zero copies give the scalar identity. PDF p.15. -/
example {a b : ℕ} (rho : Bip a b)
    (p q : Fin (Fintype.card (Fin 0 → Fin a)) × Fin (Fintype.card (Fin 0 → Fin b))) :
    partyCopies rho 0 p q = 1 := by simp [partyCopies]

/-- Sanity: absent Schmidt coefficients are zero. PDF p.4. -/
example {a b : ℕ} (psi : EuclideanSpace ℂ (Fin a × Fin b)) :
    schmidtAt psi a = 0 := by simp [schmidtAt]

/-- Sanity: zero relative order corresponds to infinite Schmidt entropy order. PDF p.10. -/
example : (ENNReal.ofReal (0 : ℝ))⁻¹ = (⊤ : RenyiOrder) := by simp

/-- Sanity: the zero map is CP without being trace preserving. PDF p.5. -/
example {I J : Type} [Fintype I] [Fintype J] :
    CP (fun _ : Op I => (0 : Op J)) := by
  refine ⟨0, Fin.elim0, ?_⟩
  intro X
  simp [krausApply]

/-- Sanity: the identity's trace-bilinear dual is the identity. PDF p.5. -/
example {I : Type} [Fintype I] (Y : Op I) : traceBilinearDual (fun X : Op I => X) Y = Y := by
  ext i j
  simp [traceBilinearDual, Matrix.trace_single_mul]

/-- Sanity: the zero map has zero unnormalized Choi representation. PDF p.5. -/
example {I J : Type} [Fintype I] :
    sourceOutputChoi (fun _ : Op I => (0 : Op J)) = 0 := rfl

/-- Sanity: the support power at zero preserves the zero kernel. PDF p.10. -/
example {I : Type} [Fintype I] : supportPower (0 : Op I) 0 = 0 := by
  simp [supportPower, cfc_zero]

/-- Sanity: the identity support projector is the identity. PDF p.10. -/
example {I : Type} [Fintype I] : supportPower (1 : Op I) 0 = 1 := by
  simp [supportPower, cfc_one]

/-- Sanity: the zero witness has zero Frobenius norm. PDF p.16. -/
example {I : Type} [Fintype I] : frobenius (0 : Op I) = 0 := by
  simp [frobenius]

/-- Sanity: the identity is a full-dimensional coisometry. PDF p.21. -/
example (d : ℕ) : Coisometry (1 : Matrix (Fin d) (Fin d) ℂ) := by
  simp [Coisometry]

/-- Sanity: the central Werner parameter gives the maximally mixed state. PDF p.21. -/
example (d : ℕ) : betaWernerState d (-1) = (((d : ℂ) ^ 2)⁻¹ : ℂ) • (1 : Bip d d) := by
  simp [betaWernerState]

end QAlgorithms.Papers.Independent.Intakethird100.P19
Source
Entanglement manipulation and distillability beyond LOCC, arXiv:1711.03835v2, https://arxiv.org/abs/1711.03835v2
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P19.ChoiPPT

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires a finite Kraus representation L(X)=∑ℓ=1mKℓXKℓ†L(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerL(X)=∑ℓ=1m​Kℓ​XKℓ†​ for every XXX, where the KℓK_\ellKℓ​ have output rows C×DC\times DC×D and input columns A×BA\times BA×B. It also requires that both JJJ and JTC×AJ^{T_{C\times A}}JTC×A​ be positive semidefinite, where

J((c,a),(d,b)),((c′,a′),(d′,b′))=[L(E(a,b),(a′,b′))](c,d),(c′,d′),(JTC×A)(u,v),(u′,v′)=J(u′,v),(u,v′),J_{((c,a),(d,b)),((c',a'),(d',b'))} =\bigl[L(E_{(a,b),(a',b')})\bigr]_{(c,d),(c',d')}, \qquad (J^{T_{C\times A}})_{(u,v),(u',v')}=J_{(u',v),(u,v')},J((c,a),(d,b)),((c′,a′),(d′,b′))​=[L(E(a,b),(a′,b′)​)](c,d),(c′,d′)​,(JTC×A​)(u,v),(u′,v′)​=J(u′,v),(u,v′)​,

and Ei,jE_{i,j}Ei,j​ denotes the matrix with a single 111 at (i,j)(i,j)(i,j). The Kraus sum may be empty; neither trace normalization of JJJ nor trace preservation of LLL is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.Coisometry

For arbitrary natural numbers k,dk,dk,d, including zero, and a complex k×dk\times dk×d matrix PPP, this predicate means PP†=IkPP^\dagger=I_kPP†=Ik​, where P†P^\daggerP† is the conjugate transpose. Thus the rows of PPP are orthonormal. When k=0k=0k=0, the equality holds for the empty matrix; when d=0<kd=0<kd=0<k, it cannot hold.

QAlgorithms.Papers.Independent.Intakethird100.P19.CompleteNE

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires the following for every positive integer kkk: LLL and its amplification L~k\widetilde L_kLk​ each admit a finite Kraus representation T(X)=∑ℓ=1mKℓXKℓ†T(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerT(X)=∑ℓ=1m​Kℓ​XKℓ†​ valid for all XXX, with m≥0m\ge0m≥0, and L~k\widetilde L_kLk​ preserves the cone of finite nonnegative sums of tensor products of local positive semidefinite trace-one matrices. Explicitly, with [k]={0,…,k−1}[k]=\{0,\ldots,k-1\}[k]={0,…,k−1},

[L~k(X)]((c,e),(d,f)),((c′,e′),(d′,f′))=[L ⁣((X((a,e),(b,f)),((a′,e′),(b′,f′)))(a,b),(a′,b′))](c,d),(c′,d′),[\widetilde L_k(X)]_{((c,e),(d,f)),((c',e'),(d',f'))} = \left[L\!\left(\bigl(X_{((a,e),(b,f)),((a',e'),(b',f'))}\bigr)_{(a,b),(a',b')}\right)\right]_{(c,d),(c',d')},[Lk​(X)]((c,e),(d,f)),((c′,e′),(d′,f′))​=[L((X((a,e),(b,f)),((a′,e′),(b′,f′))​)(a,b),(a′,b′)​)](c,d),(c′,d′)​,

where e,e′,f,f′∈[k]e,e',f,f'\in[k]e,e′,f,f′∈[k]; the two input parties are A×[k]A\times[k]A×[k] and B×[k]B\times[k]B×[k], and the output parties are C×[k]C\times[k]C×[k] and D×[k]D\times[k]D×[k]. In the preserved cone, weights need not sum to 111, and empty sums are allowed. The quantifier imposes no condition at k=0k=0k=0, and no trace preservation is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.CompletePPT

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires the following for every positive integer kkk: both LLL and its amplification L~k\widetilde L_kLk​ have finite Kraus representations T(X)=∑ℓ=1mKℓXKℓ†T(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerT(X)=∑ℓ=1m​Kℓ​XKℓ†​ for all XXX, with m≥0m\ge0m≥0, and L~k\widetilde L_kLk​ maps every matrix positive semidefinite together with its first-party partial transpose to another such matrix. With [k]={0,…,k−1}[k]=\{0,\ldots,k-1\}[k]={0,…,k−1}, the amplification is

[L~k(X)]((c,e),(d,f)),((c′,e′),(d′,f′))=[L ⁣((X((a,e),(b,f)),((a′,e′),(b′,f′)))(a,b),(a′,b′))](c,d),(c′,d′).[\widetilde L_k(X)]_{((c,e),(d,f)),((c',e'),(d',f'))} = \left[L\!\left(\bigl(X_{((a,e),(b,f)),((a',e'),(b',f'))}\bigr)_{(a,b),(a',b')}\right)\right]_{(c,d),(c',d')}.[Lk​(X)]((c,e),(d,f)),((c′,e′),(d′,f′))​=[L((X((a,e),(b,f)),((a′,e′),(b′,f′))​)(a,b),(a′,b′)​)](c,d),(c′,d′)​.

The first-party partial transpose acts on A×[k]A\times[k]A×[k] at the input and C×[k]C\times[k]C×[k] at the output; on any U×VU\times VU×V it is given by (XTU)(u,v),(u′,v′)=X(u′,v),(u,v′)(X^{T_U})_{(u,v),(u',v')}=X_{(u',v),(u,v')}(XTU​)(u,v),(u′,v′)​=X(u′,v),(u,v′)​. No condition is imposed at k=0k=0k=0, and no trace normalization or trace preservation is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.DNE

For finite types A,B,C,DA,B,C,DA,B,C,D and a function LLL from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, define the reverse function by

L♭(Y)ij=tr⁡ ⁣(L(Eji)Y),i,j∈A×B,L^\flat(Y)_{ij}=\operatorname{tr}\!\bigl(L(E_{ji})Y\bigr), \qquad i,j\in A\times B,L♭(Y)ij​=tr(L(Eji​)Y),i,j∈A×B,

where EjiE_{ji}Eji​ is the corresponding matrix unit. This predicate requires that both LLL and L♭L^\flatL♭ admit finite Kraus representations: L(X)=∑r<mKrXKr†L(X)=\sum_{r<m}K_rXK_r^\daggerL(X)=∑r<m​Kr​XKr†​ for all XXX, and L♭(Y)=∑s<ℓHsYHs†L^\flat(Y)=\sum_{s<\ell}H_sYH_s^\daggerL♭(Y)=∑s<ℓ​Hs​YHs†​ for all YYY, for some natural numbers m,ℓm,\ellm,ℓ and appropriately sized complex matrices. It also requires that each function preserve finite nonnegative sums of tensor products of density matrices across its respective bipartition: density matrices here mean positive semidefinite matrices with trace 111, and the weights in these sums need not sum to 111. Both the Kraus sums and the tensor-product decompositions may be empty, and the four finite types may be empty. Neither function is required to preserve trace or have a normalized Kraus family.

QAlgorithms.Papers.Independent.Intakethird100.P19.KNE

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, a natural number kkk, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires k>0k>0k>0, a finite Kraus representation of LLL, and a finite Kraus representation of the amplified function L~\widetilde LL. Writing [k]={0,…,k−1}[k]=\{0,\ldots,k-1\}[k]={0,…,k−1}, the latter function acts from matrices on (A×[k])×(B×[k])(A\times[k])\times(B\times[k])(A×[k])×(B×[k]) to those on (C×[k])×(D×[k])(C\times[k])\times(D\times[k])(C×[k])×(D×[k]), with entries

[L~(X)]((c,e),(d,f)),((c′,e′),(d′,f′))=[L ⁣((X((a,e),(b,f)),((a′,e′),(b′,f′)))(a,b),(a′,b′))](c,d),(c′,d′).[\widetilde L(X)]_{((c,e),(d,f)),((c',e'),(d',f'))} = \left[L\!\left(\bigl(X_{((a,e),(b,f)),((a',e'),(b',f'))}\bigr)_{(a,b),(a',b')}\right)\right]_{(c,d),(c',d')}.[L(X)]((c,e),(d,f)),((c′,e′),(d′,f′))​=[L((X((a,e),(b,f)),((a′,e′),(b′,f′))​)(a,b),(a′,b′)​)](c,d),(c′,d′)​.

A finite Kraus representation of a function TTT means T(X)=∑ℓ=1mKℓXKℓ†T(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerT(X)=∑ℓ=1m​Kℓ​XKℓ†​ for all XXX, for some m≥0m\ge0m≥0. Finally, L~\widetilde LL must carry every finite sum ∑jwjRj⊗Sj\sum_j w_j R_j\otimes S_j∑j​wj​Rj​⊗Sj​, with wj≥0w_j\ge0wj​≥0 and Rj,SjR_j,S_jRj​,Sj​ positive semidefinite of trace 111 on the two input parties, to a sum of the same form on the two output parties. The weights need not sum to 111, and empty sums are allowed. At k=0k=0k=0 the predicate is false.

QAlgorithms.Papers.Independent.Intakethird100.P19.KPPT

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, a natural number kkk, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires k>0k>0k>0 and finite Kraus representations of both LLL and its amplification L~\widetilde LL. Each such representation has the form T(X)=∑ℓ=1mKℓXKℓ†T(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerT(X)=∑ℓ=1m​Kℓ​XKℓ†​ for every XXX, with m≥0m\ge0m≥0. With [k]={0,…,k−1}[k]=\{0,\ldots,k-1\}[k]={0,…,k−1}, amplification is defined by

[L~(X)]((c,e),(d,f)),((c′,e′),(d′,f′))=[L ⁣((X((a,e),(b,f)),((a′,e′),(b′,f′)))(a,b),(a′,b′))](c,d),(c′,d′).[\widetilde L(X)]_{((c,e),(d,f)),((c',e'),(d',f'))} = \left[L\!\left(\bigl(X_{((a,e),(b,f)),((a',e'),(b',f'))}\bigr)_{(a,b),(a',b')}\right)\right]_{(c,d),(c',d')}.[L(X)]((c,e),(d,f)),((c′,e′),(d′,f′))​=[L((X((a,e),(b,f)),((a′,e′),(b′,f′))​)(a,b),(a′,b′)​)](c,d),(c′,d′)​.

Furthermore, whenever XXX and its partial transpose on the first party A×[k]A\times[k]A×[k] are positive semidefinite, L~(X)\widetilde L(X)L(X) and its partial transpose on C×[k]C\times[k]C×[k] must also be positive semidefinite. For a matrix on U×VU\times VU×V, this partial transpose has entries (XTU)(u,v),(u′,v′)=X(u′,v),(u,v′)(X^{T_U})_{(u,v),(u',v')}=X_{(u',v),(u,v')}(XTU​)(u,v),(u′,v′)​=X(u′,v),(u,v′)​. No trace condition is imposed. At k=0k=0k=0 the predicate is false.

QAlgorithms.Papers.Independent.Intakethird100.P19.LOCCDistillable

For arbitrary natural numbers a,ba,ba,b and a complex matrix ρ\rhoρ on {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, this predicate requires that ρ\rhoρ be positive semidefinite with trace 111, and that there exist maps LnL_nLn​, one for every n≥0n\ge0n≥0, taking matrices on the two parties’ sequence spaces of length n+1n+1n+1 to matrices on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, such that every LnL_nLn​ is both a channel and a finite local-operation protocol. Here a channel has a finite Kraus representation Ln(X)=∑iKiXKi†L_n(X)=\sum_iK_iXK_i^\daggerLn​(X)=∑i​Ki​XKi†​ with ∑iKi†Ki=I\sum_iK_i^\dagger K_i=I∑i​Ki†​Ki​=I. A finite local-operation protocol is generated recursively from identity maps by allowing either party to apply a finite local Kraus family satisfying this same completeness equality and then choose another such finite protocol according to the Kraus outcome, summing the resulting branches; intermediate dimensions and finite branch counts are natural numbers without additional positivity restrictions. The required convergence is

lim⁡n→∞∥Ln ⁣(ρ[n+1])−Ω2∥1=0,\lim_{n\to\infty} \left\|L_n\!\left(\rho^{[n+1]}\right)-\Omega_2\right\|_1=0,n→∞lim​​Ln​(ρ[n+1])−Ω2​​1​=0,

where ρ[m]\rho^{[m]}ρ[m] has entries given by products of mmm entries of ρ\rhoρ, with each party’s sequence indices grouped together through the specified finite-set bijections, (Ω2)(i,j),(r,s)=12(\Omega_2)_{(i,j),(r,s)}=\frac12(Ω2​)(i,j),(r,s)​=21​ when i=ji=ji=j and r=sr=sr=s and is zero otherwise, and ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​. Thus only positive copy counts occur. If a=0a=0a=0 or b=0b=0b=0, the initial trace-one requirement is impossible.

QAlgorithms.Papers.Independent.Intakethird100.P19.NE

For finite types A,B,C,DA,B,C,DA,B,C,D and a function LLL from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, this predicate requires both a finite Kraus representation and preservation of the following class of matrices. The representation requirement is that there exist a natural number mmm and matrices KjK_jKj​, with rows indexed by C×DC\times DC×D and columns by A×BA\times BA×B, such that for every matrix XXX,

L(X)=∑j<mKjXKj†.L(X)=\sum_{j<m}K_jXK_j^\dagger.L(X)=j<m∑​Kj​XKj†​.

The preservation requirement is that whenever XXX has a finite decomposition ∑r<qwr(Rr⊗Sr)\sum_{r<q}w_r(R_r\otimes S_r)∑r<q​wr​(Rr​⊗Sr​), where wr≥0w_r\ge0wr​≥0 and each Rr,SrR_r,S_rRr​,Sr​ is positive semidefinite with trace 111 on A,BA,BA,B, respectively, L(X)L(X)L(X) has a decomposition of the same form using density matrices on C,DC,DC,D. Neither decomposition requires its weights to sum to 111. Empty sums and empty finite types are included. No equation ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1 or trace-preservation requirement is imposed.

QAlgorithms.Papers.Independent.Intakethird100.P19.PPTPositive

For finite types A,BA,BA,B and a complex matrix XXX indexed by A×BA\times BA×B, this predicate requires that both XXX and the matrix XTAX^{T_A}XTA​ be positive semidefinite, where

XTA((a,b),(a′,b′))=X((a′,b),(a,b′)).X^{T_A}\bigl((a,b),(a',b')\bigr) =X\bigl((a',b),(a,b')\bigr).XTA​((a,b),(a′,b′))=X((a′,b),(a,b′)).

No trace or normalization requirement is imposed. The zero matrix satisfies the predicate, and empty finite types are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P19.PPTPreserving

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and a function LLL from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, this predicate requires both a finite Kraus representation and preservation of positivity under partial transpose. Explicitly, there must exist m∈Nm\in\mathbb Nm∈N and matrices K1,…,KmK_1,\ldots,K_mK1​,…,Km​, with rows indexed by C×DC\times DC×D and columns by A×BA\times BA×B, such that L(X)=∑ℓ=1mKℓXKℓ†L(X)=\sum_{\ell=1}^m K_\ell X K_\ell^\daggerL(X)=∑ℓ=1m​Kℓ​XKℓ†​ for every XXX. Moreover, every matrix XXX for which both XXX and XTAX^{T_A}XTA​ are positive semidefinite must have both L(X)L(X)L(X) and L(X)TCL(X)^{T_C}L(X)TC​ positive semidefinite, where (XTA)(a,b),(a′,b′)=X(a′,b),(a,b′)(X^{T_A})_{(a,b),(a',b')}=X_{(a',b),(a,b')}(XTA​)(a,b),(a′,b′)​=X(a′,b),(a,b′)​, and the output partial transpose is defined analogously on CCC. The Kraus family may be empty, and no trace normalization or trace preservation is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.RenyiOrder

This abbreviation denotes the extended nonnegative real numbers [0,∞][0,\infty][0,∞], including both 000 and +∞+\infty+∞, with no additional restriction on the allowed values.

QAlgorithms.Papers.Independent.Intakethird100.P19.SEP

For arbitrary finite types A,B,C,DA,B,C,DA,B,C,D, possibly empty, and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate requires a finite Kraus representation L(X)=∑ℓ=1mKℓXKℓ†L(X)=\sum_{\ell=1}^{m}K_\ell X K_\ell^\daggerL(X)=∑ℓ=1m​Kℓ​XKℓ†​ for every XXX, with each KℓK_\ellKℓ​ having output rows C×DC\times DC×D and input columns A×BA\times BA×B, together with the following condition on the matrix JJJ indexed by (C×A)×(D×B)(C\times A)\times(D\times B)(C×A)×(D×B):

J((c,a),(d,b)),((c′,a′),(d′,b′))=[L(E(a,b),(a′,b′))](c,d),(c′,d′).J_{((c,a),(d,b)),((c',a'),(d',b'))} =\bigl[L(E_{(a,b),(a',b')})\bigr]_{(c,d),(c',d')}.J((c,a),(d,b)),((c′,a′),(d′,b′))​=[L(E(a,b),(a′,b′)​)](c,d),(c′,d′)​.

Here Eu,vE_{u,v}Eu,v​ has entry 111 at (u,v)(u,v)(u,v) and zero elsewhere. There must exist q∈Nq\in\mathbb Nq∈N, nonnegative real weights wjw_jwj​, and positive semidefinite matrices RjR_jRj​ on C×AC\times AC×A and SjS_jSj​ on D×BD\times BD×B, each of trace 111, such that J=∑j=1qwj(Rj⊗Sj)J=\sum_{j=1}^{q}w_j(R_j\otimes S_j)J=∑j=1q​wj​(Rj​⊗Sj​). The weights need not sum to 111; empty sums, and hence the zero matrix, are allowed. No trace preservation of LLL is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.SeparableState

For finite types A,BA,BA,B and a complex matrix XXX indexed by A×BA\times BA×B, this predicate requires that XXX be positive semidefinite with complex trace 111, and that there exist a natural number qqq, real weights w0,…,wq−1≥0w_0,\ldots,w_{q-1}\ge0w0​,…,wq−1​≥0, and matrices RjR_jRj​ on AAA and SjS_jSj​ on BBB, each positive semidefinite with trace 111, such that

X=∑j<qwj(Rj⊗Sj).X=\sum_{j<q}w_j(R_j\otimes S_j).X=j<q∑​wj​(Rj​⊗Sj​).

There is no separately imposed equation ∑jwj=1\sum_jw_j=1∑j​wj​=1, although it follows from the trace requirements. The finite sum is allowed to be empty, but then X=0X=0X=0, contradicting its required trace 111. The types A,BA,BA,B are not assumed nonempty; if either is empty, the predicate cannot hold.

QAlgorithms.Papers.Independent.Intakethird100.P19.Undetected

For arbitrary natural numbers a,b,c,d,na,b,c,d,na,b,c,d,n, a family W0,…,Wn−1W_0,\ldots,W_{n-1}W0​,…,Wn−1​ of complex square matrices indexed by ({0,…,c−1}×{0,…,a−1})×({0,…,d−1}×{0,…,b−1})(\{0,\ldots,c-1\}\times\{0,\ldots,a-1\})\times(\{0,\ldots,d-1\}\times\{0,\ldots,b-1\})({0,…,c−1}×{0,…,a−1})×({0,…,d−1}×{0,…,b−1}), and a function LLL from matrices indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1} to matrices indexed by {0,…,c−1}×{0,…,d−1}\{0,\ldots,c-1\}\times\{0,\ldots,d-1\}{0,…,c−1}×{0,…,d−1}, this predicate requires a finite Kraus representation L(X)=∑j=0m−1KjXKj†L(X)=\sum_{j=0}^{m-1}K_jXK_j^\daggerL(X)=∑j=0m−1​Kj​XKj†​ for some m∈Nm\in\mathbb Nm∈N and rectangular complex matrices KjK_jKj​, and requires Re⁡tr⁡(WiCL)≥0\operatorname{Re}\operatorname{tr}(W_iC_L)\ge0Retr(Wi​CL​)≥0 for every i<ni<ni<n. The matrix CLC_LCL​ is defined explicitly by

(CL)((u,r),(v,s)),((u′,r′),(v′,s′))=[L(E(r,s),(r′,s′))](u,v),(u′,v′),(C_L)_{((u,r),(v,s)),((u',r'),(v',s'))} =\bigl[L(E_{(r,s),(r',s')})\bigr]_{(u,v),(u',v')},(CL​)((u,r),(v,s)),((u′,r′),(v′,s′))​=[L(E(r,s),(r′,s′)​)](u,v),(u′,v′)​,

where Ex,yE_{x,y}Ex,y​ has entry 111 at (x,y)(x,y)(x,y) and zero elsewhere. There is no Kraus completeness condition, no trace-preservation requirement, and no witness or Hermitian hypothesis on the WiW_iWi​. All dimensions may be zero; when n=0n=0n=0, only the finite Kraus representation is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.UnitBipartiteKet

For natural numbers a,ba,ba,b, a value of this structure consists of a complex vector ψ\psiψ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, together with the requirement ∥ψ∥2=1\|\psi\|_2=1∥ψ∥2​=1. Equivalently, ∑i<a∑j<b∣ψij∣2=1\sum_{i<a}\sum_{j<b}|\psi_{ij}|^2=1∑i<a​∑j<b​∣ψij​∣2=1. Zero dimensions are permitted as parameters, but if a=0a=0a=0 or b=0b=0b=0, the vector space contains only the zero vector, so no value of this structure exists.

QAlgorithms.Papers.Independent.Intakethird100.P19.UnitBipartiteKet.rho

For any natural numbers a,ba,ba,b and any structured unit vector ψ\psiψ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, this definition returns the complex matrix

ρψ((i,j),(k,ℓ))=ψij ψkℓ‾.\rho_\psi\bigl((i,j),(k,\ell)\bigr)=\psi_{ij}\,\overline{\psi_{k\ell}}.ρψ​((i,j),(k,ℓ))=ψij​ψkℓ​​.

The input includes the requirement ∥ψ∥2=1\|\psi\|_2=1∥ψ∥2​=1; consequently, there are no such inputs when either dimension is zero.

QAlgorithms.Papers.Independent.Intakethird100.P19.Witness

For any finite types A,BA,BA,B and complex square matrix WWW indexed by A×BA\times BA×B, this predicate means that WWW is Hermitian and Re⁡tr⁡(WX)≥0\operatorname{Re}\operatorname{tr}(WX)\ge0Retr(WX)≥0 for every matrix XXX admitting a representation

X=∑j=0q−1wj(Aj⊗Bj),X=\sum_{j=0}^{q-1}w_j(A_j\otimes B_j),X=j=0∑q−1​wj​(Aj​⊗Bj​),

where qqq is any natural number, each wjw_jwj​ is a nonnegative real number, and each AjA_jAj​ and BjB_jBj​ is a positive semidefinite matrix of trace 111 indexed by AAA and BBB, respectively. The weights need not sum to 111, and q=0q=0q=0 gives X=0X=0X=0. The predicate imposes neither positive semidefiniteness nor a normalization condition on WWW. Empty index types are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P19.antisymmetricDensity

For every natural number ddd, this defines

(d max⁡{d−1,0})−1(Id2−Fd),\bigl(d\,\max\{d-1,0\}\bigr)^{-1}(I_{d^2}-F_d),(dmax{d−1,0})−1(Id2​−Fd​),

as a complex matrix indexed by pairs from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, where (Fd)(i,j),(k,l)=1(F_d)_{(i,j),(k,l)}=1(Fd​)(i,j),(k,l)​=1 exactly when i=li=li=l and j=kj=kj=k, and is zero otherwise. The subtraction d−1d-1d−1 is natural-number subtraction, so it is truncated at zero, and inversion satisfies 0−1=00^{-1}=00−1=0. Thus d=1d=1d=1 gives the zero matrix, and d=0d=0d=0 gives the matrix on the empty index set; no positive-dimension hypothesis is required.

QAlgorithms.Papers.Independent.Intakethird100.P19.betaWernerState

For every natural number ddd and arbitrary real number β\betaβ, this defines the complex matrix

(d2−(β+1))−1(Id2−β+1dFd),\bigl(d^2-(\beta+1)\bigr)^{-1} \left(I_{d^2}-\frac{\beta+1}{d}F_d\right),(d2−(β+1))−1(Id2​−dβ+1​Fd​),

indexed by pairs from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, where (Fd)(i,j),(k,l)=1(F_d)_{(i,j),(k,l)}=1(Fd​)(i,j),(k,l)​=1 exactly when i=li=li=l and j=kj=kj=k, and is zero otherwise. No restriction on β\betaβ, positivity hypothesis, or density condition is imposed. Division and inversion are total, with 0−1=00^{-1}=00−1=0; in particular, when d2=β+1d^2=\beta+1d2=β+1, the matrix is zero. For d=0d=0d=0, the real quotient (β+1)/d(\beta+1)/d(β+1)/d is 000, and the resulting matrix has an empty index set.

QAlgorithms.Papers.Independent.Intakethird100.P19.binaryMeasurePrepare

For any finite type III, any type JJJ, arbitrary complex square matrices AAA indexed by III and ρ,σ\rho,\sigmaρ,σ indexed by JJJ, this defines the function on complex I×II\times II×I matrices given by

X⟼tr⁡(AX) ρ+tr⁡((II−A)X) σ,X\longmapsto \operatorname{tr}(AX)\,\rho+\operatorname{tr}((I_I-A)X)\,\sigma,X⟼tr(AX)ρ+tr((II​−A)X)σ,

where III_III​ is the identity matrix and the trace coefficients are complex numbers. There are no positivity, effect, density, or trace-preservation hypotheses, and JJJ need not be finite. If III is empty, the function is identically zero.

QAlgorithms.Papers.Independent.Intakethird100.P19.compressChoi

For arbitrary natural numbers d,kd,kd,k, an arbitrary function LLL from complex matrices on {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 to matrices on the same index set, and arbitrary complex k×dk\times dk×d matrices P,QP,QP,Q, define a matrix CLC_LCL​, indexed by ((c,a),(e,b))((c,a),(e,b))((c,a),(e,b)) with all four indices less than ddd, by

(CL)((c,a),(e,b)), ((c′,a′),(e′,b′))=[L(E(a,b),(a′,b′))](c,e),(c′,e′),(C_L)_{((c,a),(e,b)),\,((c',a'),(e',b'))} =\bigl[L(E_{(a,b),(a',b')})\bigr]_{(c,e),(c',e')},(CL​)((c,a),(e,b)),((c′,a′),(e′,b′))​=[L(E(a,b),(a′,b′)​)](c,e),(c′,e′)​,

where Eu,vE_{u,v}Eu,v​ has a single entry 111 at (u,v)(u,v)(u,v) and zero elsewhere. The defined output is

TCLT†,T=(Id⊗P)⊗(Id⊗Q),TC_LT^\dagger,\qquad T=(I_d\otimes P)\otimes(I_d\otimes Q),TCL​T†,T=(Id​⊗P)⊗(Id​⊗Q),

indexed by ({0,…,d−1}×{0,…,k−1})2(\{0,\ldots,d-1\}\times\{0,\ldots,k-1\})^2({0,…,d−1}×{0,…,k−1})2. No linearity, positivity, channel condition, or coisometry condition is imposed on L,P,QL,P,QL,P,Q; zero dimensions are included.

QAlgorithms.Papers.Independent.Intakethird100.P19.finiteSchmidtRank

For arbitrary natural numbers a,ba,ba,b and an arbitrary complex vector ψ\psiψ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, form Rrs=∑t<bψrtψst‾R_{rs}=\sum_{t<b}\psi_{rt}\overline{\psi_{st}}Rrs​=∑t<b​ψrt​ψst​​. This definition returns the number of strictly positive eigenvalues of RRR, counting multiplicities: explicitly, it counts those indices i<ai<ai<a for which the eigenvalue at ascending position a−1−ia-1-ia−1−i is greater than zero. No normalization of ψ\psiψ is assumed. Zero eigenvalues are excluded, and the count is zero if either dimension is zero or ψ=0\psi=0ψ=0.

QAlgorithms.Papers.Independent.Intakethird100.P19.frobenius

For any finite type III and arbitrary complex square matrix WWW indexed by III, this definition returns

∑i∈I∑j∈I∣Wij∣2.\sqrt{\sum_{i\in I}\sum_{j\in I}|W_{ij}|^2}.i∈I∑​j∈I∑​∣Wij​∣2​.

No Hermitian, positivity, or normalization assumption is imposed. If III is empty, both sums are empty and the value is 000.

QAlgorithms.Papers.Independent.Intakethird100.P19.localCoisometryCompression

For arbitrary natural numbers k,dk,dk,d, complex k×dk\times dk×d matrices P,QP,QP,Q, and an arbitrary complex matrix XXX indexed by pairs in {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2, this defines the matrix indexed by {0,…,k−1}2\{0,\ldots,k-1\}^2{0,…,k−1}2 given by

(P⊗Q)X(P⊗Q)†.(P\otimes Q)X(P\otimes Q)^\dagger.(P⊗Q)X(P⊗Q)†.

Neither PP†=IkPP^\dagger=I_kPP†=Ik​ nor QQ†=IkQQ^\dagger=I_kQQ†=Ik​ is assumed, and XXX need not be positive or have trace one. Zero dimensions are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P19.negativityMap

For every natural number ddd, let FdF_dFd​ have entries (Fd)(i,j),(k,l)=1(F_d)_{(i,j),(k,l)}=1(Fd​)(i,j),(k,l)​=1 when i=li=li=l and j=kj=kj=k, and zero otherwise, and set Ad=(dId2+Fd)/(d+1)A_d=(dI_{d^2}+F_d)/(d+1)Ad​=(dId2​+Fd​)/(d+1). This defines the function on complex matrices indexed by {0,…,d−1}×{0,…,d−1}\{0,\ldots,d-1\}\times\{0,\ldots,d-1\}{0,…,d−1}×{0,…,d−1} given by

X⟼tr⁡(AdX) (d2)−1Id2+tr⁡((Id2−Ad)X) Ed,X\longmapsto \operatorname{tr}(A_dX)\,(d^2)^{-1}I_{d^2} +\operatorname{tr}((I_{d^2}-A_d)X)\,E_d,X⟼tr(Ad​X)(d2)−1Id2​+tr((Id2​−Ad​)X)Ed​,

where (Ed)(i,j),(k,l)=d−1(E_d)_{(i,j),(k,l)}=d^{-1}(Ed​)(i,j),(k,l)​=d−1 when i=ji=ji=j and k=lk=lk=l, and is zero otherwise. The trace coefficients are complex, and the input XXX has no positivity or normalization requirement. The definition includes d=0d=0d=0, with every inverse of zero interpreted as zero and the matrices indexed by the empty set.

QAlgorithms.Papers.Independent.Intakethird100.P19.noiseRobustness

For arbitrary finite types A,BA,BA,B, possibly empty, and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ on A×BA\times BA×B, this definition is the infimum in [0,∞][0,\infty][0,∞] of all nonnegative real numbers ttt, embedded into [0,∞][0,\infty][0,∞], such that σ\sigmaσ is positive semidefinite of trace 111, σ\sigmaσ is a finite sum of nonnegative real multiples of tensor products of local positive semidefinite trace-one matrices, and ρ+tσ\rho+t\sigmaρ+tσ is also a finite sum of that form. Explicitly, such a sum is ∑j=1qwjRj⊗Sj\sum_{j=1}^{q}w_jR_j\otimes S_j∑j=1q​wj​Rj​⊗Sj​, where q∈Nq\in\mathbb Nq∈N, wj≥0w_j\ge0wj​≥0, tr⁡Rj=tr⁡Sj=1\operatorname{tr}R_j=\operatorname{tr}S_j=1trRj​=trSj​=1, and Rj,SjR_j,S_jRj​,Sj​ are positive semidefinite on A,BA,BA,B, respectively; no condition requires the weights to sum to 111, and the empty sum is allowed. The matrix ρ\rhoρ is not assumed to be a density matrix. If no admissible ttt exists, including when σ\sigmaσ fails the stated conditions, the value is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intakethird100.P19.partyAmplification

For arbitrary types A,B,C,D,E,FA,B,C,D,E,FA,B,C,D,E,F, with no finiteness or nonemptiness assumptions, and any function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this definition gives a function L~\widetilde LL from complex matrices on (A×E)×(B×F)(A\times E)\times(B\times F)(A×E)×(B×F) to those on (C×E)×(D×F)(C\times E)\times(D\times F)(C×E)×(D×F). For every input matrix XXX and every output row and column ((c,e),(d,f))((c,e),(d,f))((c,e),(d,f)) and ((c′,e′),(d′,f′))((c',e'),(d',f'))((c′,e′),(d′,f′)), it is defined by

[L~(X)]((c,e),(d,f)),((c′,e′),(d′,f′))=[L(Y)](c,d),(c′,d′),Y(a,b),(a′,b′)=X((a,e),(b,f)),((a′,e′),(b′,f′)).[\widetilde L(X)]_{((c,e),(d,f)),((c',e'),(d',f'))} =[L(Y)]_{(c,d),(c',d')}, \qquad Y_{(a,b),(a',b')}= X_{((a,e),(b,f)),((a',e'),(b',f'))}.[L(X)]((c,e),(d,f)),((c′,e′),(d′,f′))​=[L(Y)](c,d),(c′,d′)​,Y(a,b),(a′,b′)​=X((a,e),(b,f)),((a′,e′),(b′,f′))​.

No linearity, positivity, or normalization condition is imposed on LLL.

QAlgorithms.Papers.Independent.Intakethird100.P19.partyCopies

For arbitrary natural numbers a,b,na,b,na,b,n and an arbitrary complex matrix ρ\rhoρ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, choose the particular bijections used in the definition from length-nnn sequences over these two index sets to finite index sets of their respective cardinalities an,bna^n,b^nan,bn. Writing xrx_rxr​ and ysy_sys​ for the sequences represented by indices r<anr<a^nr<an and s<bns<b^ns<bn, this defines a matrix ρ[n]\rho^{[n]}ρ[n] by

ρ(r,s),(r′,s′)[n]=∏j=0n−1ρ(xr(j),ys(j)),(xr′(j),ys′(j)).\rho^{[n]}_{(r,s),(r',s')} =\prod_{j=0}^{n-1}\rho_{(x_r(j),y_s(j)),(x_{r'}(j),y_{s'}(j))}.ρ(r,s),(r′,s′)[n]​=j=0∏n−1​ρ(xr​(j),ys​(j)),(xr′​(j),ys′​(j))​.

No positivity or normalization of ρ\rhoρ is assumed. When n=0n=0n=0, both sequence sets have one element, even if a=0a=0a=0 or b=0b=0b=0, and the empty product makes the output the 1×11\times11×1 matrix with entry 111.

QAlgorithms.Papers.Independent.Intakethird100.P19.partyGroupedChoi

For finite types A,BA,BA,B, arbitrary types C,DC,DC,D, and any function LLL from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, this definition returns the matrix indexed by (C×A)×(D×B)(C\times A)\times(D\times B)(C×A)×(D×B) with entries

JL(((c,a),(d,b)),((c′,a′),(d′,b′)))=L ⁣(E(a,b),(a′,b′))(c,d),(c′,d′),J_L\bigl(((c,a),(d,b)),((c',a'),(d',b'))\bigr) = L\!\left(E_{(a,b),(a',b')}\right)_{(c,d),(c',d')},JL​(((c,a),(d,b)),((c′,a′),(d′,b′)))=L(E(a,b),(a′,b′)​)(c,d),(c′,d′)​,

where the matrix unit on the right has one entry equal to 111 at the indicated row and column and zeros elsewhere. There are no finiteness assumptions on C,DC,DC,D and no linearity, positivity, or normalization assumptions on LLL. Empty types are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P19.petzStateDivergence

For any finite type III, real number α\alphaα, and complex square matrices ρ,σ\rho,\sigmaρ,σ indexed by III, this definition returns an element of [0,∞][0,\infty][0,∞]. It returns ∞\infty∞ unless both matrices are positive semidefinite and have complex trace 111. For such matrices, write KKK for the condition ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ, and define Pt(H)P_t(H)Pt​(H) by spectral functional calculus using the function that is 000 at 000 and xtx^txt at nonzero xxx. If α=1\alpha=1α=1, the value is ∞\infty∞ when KKK fails, and otherwise is

max⁡ ⁣{0,Re⁡tr⁡ ⁣[f(ρ)−ρ g(σ)]}log⁡2,f(x)=xlog⁡x,g(x)=log⁡x,\frac{\max\!\left\{0,\operatorname{Re}\operatorname{tr}\!\left[f(\rho)-\rho\,g(\sigma)\right]\right\}}{\log2}, \qquad f(x)=x\log x,\quad g(x)=\log x,log2max{0,Retr[f(ρ)−ρg(σ)]}​,f(x)=xlogx,g(x)=logx,

where f(ρ)f(\rho)f(ρ) and g(σ)g(\sigma)g(σ) use spectral functional calculus and log⁡0=0\log0=0log0=0. If α≠1\alpha\ne1α=1, the value is ∞\infty∞ when α>1\alpha>1α>1 and KKK fails; in every other case, set z=Re⁡tr⁡(Pα(ρ)P1−α(σ))z=\operatorname{Re}\operatorname{tr}(P_\alpha(\rho)P_{1-\alpha}(\sigma))z=Retr(Pα​(ρ)P1−α​(σ)), and return max⁡{0,log⁡2z/(α−1)}\max\{0,\log_2z/(\alpha-1)\}max{0,log2​z/(α−1)} if z>0z>0z>0, and ∞\infty∞ otherwise. There is no restriction on α\alphaα; in particular, P0P_0P0​ is zero on the kernel rather than the identity there. If III is empty, the density conditions fail and the value is ∞\infty∞.

QAlgorithms.Papers.Independent.Intakethird100.P19.powerDividedDifference

For arbitrary real numbers α,x,y\alpha,x,yα,x,y, this defines

Dα(x,y)={(1−α)x−α,x=y,x1−α−y1−αx−y,x≠y.D_\alpha(x,y)= \begin{cases} (1-\alpha)x^{-\alpha},&x=y,\\[2mm] \dfrac{x^{1-\alpha}-y^{1-\alpha}}{x-y},&x\ne y. \end{cases}Dα​(x,y)=⎩⎨⎧​(1−α)x−α,x−yx1−α−y1−α​,​x=y,x=y.​

Every real power here uses the total real-power operation appearing in the code. There are no positivity assumptions on x,yx,yx,y and no restriction on α\alphaα; in particular, the equal-input branch also applies at x=y=0x=y=0x=y=0, using that operation’s defined value there.

QAlgorithms.Papers.Independent.Intakethird100.P19.rankThreeKet

For every natural number ddd, this defines the complex Euclidean vector vdv_dvd​ indexed by 0≤i,j<d0\le i,j<d0≤i,j<d through

vd(i,j)={1/3,i=j and i<3,0,otherwise.v_d(i,j)= \begin{cases} 1/\sqrt3,&i=j\text{ and }i<3,\\ 0,&\text{otherwise}. \end{cases}vd​(i,j)={1/3​,0,​i=j and i<3,otherwise.​

Equivalently, it is 13∑i<min⁡(d,3)∣i,i⟩\frac1{\sqrt3}\sum_{i<\min(d,3)}|i,i\rangle3​1​∑i<min(d,3)​∣i,i⟩, with ∣i,i⟩|i,i\rangle∣i,i⟩ the corresponding coordinate unit vector. The definition includes d<3d<3d<3: its squared norm is min⁡(d,3)/3\min(d,3)/3min(d,3)/3, so it is zero for d=0d=0d=0 and has norm one precisely when d≥3d\ge3d≥3.

QAlgorithms.Papers.Independent.Intakethird100.P19.rankThreeMap

For every natural number ddd, let vd(i,j)=1/3v_d(i,j)=1/\sqrt3vd​(i,j)=1/3​ when i=j<3i=j<3i=j<3, and 000 otherwise, for 0≤i,j<d0\le i,j<d0≤i,j<d. Form WWW by transposing the first subsystem of vdvd†v_dv_d^\daggervd​vd†​, explicitly

W(i,j),(r,s)=vd(r,j)vd(i,s)‾,A=W+2Id23.W_{(i,j),(r,s)}=v_d(r,j)\overline{v_d(i,s)}, \qquad A=\frac{W+2I_{d^2}}3.W(i,j),(r,s)​=vd​(r,j)vd​(i,s)​,A=3W+2Id2​​.

This defines the function from arbitrary complex d2×d2d^2\times d^2d2×d2 matrices to complex 4×44\times44×4 matrices by

X⟼tr⁡(AX)I44+tr⁡((Id2−A)X) Ω2,X\longmapsto \operatorname{tr}(AX)\frac{I_4}{4} +\operatorname{tr}((I_{d^2}-A)X)\,\Omega_2,X⟼tr(AX)4I4​​+tr((Id2​−A)X)Ω2​,

where (Ω2)(i,j),(r,s)=12(\Omega_2)_{(i,j),(r,s)}=\frac12(Ω2​)(i,j),(r,s)​=21​ if i=ji=ji=j and r=sr=sr=s, and is zero otherwise, with i,j,r,s∈{0,1}i,j,r,s\in\{0,1\}i,j,r,s∈{0,1}. These are complex traces, without taking real parts. No hypothesis d≥3d\ge3d≥3 is imposed; the definition also includes d=0,1,2d=0,1,2d=0,1,2, for which the specified vdv_dvd​ is not a unit vector.

QAlgorithms.Papers.Independent.Intakethird100.P19.relativeRenyi

For any finite types A,BA,BA,B, real number α\alphaα, and arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this is the infimum in [0,∞][0,\infty][0,∞] of Dα(ρ,σ)D_\alpha(\rho,\sigma)Dα​(ρ,σ) over matrices σ\sigmaσ that are positive semidefinite with trace 111 and admit a finite representation σ=∑j=0q−1wj(Aj⊗Bj)\sigma=\sum_{j=0}^{q-1}w_j(A_j\otimes B_j)σ=∑j=0q−1​wj​(Aj​⊗Bj​), where q∈Nq\in\mathbb Nq∈N, wj≥0w_j\ge0wj​≥0, and every Aj,BjA_j,B_jAj​,Bj​ is positive semidefinite with trace 111; no separate condition ∑jwj=1\sum_jw_j=1∑j​wj​=1 is imposed in this representation. Here DαD_\alphaDα​ is ∞\infty∞ unless ρ,σ\rho,\sigmaρ,σ are both positive semidefinite with trace 111. For such matrices, let KKK mean ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ, and let Pt(H)P_t(H)Pt​(H) apply spectrally the function 0↦00\mapsto00↦0, x↦xtx\mapsto x^tx↦xt for x≠0x\ne0x=0. At α=1\alpha=1α=1, DαD_\alphaDα​ is ∞\infty∞ if KKK fails, and otherwise equals max⁡{0,Re⁡tr⁡(f(ρ)−ρg(σ))}/log⁡2\max\{0,\operatorname{Re}\operatorname{tr}(f(\rho)-\rho g(\sigma))\}/\log2max{0,Retr(f(ρ)−ρg(σ))}/log2, with f(x)=xlog⁡xf(x)=x\log xf(x)=xlogx, g(x)=log⁡xg(x)=\log xg(x)=logx, and log⁡0=0\log0=0log0=0. For α≠1\alpha\ne1α=1, it is ∞\infty∞ if α>1\alpha>1α>1 and KKK fails; otherwise, writing z=Re⁡tr⁡(Pα(ρ)P1−α(σ))z=\operatorname{Re}\operatorname{tr}(P_\alpha(\rho)P_{1-\alpha}(\sigma))z=Retr(Pα​(ρ)P1−α​(σ)), it is max⁡{0,log⁡2z/(α−1)}\max\{0,\log_2z/(\alpha-1)\}max{0,log2​z/(α−1)} when z>0z>0z>0, and ∞\infty∞ when z≤0z\le0z≤0. No density assumption is made on the input ρ\rhoρ; an empty set of candidate values has infimum ∞\infty∞, including when either AAA or BBB is empty.

QAlgorithms.Papers.Independent.Intakethird100.P19.schmidtAt

For arbitrary natural numbers a,b,ja,b,ja,b,j and an arbitrary complex vector ψ\psiψ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, let RRR be the matrix with entries Rrs=∑t<bψrtψst‾R_{rs}=\sum_{t<b}\psi_{rt}\overline{\psi_{st}}Rrs​=∑t<b​ψrt​ψst​​. This definition returns the eigenvalue at position a−1−ja-1-ja−1−j in the ascending eigenvalue list of RRR, counting multiplicities, when j<aj<aj<a, and returns 000 when j≥aj\ge aj≥a. Thus it lists these eigenvalues in descending order and extends the list by zeros. No unit-norm assumption is imposed; in particular, the function is identically zero if a=0a=0a=0, b=0b=0b=0, or ψ=0\psi=0ψ=0.

QAlgorithms.Papers.Independent.Intakethird100.P19.schmidtRenyi

For arbitrary natural numbers a,ba,ba,b, an order α∈[0,∞]\alpha\in[0,\infty]α∈[0,∞], and any vector ψ∈C{0,…,a−1}×{0,…,b−1}\psi\in\mathbb C^{\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}}ψ∈C{0,…,a−1}×{0,…,b−1}, with no normalization assumption, form the matrix RRR with entries Rij=∑k=0b−1ψikψjk‾R_{ij}=\sum_{k=0}^{b-1}\psi_{ik}\overline{\psi_{jk}}Rij​=∑k=0b−1​ψik​ψjk​​, and list its eigenvalues with multiplicity in decreasing order as λ0,…,λa−1\lambda_0,\ldots,\lambda_{a-1}λ0​,…,λa−1​. Let r=#{i:λi>0}r=\#\{i:\lambda_i>0\}r=#{i:λi​>0}, and set λ0∗=λ0\lambda_0^{*}=\lambda_0λ0∗​=λ0​ if a>0a>0a>0, and λ0∗=0\lambda_0^{*}=0λ0∗​=0 otherwise. The definition returns

{−log⁡2λ0∗,α=∞,log⁡2r,α=0,−∑i=0a−1λilog⁡2λi,α=1,log⁡2 ⁣(∑i=0a−1λiα)1−α,0<α<∞, α≠1.\begin{cases} -\log_2\lambda_0^{*},&\alpha=\infty,\\ \log_2 r,&\alpha=0,\\ -\sum_{i=0}^{a-1}\lambda_i\log_2\lambda_i,&\alpha=1,\\ \displaystyle\frac{\log_2\!\left(\sum_{i=0}^{a-1}\lambda_i^{\alpha}\right)}{1-\alpha},&0<\alpha<\infty,\ \alpha\ne1. \end{cases}⎩⎨⎧​−log2​λ0∗​,log2​r,−∑i=0a−1​λi​log2​λi​,1−αlog2​(∑i=0a−1​λiα​)​,​α=∞,α=0,α=1,0<α<∞, α=1.​

Here log⁡2x=log⁡x/log⁡2\log_2 x=\log x/\log2log2​x=logx/log2 uses the total real logarithm, in particular log⁡20=0\log_2 0=0log2​0=0. Zero dimensions and the zero vector are included; if all the λi\lambda_iλi​ vanish, every branch returns 000.

QAlgorithms.Papers.Independent.Intakethird100.P19.sourceOutputChoi

For a finite type III, an arbitrary type JJJ, and any function LLL from complex matrices on III to complex matrices on JJJ, this definition returns the matrix indexed by J×IJ\times IJ×I whose entries are

CL((u,i),(v,j))=L(Eij)uv,C_L\bigl((u,i),(v,j)\bigr)=L(E_{ij})_{uv},CL​((u,i),(v,j))=L(Eij​)uv​,

where EijE_{ij}Eij​ is the matrix on III with its sole nonzero entry equal to 111 in row iii, column jjj. No finiteness assumption is imposed on JJJ, and no linearity, positivity, or normalization assumption is imposed on LLL. If either indexing type is empty, the resulting matrix has an empty index set.

QAlgorithms.Papers.Independent.Intakethird100.P19.squaredSchmidtCoefficient

For arbitrary natural numbers a,ba,ba,b, an arbitrary complex vector ψ\psiψ indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, and an index i<ai<ai<a, form the matrix

Rrs=∑t<bψrt ψst‾.R_{rs}=\sum_{t<b}\psi_{rt}\,\overline{\psi_{st}}.Rrs​=t<b∑​ψrt​ψst​​.

This definition returns the eigenvalue of RRR at position a−1−ia-1-ia−1−i in its ascending eigenvalue list, counting multiplicities; thus i=0i=0i=0 selects the largest eigenvalue. Here the ascending list is obtained by reversing the Hermitian matrix’s descending eigenvalue list; the custom eigenvalue function would return zeros for a non-Hermitian matrix, but RRR is always positive semidefinite. No normalization of ψ\psiψ is required. If b=0b=0b=0 or ψ=0\psi=0ψ=0, every available value is zero; if a=0a=0a=0, there is no admissible index iii.

QAlgorithms.Papers.Independent.Intakethird100.P19.standardStateRobustness

For arbitrary finite types A,BA,BA,B, possibly empty, and any complex matrix ρ\rhoρ on A×BA\times BA×B, this definition is the real infimum

inf⁡{s∈R: s≥0, ∃σ, σ is positive semidefinite of trace 1, σ and ρ+sσ are separable positive sums}.\inf\left\{s\in\mathbb R:\ s\ge0,\ \exists\sigma,\ \sigma\text{ is positive semidefinite of trace }1,\ \sigma\text{ and }\rho+s\sigma\text{ are separable positive sums}\right\}.inf{s∈R: s≥0, ∃σ, σ is positive semidefinite of trace 1, σ and ρ+sσ are separable positive sums}.

A separable positive sum means a matrix ∑j=1qwjRj⊗Sj\sum_{j=1}^{q}w_jR_j\otimes S_j∑j=1q​wj​Rj​⊗Sj​, with q∈Nq\in\mathbb Nq∈N, nonnegative real wjw_jwj​, and positive semidefinite trace-one local matrices RjR_jRj​ on AAA and SjS_jSj​ on BBB; the weights need not sum to 111, and q=0q=0q=0 gives zero. There is no density-matrix assumption on ρ\rhoρ. If the set whose infimum is taken is empty, this real-valued definition returns 000; in particular this occurs when either AAA or BBB is empty.

QAlgorithms.Papers.Independent.Intakethird100.P19.swapOperator

For every natural number ddd, this defines the complex square matrix FdF_dFd​ indexed by pairs from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, with

(Fd)(i,j),(k,l)={1,i=l and j=k,0,otherwise.(F_d)_{(i,j),(k,l)} =\begin{cases}1,&i=l\text{ and }j=k,\\0,&\text{otherwise}.\end{cases}(Fd​)(i,j),(k,l)​={1,0,​i=l and j=k,otherwise.​

Thus its action exchanges the two coordinates. The definition includes d=0d=0d=0, when the index set is empty.

QAlgorithms.Papers.Independent.Intakethird100.P19.tensorMaps

For arbitrary types A,B,C,D,E,F,G,HA,B,C,D,E,F,G,HA,B,C,D,E,F,G,H, assuming only that A,B,E,FA,B,E,FA,B,E,F are finite, and arbitrary functions LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D and MMM from matrices on E×FE\times FE×F to those on G×HG\times HG×H, this definition gives a function T\mathcal TT from matrices on (A×E)×(B×F)(A\times E)\times(B\times F)(A×E)×(B×F) to those on (C×G)×(D×H)(C\times G)\times(D\times H)(C×G)×(D×H), defined by

[T(X)]((c,g),(d,h)),((c′,g′),(d′,h′))=∑i,j∈A×B∑s,t∈E×FX((iA,sE),(iB,sF)),((jA,tE),(jB,tF))⋅[L(Ei,j)](c,d),(c′,d′)⋅[M(Es,t)](g,h),(g′,h′).\begin{aligned} [\mathcal T(X)]_{((c,g),(d,h)),((c',g'),(d',h'))} ={}&\sum_{i,j\in A\times B}\sum_{s,t\in E\times F} X_{((i_A,s_E),(i_B,s_F)),((j_A,t_E),(j_B,t_F))}\\ &\quad\cdot[L(E_{i,j})]_{(c,d),(c',d')} \cdot[M(E_{s,t})]_{(g,h),(g',h')}. \end{aligned}[T(X)]((c,g),(d,h)),((c′,g′),(d′,h′))​=​i,j∈A×B∑​s,t∈E×F∑​X((iA​,sE​),(iB​,sF​)),((jA​,tE​),(jB​,tF​))​⋅[L(Ei,j​)](c,d),(c′,d′)​⋅[M(Es,t​)](g,h),(g′,h′)​.​

Here subscripts indicate the components of each pair, and Eu,vE_{u,v}Eu,v​ denotes the matrix with entry 111 at (u,v)(u,v)(u,v) and zero elsewhere. Neither function is assumed linear or positive. Empty input indexing sets give empty sums, hence zero output entries.

QAlgorithms.Papers.Independent.Intakethird100.P19.traceBilinearDual

For finite types I,JI,JI,J and any function LLL from complex matrices on III to complex matrices on JJJ, this definition produces a function L♭L^\flatL♭ in the reverse direction, given for every matrix YYY on JJJ and indices i,j∈Ii,j\in Ii,j∈I by

L♭(Y)ij=tr⁡ ⁣(L(Eji)Y)=∑u,v∈JL(Eji)uvYvu,L^\flat(Y)_{ij} =\operatorname{tr}\!\bigl(L(E_{ji})Y\bigr) =\sum_{u,v\in J}L(E_{ji})_{uv}Y_{vu},L♭(Y)ij​=tr(L(Eji​)Y)=u,v∈J∑​L(Eji​)uv​Yvu​,

where EjiE_{ji}Eji​ has entry 111 in row jjj, column iii, and zeros elsewhere. The definition assumes neither linearity nor positivity nor trace preservation of LLL, and uses no complex conjugation in this trace pairing. Empty finite types are included; in particular, if JJJ is empty, every displayed trace is zero.

QAlgorithms.Papers.Independent.Intakethird100.P19.witnessMap

For arbitrary natural numbers a,ba,ba,b and any complex square matrix WWW indexed by {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}, let AW=(W+2Iab)/3A_W=(W+2I_{ab})/3AW​=(W+2Iab​)/3. This defines the function from matrices on that index set to matrices indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} given by

X⟼tr⁡(AWX)I44+tr⁡((Iab−AW)X) E2,X\longmapsto \operatorname{tr}(A_WX)\frac{I_4}{4} +\operatorname{tr}((I_{ab}-A_W)X)\,E_2,X⟼tr(AW​X)4I4​​+tr((Iab​−AW​)X)E2​,

where (E2)(i,j),(k,l)=12(E_2)_{(i,j),(k,l)}=\tfrac12(E2​)(i,j),(k,l)​=21​ when i=ji=ji=j and k=lk=lk=l, and is 000 otherwise. No witness, Hermitian, positivity, or normalization condition is required of WWW. If a=0a=0a=0 or b=0b=0b=0, the function is identically zero.

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