Definitions for Entanglement manipulation and distillability beyond LOCC
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P19The 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.
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
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 , possibly empty, and a function from complex matrices on to those on , this predicate requires a finite Kraus representation for every , where the have output rows and input columns . It also requires that both and be positive semidefinite, where
and denotes the matrix with a single at . The Kraus sum may be empty; neither trace normalization of nor trace preservation of is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.Coisometry
For arbitrary natural numbers , including zero, and a complex matrix , this predicate means , where is the conjugate transpose. Thus the rows of are orthonormal. When , the equality holds for the empty matrix; when , it cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P19.CompleteNE
For arbitrary finite types , possibly empty, and a function from complex matrices on to those on , this predicate requires the following for every positive integer : and its amplification each admit a finite Kraus representation valid for all , with , and preserves the cone of finite nonnegative sums of tensor products of local positive semidefinite trace-one matrices. Explicitly, with ,
where ; the two input parties are and , and the output parties are and . In the preserved cone, weights need not sum to , and empty sums are allowed. The quantifier imposes no condition at , and no trace preservation is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.CompletePPT
For arbitrary finite types , possibly empty, and a function from complex matrices on to those on , this predicate requires the following for every positive integer : both and its amplification have finite Kraus representations for all , with , and maps every matrix positive semidefinite together with its first-party partial transpose to another such matrix. With , the amplification is
The first-party partial transpose acts on at the input and at the output; on any it is given by . No condition is imposed at , and no trace normalization or trace preservation is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.DNE
For finite types and a function from complex matrices on to complex matrices on , define the reverse function by
where is the corresponding matrix unit. This predicate requires that both and admit finite Kraus representations: for all , and for all , for some natural numbers 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 , and the weights in these sums need not sum to . 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 , possibly empty, a natural number , and a function from complex matrices on to those on , this predicate requires , a finite Kraus representation of , and a finite Kraus representation of the amplified function . Writing , the latter function acts from matrices on to those on , with entries
A finite Kraus representation of a function means for all , for some . Finally, must carry every finite sum , with and positive semidefinite of trace on the two input parties, to a sum of the same form on the two output parties. The weights need not sum to , and empty sums are allowed. At the predicate is false.
QAlgorithms.Papers.Independent.Intakethird100.P19.KPPT
For arbitrary finite types , possibly empty, a natural number , and a function from complex matrices on to those on , this predicate requires and finite Kraus representations of both and its amplification . Each such representation has the form for every , with . With , amplification is defined by
Furthermore, whenever and its partial transpose on the first party are positive semidefinite, and its partial transpose on must also be positive semidefinite. For a matrix on , this partial transpose has entries . No trace condition is imposed. At the predicate is false.
QAlgorithms.Papers.Independent.Intakethird100.P19.LOCCDistillable
For arbitrary natural numbers and a complex matrix on , this predicate requires that be positive semidefinite with trace , and that there exist maps , one for every , taking matrices on the two parties’ sequence spaces of length to matrices on , such that every is both a channel and a finite local-operation protocol. Here a channel has a finite Kraus representation with . 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
where has entries given by products of entries of , with each party’s sequence indices grouped together through the specified finite-set bijections, when and and is zero otherwise, and . Thus only positive copy counts occur. If or , the initial trace-one requirement is impossible.
QAlgorithms.Papers.Independent.Intakethird100.P19.NE
For finite types and a function from complex matrices on to complex matrices on , 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 and matrices , with rows indexed by and columns by , such that for every matrix ,
The preservation requirement is that whenever has a finite decomposition , where and each is positive semidefinite with trace on , respectively, has a decomposition of the same form using density matrices on . Neither decomposition requires its weights to sum to . Empty sums and empty finite types are included. No equation or trace-preservation requirement is imposed.
QAlgorithms.Papers.Independent.Intakethird100.P19.PPTPositive
For finite types and a complex matrix indexed by , this predicate requires that both and the matrix be positive semidefinite, where
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 , possibly empty, and a function from complex matrices on to complex matrices on , this predicate requires both a finite Kraus representation and preservation of positivity under partial transpose. Explicitly, there must exist and matrices , with rows indexed by and columns by , such that for every . Moreover, every matrix for which both and are positive semidefinite must have both and positive semidefinite, where , and the output partial transpose is defined analogously on . 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 , including both and , with no additional restriction on the allowed values.
QAlgorithms.Papers.Independent.Intakethird100.P19.SEP
For arbitrary finite types , possibly empty, and a function from complex matrices on to those on , this predicate requires a finite Kraus representation for every , with each having output rows and input columns , together with the following condition on the matrix indexed by :
Here has entry at and zero elsewhere. There must exist , nonnegative real weights , and positive semidefinite matrices on and on , each of trace , such that . The weights need not sum to ; empty sums, and hence the zero matrix, are allowed. No trace preservation of is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.SeparableState
For finite types and a complex matrix indexed by , this predicate requires that be positive semidefinite with complex trace , and that there exist a natural number , real weights , and matrices on and on , each positive semidefinite with trace , such that
There is no separately imposed equation , although it follows from the trace requirements. The finite sum is allowed to be empty, but then , contradicting its required trace . The types are not assumed nonempty; if either is empty, the predicate cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P19.Undetected
For arbitrary natural numbers , a family of complex square matrices indexed by , and a function from matrices indexed by to matrices indexed by , this predicate requires a finite Kraus representation for some and rectangular complex matrices , and requires for every . The matrix is defined explicitly by
where has entry at and zero elsewhere. There is no Kraus completeness condition, no trace-preservation requirement, and no witness or Hermitian hypothesis on the . All dimensions may be zero; when , only the finite Kraus representation is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.UnitBipartiteKet
For natural numbers , a value of this structure consists of a complex vector indexed by , together with the requirement . Equivalently, . Zero dimensions are permitted as parameters, but if or , 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 and any structured unit vector indexed by , this definition returns the complex matrix
The input includes the requirement ; consequently, there are no such inputs when either dimension is zero.
QAlgorithms.Papers.Independent.Intakethird100.P19.Witness
For any finite types and complex square matrix indexed by , this predicate means that is Hermitian and for every matrix admitting a representation
where is any natural number, each is a nonnegative real number, and each and is a positive semidefinite matrix of trace indexed by and , respectively. The weights need not sum to , and gives . The predicate imposes neither positive semidefiniteness nor a normalization condition on . Empty index types are allowed.
QAlgorithms.Papers.Independent.Intakethird100.P19.antisymmetricDensity
For every natural number , this defines
as a complex matrix indexed by pairs from , where exactly when and , and is zero otherwise. The subtraction is natural-number subtraction, so it is truncated at zero, and inversion satisfies . Thus gives the zero matrix, and gives the matrix on the empty index set; no positive-dimension hypothesis is required.
QAlgorithms.Papers.Independent.Intakethird100.P19.betaWernerState
For every natural number and arbitrary real number , this defines the complex matrix
indexed by pairs from , where exactly when and , and is zero otherwise. No restriction on , positivity hypothesis, or density condition is imposed. Division and inversion are total, with ; in particular, when , the matrix is zero. For , the real quotient is , and the resulting matrix has an empty index set.
QAlgorithms.Papers.Independent.Intakethird100.P19.binaryMeasurePrepare
For any finite type , any type , arbitrary complex square matrices indexed by and indexed by , this defines the function on complex matrices given by
where is the identity matrix and the trace coefficients are complex numbers. There are no positivity, effect, density, or trace-preservation hypotheses, and need not be finite. If is empty, the function is identically zero.
QAlgorithms.Papers.Independent.Intakethird100.P19.compressChoi
For arbitrary natural numbers , an arbitrary function from complex matrices on to matrices on the same index set, and arbitrary complex matrices , define a matrix , indexed by with all four indices less than , by
where has a single entry at and zero elsewhere. The defined output is
indexed by . No linearity, positivity, channel condition, or coisometry condition is imposed on ; zero dimensions are included.
QAlgorithms.Papers.Independent.Intakethird100.P19.finiteSchmidtRank
For arbitrary natural numbers and an arbitrary complex vector indexed by , form . This definition returns the number of strictly positive eigenvalues of , counting multiplicities: explicitly, it counts those indices for which the eigenvalue at ascending position is greater than zero. No normalization of is assumed. Zero eigenvalues are excluded, and the count is zero if either dimension is zero or .
QAlgorithms.Papers.Independent.Intakethird100.P19.frobenius
For any finite type and arbitrary complex square matrix indexed by , this definition returns
No Hermitian, positivity, or normalization assumption is imposed. If is empty, both sums are empty and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P19.localCoisometryCompression
For arbitrary natural numbers , complex matrices , and an arbitrary complex matrix indexed by pairs in , this defines the matrix indexed by given by
Neither nor is assumed, and need not be positive or have trace one. Zero dimensions are allowed.
QAlgorithms.Papers.Independent.Intakethird100.P19.negativityMap
For every natural number , let have entries when and , and zero otherwise, and set . This defines the function on complex matrices indexed by given by
where when and , and is zero otherwise. The trace coefficients are complex, and the input has no positivity or normalization requirement. The definition includes , 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 , possibly empty, and arbitrary complex matrices on , this definition is the infimum in of all nonnegative real numbers , embedded into , such that is positive semidefinite of trace , is a finite sum of nonnegative real multiples of tensor products of local positive semidefinite trace-one matrices, and is also a finite sum of that form. Explicitly, such a sum is , where , , , and are positive semidefinite on , respectively; no condition requires the weights to sum to , and the empty sum is allowed. The matrix is not assumed to be a density matrix. If no admissible exists, including when fails the stated conditions, the value is .
QAlgorithms.Papers.Independent.Intakethird100.P19.partyAmplification
For arbitrary types , with no finiteness or nonemptiness assumptions, and any function from complex matrices on to those on , this definition gives a function from complex matrices on to those on . For every input matrix and every output row and column and , it is defined by
No linearity, positivity, or normalization condition is imposed on .
QAlgorithms.Papers.Independent.Intakethird100.P19.partyCopies
For arbitrary natural numbers and an arbitrary complex matrix indexed by , choose the particular bijections used in the definition from length- sequences over these two index sets to finite index sets of their respective cardinalities . Writing and for the sequences represented by indices and , this defines a matrix by
No positivity or normalization of is assumed. When , both sequence sets have one element, even if or , and the empty product makes the output the matrix with entry .
QAlgorithms.Papers.Independent.Intakethird100.P19.partyGroupedChoi
For finite types , arbitrary types , and any function from complex matrices on to complex matrices on , this definition returns the matrix indexed by with entries
where the matrix unit on the right has one entry equal to at the indicated row and column and zeros elsewhere. There are no finiteness assumptions on and no linearity, positivity, or normalization assumptions on . Empty types are allowed.
QAlgorithms.Papers.Independent.Intakethird100.P19.petzStateDivergence
For any finite type , real number , and complex square matrices indexed by , this definition returns an element of . It returns unless both matrices are positive semidefinite and have complex trace . For such matrices, write for the condition , and define by spectral functional calculus using the function that is at and at nonzero . If , the value is when fails, and otherwise is
where and use spectral functional calculus and . If , the value is when and fails; in every other case, set , and return if , and otherwise. There is no restriction on ; in particular, is zero on the kernel rather than the identity there. If is empty, the density conditions fail and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P19.powerDividedDifference
For arbitrary real numbers , this defines
Every real power here uses the total real-power operation appearing in the code. There are no positivity assumptions on and no restriction on ; in particular, the equal-input branch also applies at , using that operation’s defined value there.
QAlgorithms.Papers.Independent.Intakethird100.P19.rankThreeKet
For every natural number , this defines the complex Euclidean vector indexed by through
Equivalently, it is , with the corresponding coordinate unit vector. The definition includes : its squared norm is , so it is zero for and has norm one precisely when .
QAlgorithms.Papers.Independent.Intakethird100.P19.rankThreeMap
For every natural number , let when , and otherwise, for . Form by transposing the first subsystem of , explicitly
This defines the function from arbitrary complex matrices to complex matrices by
where if and , and is zero otherwise, with . These are complex traces, without taking real parts. No hypothesis is imposed; the definition also includes , for which the specified is not a unit vector.
QAlgorithms.Papers.Independent.Intakethird100.P19.relativeRenyi
For any finite types , real number , and arbitrary complex matrix indexed by , this is the infimum in of over matrices that are positive semidefinite with trace and admit a finite representation , where , , and every is positive semidefinite with trace ; no separate condition is imposed in this representation. Here is unless are both positive semidefinite with trace . For such matrices, let mean , and let apply spectrally the function , for . At , is if fails, and otherwise equals , with , , and . For , it is if and fails; otherwise, writing , it is when , and when . No density assumption is made on the input ; an empty set of candidate values has infimum , including when either or is empty.
QAlgorithms.Papers.Independent.Intakethird100.P19.schmidtAt
For arbitrary natural numbers and an arbitrary complex vector indexed by , let be the matrix with entries . This definition returns the eigenvalue at position in the ascending eigenvalue list of , counting multiplicities, when , and returns when . 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 , , or .
QAlgorithms.Papers.Independent.Intakethird100.P19.schmidtRenyi
For arbitrary natural numbers , an order , and any vector , with no normalization assumption, form the matrix with entries , and list its eigenvalues with multiplicity in decreasing order as . Let , and set if , and otherwise. The definition returns
Here uses the total real logarithm, in particular . Zero dimensions and the zero vector are included; if all the vanish, every branch returns .
QAlgorithms.Papers.Independent.Intakethird100.P19.sourceOutputChoi
For a finite type , an arbitrary type , and any function from complex matrices on to complex matrices on , this definition returns the matrix indexed by whose entries are
where is the matrix on with its sole nonzero entry equal to in row , column . No finiteness assumption is imposed on , and no linearity, positivity, or normalization assumption is imposed on . If either indexing type is empty, the resulting matrix has an empty index set.
QAlgorithms.Papers.Independent.Intakethird100.P19.squaredSchmidtCoefficient
For arbitrary natural numbers , an arbitrary complex vector indexed by , and an index , form the matrix
This definition returns the eigenvalue of at position in its ascending eigenvalue list, counting multiplicities; thus 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 is always positive semidefinite. No normalization of is required. If or , every available value is zero; if , there is no admissible index .
QAlgorithms.Papers.Independent.Intakethird100.P19.standardStateRobustness
For arbitrary finite types , possibly empty, and any complex matrix on , this definition is the real infimum
A separable positive sum means a matrix , with , nonnegative real , and positive semidefinite trace-one local matrices on and on ; the weights need not sum to , and gives zero. There is no density-matrix assumption on . If the set whose infimum is taken is empty, this real-valued definition returns ; in particular this occurs when either or is empty.
QAlgorithms.Papers.Independent.Intakethird100.P19.swapOperator
For every natural number , this defines the complex square matrix indexed by pairs from , with
Thus its action exchanges the two coordinates. The definition includes , when the index set is empty.
QAlgorithms.Papers.Independent.Intakethird100.P19.tensorMaps
For arbitrary types , assuming only that are finite, and arbitrary functions from complex matrices on to those on and from matrices on to those on , this definition gives a function from matrices on to those on , defined by
Here subscripts indicate the components of each pair, and denotes the matrix with entry at 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 and any function from complex matrices on to complex matrices on , this definition produces a function in the reverse direction, given for every matrix on and indices by
where has entry in row , column , and zeros elsewhere. The definition assumes neither linearity nor positivity nor trace preservation of , and uses no complex conjugation in this trace pairing. Empty finite types are included; in particular, if is empty, every displayed trace is zero.
QAlgorithms.Papers.Independent.Intakethird100.P19.witnessMap
For arbitrary natural numbers and any complex square matrix indexed by , let . This defines the function from matrices on that index set to matrices indexed by given by
where when and , and is otherwise. No witness, Hermitian, positivity, or normalization condition is required of . If or , the function is identically zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.