Definitions for Quantifying the performance of approximate teleportation and quantum error correction via symmetric two-PPT-extendibility
DefinitionQAlgorithms_Papers_Independent_Extend50_P02The objects the formalized statements of Quantifying the performance of approximate teleportation and quantum error correction via symmetric two-PPT-extendibility (arXiv:2207.06931) are stated in. Each was checked against the paper by a blind read-back and a moderator.
HasFiniteKraus: PDF p.4: completely positive maps, in finite Kraus form.tensorSuperopAction: PDF p.4: tensor product on arbitrary, possibly entangled, operators.IsAliceToBobLOCC: PDF p.4, (7): Alice's instrument and Bob's conditional channels.IsLOCR: PDF p.4, (8), and p.11, (128): local CPTP maps with common randomness.stabilizedHalfTraceDistance: PDF pp.6–7, (43)–(48): half the stabilized trace distance. For channels the input-sized reference and density matrices suffice.worstCaseSquaredFidelity: PDF p.7, (50)–(52): worst-case squared Uhlmann fidelity on normalized reference-assisted inputs.Criterion: PDF pp.7,13: the two error criteria.simulationErrorFor: PDF pp.7,13, (60),(62),(168),(170).infimumSimulationError: PDF pp.7,13: optimize over a specified physical simulation class. In all theorem uses this set is nonempty and its errors belong to [0,1].BiOp: PDF pp.4–5: index order (Alice input,Bob input;Alice output,Bob output).ExtOp: PDF p.5, (14)–(17): two Bob inputs and two Bob outputs.swapExtension: PDF p.5, (14): simultaneous Bob input/output swap.averagedBobExtensionMarginal: PDF p.9, (87), and p.14, (185): maximally-mixed-input marginal. This is a computed partial trace, never an independent matrix variable.transposeBob2: PDF p.5, (33): transpose second Bob input and output.transposeAlice: PDF p.5, (34): transpose Alice's input and output.IsSymmetricBobChannelExtension: PDF p.5, (14)–(17): PSD, TP, covariance, and exact marginal extension.ExtensionNS: PDF p.12, (146): extra non-signaling from Alice to both Bobs, on the extension.HasExtension: PDF pp.5,12: two-extendibility, with optional PPT and extra NS constraints.BobToAliceNS: PDF p.5, (18): Choi form of the Bob-to-Alice non-signaling equation (12).appendResourceAndApply: PDF p.6, (42): append the fixed resource state.teleportBipartite: PDF p.6: trivial Alice output displayed for bipartite notation.teleportSet: PDF pp.7–9: none = one-way LOCC; some false = two-extendible; some true = two-PPT-extendible. Protocols are fixed before the input.teleportError: PDF pp.7–9, (61),(63),(72),(88).wireChoi: PDF p.11, (122): component form of the fully-transposed Choi link.wire: PDF p.11, (122): physical superchannel output reconstructed from its Choi.CorrectionClass: PDF pp.12–14: distinct assisted and unassisted classes.AllowedCorrection: PDF pp.11–14: product = one encoder and one decoder; LOCR allows shared randomness; the extra NS condition is required only when ns=true.correctionError: PDF pp.12–14, (148),(150),(155),(157),(169),(171),(172),(218).nonidentityWeylAverage: PDF p.8, (69): the nonidentity Weyl average, using the full Weyl sum identity d Tr(X) I. Used only when card A >= 2.entFidelity: PDF p.13, (165): normalized Phi, with reference identity explicit.isotropicTeleport: PDF p.8, (68): the identity/nonidentityWeylAverage map controlled by K and L.HasDecoderEffect: PDF p.8, (70): POVM/conditional-decoder representation of K.teleportOneWaySuccess: PDF p.8, (67)–(68): full variational objective including one-way implementability.contractResource: PDF p.9, (81): contract the transposed resource against the marginal. The component formula includes the transpose through the contracted index order.TeleportSDP: PDF p.9, (79)–(86): unreduced teleportation SDP.CorrectionSDP: PDF p.14, (175)–(183): unreduced correction SDP; TP traces H,B1,B2.TwoBobCoefficients: PDF pp.9–10,14–15: the six reduced operator variables on H,J1,J2.realOperatorScale: Real scalar multiplication of an operator; all denominators below are real.twoByTwoPauliOperator: PDF p.9, (91): the two-by-two block test, with the printed i signs.swapReduced: PDF p.9, (93)–(94): swap J1 and J2.transposeH: PDF pp.9–10, (97)–(103): partial transpose H.transposeHJ1: PDF pp.9–10, (104)–(110): partial transpose H,J1.HasMixedSecondBobFactor: PDF p.9, (95), or p.14, (192)–(193): decouple J2 by partial trace.reducedP: PDF p.9, (96), and p.14, (194): P, not a free variable.reducedQ: PDF p.15, (195): Q, which cannot be eliminated for correction.ReducedCommon: PDF pp.9,14: CP and permutation covariance constraints, common to both SDPs.reducedL: PDF p.10, (111)–(113), or p.15, (210)–(212): the constructed L operators.reducedG: PDF p.9, (100)–(103), or p.15, (199)–(202): the constructed G operators.reducedE: PDF p.10, (107)–(110), or p.15, (206)–(209): the constructed E operators.ReducedPPT: PDF pp.9–10, (97)–(106), or pp.14–15, (196)–(205). The plus sign in (104)/(203) follows p.9,p.15 and (C268)-(C269) p.37; the frozen PLAN summary mistakenly places a minus there. The minus in (105)/(204) is retained. At d=2 the minus sector is zero and BOTH d-2 denominator constraints are absent. SOURCE CORRECTION: Appendix C8 p.38 says remove (97); pp.10 and the preceding sector calculation require removing (98). The present definition follows p.10.ReducedNS: PDF p.15, (213)–(217): NS on the extension transported to the reduced variables. At d=2 (214) is removed. The factors 1/2 in (215),(216) are retained.ReducedTeleportFeasible: PDF p.9, (90)–(106), and Remark 5 p.10: teleportation reduced feasible set.ReducedCorrectionFeasible: PDF pp.14–15, (187)–(217), Remarks 11–12: correction reduced feasible set. Dropping extra NS leaves both P and Q marginal constraints in place.reducedObjective: PDF p.9, (90), and p.14, (187): Re Tr[(T^T tensor I) P]/dim J.reducedTeleportBound: PDF p.9, (90), including every constraint of the selected relaxation.reducedCorrectionBound: PDF p.14, (187), including every constraint of the selected relaxation.transposeJ: PDF p.16, (220),(223): transpose only the Bob register.pptTeleportBound: PDF p.16, (220): the PPT-only teleportation program.pptCorrectionBound: PDF pp.16–17, (223): PPT correction program, with exactly one optional NS equality.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P32
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
/-! Holdsworth–Singh–Wilde, arXiv:2207.06931v4. Computational bases are fixed.
Choi operators are unnormalized and input first. Loewner inequalities are expressed
by `PosSemidef` of differences. Paper-local definitions implement only this paper. The accepted matrix and
Choi primitives are imported from the pinned library; no accepted theorem is assumed. -/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
attribute [local instance] Classical.decEq Classical.propDecidable
namespace QAlgorithms.Papers.Independent.Extend50.P02
open QAlgorithms.Papers.Independent.Information100.P32 (Op)
open QAlgorithms.Papers.Independent.Information100.P34 (choi fromChoi)
variable {A B C D H J : Type*}
variable [Fintype A] [Fintype B] [Fintype C] [Fintype D] [Fintype H] [Fintype J]
/-- PDF p.4: completely positive maps, in finite Kraus form. -/
def HasFiniteKraus (E : Superop A B) : Prop :=
∃ m : ℕ, ∃ K : Fin m → Matrix B A ℂ, ∀ X, E X = krausApply K X
/-- PDF p.4: tensor product on arbitrary, possibly entangled, operators. -/
def tensorSuperopAction (E : Superop A C) (F : Superop B D) : Superop (A × B) (C × D) :=
fun X p q => ∑ a, ∑ a', ∑ b, ∑ b',
X (a,b) (a',b') * E (Matrix.single a a' 1) p.1 q.1 *
F (Matrix.single b b' 1) p.2 q.2
/-- PDF p.4, (7): Alice's instrument and Bob's conditional channels. -/
def IsAliceToBobLOCC (P : Superop (A × B) (C × D)) : Prop :=
∃ m : ℕ, ∃ E : Fin m → Superop A C, ∃ F : Fin m → Superop B D,
(∀ y, HasFiniteKraus (E y)) ∧ IsChannel (fun X => ∑ y, E y X) ∧
(∀ y, IsChannel (F y)) ∧ ∀ X, P X = ∑ y, tensorSuperopAction (E y) (F y) X
/-- PDF p.4, (8), and p.11, (128): local CPTP maps with common randomness. -/
def IsLOCR (P : Superop (A × B) (C × D)) : Prop :=
∃ m : ℕ, ∃ p : Fin m → ℝ, ∃ E : Fin m → Superop A C,
∃ F : Fin m → Superop B D,
(∀ y, 0 ≤ p y) ∧ (∑ y, p y) = 1 ∧
(∀ y, IsChannel (E y) ∧ IsChannel (F y)) ∧
∀ X, P X = ∑ y, (p y : ℂ) • tensorSuperopAction (E y) (F y) X
/-- PDF pp.6–7, (43)–(48): half the stabilized trace distance.
For channels the input-sized reference and density matrices suffice. -/
def stabilizedHalfTraceDistance [Nonempty A] (N M : Superop A B) : ℝ :=
sSup {v | ∃ rho : Op (A × A), IsDensityMatrix rho ∧
v = traceNorm (idTensorSuperop N rho - idTensorSuperop M rho) / 2}
/-- PDF p.7, (50)–(52): worst-case squared Uhlmann fidelity on normalized
reference-assisted inputs. -/
def worstCaseSquaredFidelity [Nonempty A] (N M : Superop A B) : ℝ :=
sInf {v | ∃ rho : Op (A × A), IsDensityMatrix rho ∧
v = rootFidelity (idTensorSuperop N rho) (idTensorSuperop M rho) ^ 2}
/-- PDF pp.7,13: the two error criteria. -/
inductive Criterion where
| diamond
| infidelity
deriving DecidableEq
/-- PDF pp.7,13, (60),(62),(168),(170). -/
def simulationErrorFor [Nonempty A] (c : Criterion) (N M : Superop A B) : ℝ :=
match c with
| .diamond => stabilizedHalfTraceDistance N M
| .infidelity => 1 - worstCaseSquaredFidelity N M
/-- PDF pp.7,13: optimize over a specified physical simulation class.
In all theorem uses this set is nonempty and its errors belong to [0,1]. -/
def infimumSimulationError [Nonempty A] (c : Criterion) (N : Superop A B)
(S : Set (Superop A B)) : ℝ := sInf {v | ∃ M ∈ S, v = simulationErrorFor c N M}
/-- PDF pp.4–5: index order (Alice input,Bob input;Alice output,Bob output). -/
abbrev BiOp (A B C D : Type*) := Op ((A × B) × (C × D))
/-- PDF p.5, (14)–(17): two Bob inputs and two Bob outputs. -/
abbrev ExtOp (A B C D : Type*) := BiOp A (B × B) C (D × D)
/-- PDF p.5, (14): simultaneous Bob input/output swap. -/
def swapExtension (M : ExtOp A B C D) : ExtOp A B C D :=
fun p q => M ((p.1.1,(p.1.2.2,p.1.2.1)),(p.2.1,(p.2.2.2,p.2.2.1)))
((q.1.1,(q.1.2.2,q.1.2.1)),(q.2.1,(q.2.2.2,q.2.2.1)))
/-- PDF p.9, (87), and p.14, (185): maximally-mixed-input marginal.
This is a computed partial trace, never an independent matrix variable. -/
def averagedBobExtensionMarginal (M : ExtOp A B C D) : BiOp A B C D :=
fun p q => (Fintype.card B : ℂ)⁻¹ * ∑ b, ∑ d,
M ((p.1.1,(p.1.2,b)),(p.2.1,(p.2.2,d)))
((q.1.1,(q.1.2,b)),(q.2.1,(q.2.2,d)))
/-- PDF p.5, (33): transpose second Bob input and output. -/
def transposeBob2 (M : ExtOp A B C D) : ExtOp A B C D :=
fun p q => M ((p.1.1,(p.1.2.1,q.1.2.2)),(p.2.1,(p.2.2.1,q.2.2.2)))
((q.1.1,(q.1.2.1,p.1.2.2)),(q.2.1,(q.2.2.1,p.2.2.2)))
/-- PDF p.5, (34): transpose Alice's input and output. -/
def transposeAlice (M : ExtOp A B C D) : ExtOp A B C D :=
fun p q => M ((q.1.1,p.1.2),(q.2.1,p.2.2)) ((p.1.1,q.1.2),(p.2.1,q.2.2))
/-- PDF p.5, (14)–(17): PSD, TP, covariance, and exact marginal extension. -/
def IsSymmetricBobChannelExtension (W : BiOp A B C D) (M : ExtOp A B C D) : Prop :=
M.PosSemidef ∧ traceRight M = 1 ∧ swapExtension M = M ∧
∀ a a' b b' e e' c c' d d',
(∑ f, M ((a,(b,e)),(c,(d,f))) ((a',(b',e')),(c',(d',f)))) =
W ((a,b),(c,d)) ((a',b'),(c',d')) * (if e = e' then 1 else 0)
/-- PDF p.12, (146): extra non-signaling from Alice to both Bobs, on the extension. -/
def ExtensionNS (M : ExtOp A B C D) : Prop :=
∀ a a' b b' e e' d d' f f',
(∑ c, M ((a,(b,e)),(c,(d,f))) ((a',(b',e')),(c,(d',f')))) =
(if a = a' then 1 else 0) * (Fintype.card A : ℂ)⁻¹ *
∑ a0, ∑ c, M ((a0,(b,e)),(c,(d,f))) ((a0,(b',e')),(c,(d',f')))
/-- PDF pp.5,12: two-extendibility, with optional PPT and extra NS constraints. -/
def HasExtension (ppt ns : Bool) (W : BiOp A B C D) : Prop :=
∃ M : ExtOp A B C D, IsSymmetricBobChannelExtension W M ∧
(ppt = true → (transposeAlice M).PosSemidef ∧ (transposeBob2 M).PosSemidef) ∧
(ns = true → ExtensionNS M)
/-- PDF p.5, (18): Choi form of the Bob-to-Alice non-signaling equation (12). -/
def BobToAliceNS (W : BiOp A B C D) : Prop :=
∀ a a' b b' c c',
(∑ d, W ((a,b),(c,d)) ((a',b'),(c',d))) =
(if b = b' then 1 else 0) * (Fintype.card B : ℂ)⁻¹ *
∑ b0, ∑ d, W ((a,b0),(c,d)) ((a',b0),(c',d))
/-- PDF p.6, (42): append the fixed resource state. -/
def appendResourceAndApply (rho : Op (H × J)) (L : Superop ((A × H) × J) B) : Superop A B :=
fun X => L (fun p q => X p.1.1 q.1.1 * rho (p.1.2,p.2) (q.1.2,q.2))
/-- PDF p.6: trivial Alice output displayed for bipartite notation. -/
def teleportBipartite (L : Superop ((A × H) × J) B) :
Superop ((A × H) × J) (Unit × B) := fun X p q => L X p.2 q.2
/-- PDF pp.7–9: none = one-way LOCC; some false = two-extendible;
some true = two-PPT-extendible. Protocols are fixed before the input. -/
def teleportSet (kind : Option Bool) (rho : Op (H × J)) : Set (Superop A B) :=
{S | ∃ L : Superop ((A × H) × J) B, IsChannel L ∧
(match kind with
| none => IsAliceToBobLOCC (teleportBipartite L)
| some ppt => HasExtension ppt false (choi (teleportBipartite L))) ∧
S = appendResourceAndApply rho L}
/-- PDF pp.7–9, (61),(63),(72),(88). -/
def teleportError [Nonempty A] (c : Criterion) (kind : Option Bool)
(N : Superop A B) (rho : Op (H × J)) : ℝ := infimumSimulationError c N (teleportSet kind rho)
/-- PDF p.11, (122): component form of the fully-transposed Choi link. -/
def wireChoi (N : Superop H J) (W : BiOp A J H B) : Op (A × B) :=
fun p q => ∑ h, ∑ h', ∑ j, ∑ j',
choi N (h,j) (h',j') * W ((p.1,j),(h,p.2)) ((q.1,j'),(h',q.2))
/-- PDF p.11, (122): physical superchannel output reconstructed from its Choi. -/
def wire (N : Superop H J) (P : Superop (A × J) (H × B)) : Superop A B :=
fromChoi (wireChoi N (choi P))
/-- PDF pp.12–14: distinct assisted and unassisted classes. -/
inductive CorrectionClass where
| product
| locr
| oneWay
| extendible (ppt ns : Bool)
/-- PDF pp.11–14: product = one encoder and one decoder; LOCR allows
shared randomness; the extra NS condition is required only when ns=true. -/
def AllowedCorrection (kind : CorrectionClass) (P : Superop (A × J) (H × B)) : Prop :=
IsChannel P ∧ match kind with
| .product => ∃ E : Superop A H, ∃ F : Superop J B,
IsChannel E ∧ IsChannel F ∧ P = tensorSuperopAction E F
| .locr => IsLOCR P
| .oneWay => IsAliceToBobLOCC P
| .extendible ppt ns => HasExtension ppt ns (choi P)
/-- PDF pp.12–14, (148),(150),(155),(157),(169),(171),(172),(218). -/
def correctionError [Nonempty A] (c : Criterion) (kind : CorrectionClass)
(O : Superop A B) (N : Superop H J) : ℝ :=
infimumSimulationError c O {S | ∃ P, AllowedCorrection kind P ∧ S = wire N P}
/-- PDF p.8, (69): the nonidentity Weyl average, using the full Weyl
sum identity d Tr(X) I. Used only when card A >= 2. -/
def nonidentityWeylAverage (X : Op A) : Op A :=
((Fintype.card A : ℂ)^2 - 1)⁻¹ • ((Fintype.card A : ℂ) • (X.trace • 1) - X)
/-- PDF p.13, (165): normalized Phi, with reference identity explicit. -/
def entFidelity [Nonempty A] (S : Superop A A) : ℝ :=
effectProb (pureDensity (finiteMaxEntangled A))
(idTensorSuperop S (pureDensity (finiteMaxEntangled A)))
/-- PDF p.8, (68): the identity/nonidentityWeylAverage map controlled by K and L. -/
def isotropicTeleport (K L : Op (H × J)) : Superop ((A × H) × J) A :=
fun X =>
(show Op A from fun a a' => ∑ h, ∑ j, ∑ h', ∑ j',
K (h,j) (h',j') * X ((a,h'),j') ((a',h),j)) +
nonidentityWeylAverage (fun a a' => ∑ h, ∑ j, ∑ h', ∑ j',
L (h,j) (h',j') * X ((a,h'),j') ((a',h),j))
/-- PDF p.8, (70): POVM/conditional-decoder representation of K. -/
def HasDecoderEffect (K : Op (H × J)) (A : Type*) [Fintype A] : Prop :=
∃ m : ℕ, ∃ V : Fin m → Op (A × H), ∃ F : Fin m → Superop J A,
(∀ y, (V y).PosSemidef) ∧ (∑ y, V y) = 1 ∧ (∀ y, IsChannel (F y)) ∧
K = fun p q => (Fintype.card A : ℂ)⁻¹ ^ 2 * ∑ y, ∑ b, ∑ b',
V y (b,p.1) (b',q.1) * choi (F y) (p.2,b) (q.2,b')
/-- PDF p.8, (67)–(68): full variational objective including one-way implementability. -/
def teleportOneWaySuccess (rho : Op (H × J)) (A : Type*) [Fintype A] : ℝ :=
sSup {v | ∃ K L : Op (H × J), K.PosSemidef ∧ L.PosSemidef ∧ K + L = 1 ∧
IsAliceToBobLOCC (teleportBipartite (isotropicTeleport (A := A) K L)) ∧ v = effectProb K rho}
/-- PDF p.9, (81): contract the transposed resource against the marginal.
The component formula includes the transpose through the contracted index order. -/
def contractResource (T : Op (H × J)) (W : BiOp (A × H) J Unit B) : Op (A × B) :=
fun p q => ∑ h, ∑ h', ∑ j, ∑ j', T (h,j) (h',j') *
W (((p.1,h),j),((),p.2)) (((q.1,h'),j'),((),q.2))
/-- PDF p.9, (79)–(86): unreduced teleportation SDP. -/
def TeleportSDP (N : Superop A B) (rho : Op (H × J)) (mu : ℝ)
(Z : Op (A × B)) (M : ExtOp (A × H) J Unit B) : Prop :=
0 ≤ mu ∧ Z.PosSemidef ∧ (((mu : ℂ) • (1 : Op A)) - traceRight Z).PosSemidef ∧
(Z - choi N + contractResource rho (averagedBobExtensionMarginal M)).PosSemidef ∧
IsSymmetricBobChannelExtension (averagedBobExtensionMarginal M) M ∧
(transposeAlice M).PosSemidef ∧ (transposeBob2 M).PosSemidef
/-- PDF p.14, (175)–(183): unreduced correction SDP; TP traces H,B1,B2. -/
def CorrectionSDP (O : Superop A B) (N : Superop H J) (mu : ℝ)
(Z : Op (A × B)) (M : ExtOp A J H B) : Prop :=
0 ≤ mu ∧ Z.PosSemidef ∧ (((mu : ℂ) • (1 : Op A)) - traceRight Z).PosSemidef ∧
(Z - choi O + wireChoi N (averagedBobExtensionMarginal M)).PosSemidef ∧
IsSymmetricBobChannelExtension (averagedBobExtensionMarginal M) M ∧
(transposeAlice M).PosSemidef ∧ (transposeBob2 M).PosSemidef ∧ ExtensionNS M
/-- PDF pp.9–10,14–15: the six reduced operator variables on H,J1,J2. -/
structure TwoBobCoefficients (H J : Type*) where
plus : Op (H × (J × J))
minus : Op (H × (J × J))
zero : Op (H × (J × J))
one : Op (H × (J × J))
two : Op (H × (J × J))
three : Op (H × (J × J))
/-- Real scalar multiplication of an operator; all denominators below are real. -/
def realOperatorScale {I : Type*} (r : ℝ) (X : Op I) : Op I := (r : ℂ) • X
/-- PDF p.9, (91): the two-by-two block test, with the printed i signs. -/
def twoByTwoPauliOperator {I : Type*} (z x y w : Op I) : Op (I ⊕ I) :=
Matrix.fromBlocks (z + w) (x - Complex.I • y) (x + Complex.I • y) (z - w)
/-- PDF p.9, (93)–(94): swap J1 and J2. -/
def swapReduced (X : Op (H × (J × J))) : Op (H × (J × J)) :=
fun p q => X (p.1,(p.2.2,p.2.1)) (q.1,(q.2.2,q.2.1))
/-- PDF pp.9–10, (97)–(103): partial transpose H. -/
def transposeH (X : Op (H × (J × J))) : Op (H × (J × J)) :=
fun p q => X (q.1,p.2) (p.1,q.2)
/-- PDF pp.9–10, (104)–(110): partial transpose H,J1. -/
def transposeHJ1 (X : Op (H × (J × J))) : Op (H × (J × J)) :=
fun p q => X (q.1,(q.2.1,p.2.2)) (p.1,(p.2.1,q.2.2))
/-- PDF p.9, (95), or p.14, (192)–(193): decouple J2 by partial trace. -/
def HasMixedSecondBobFactor (X : Op (H × (J × J))) : Prop :=
∀ h h' j j' k k', X (h,(j,k)) (h',(j',k')) =
(Fintype.card J : ℂ)⁻¹ * (∑ t, X (h,(j,t)) (h',(j',t))) *
(if k = k' then 1 else 0)
/-- PDF p.9, (96), and p.14, (194): P, not a free variable. -/
def reducedP (d : ℕ) (M : TwoBobCoefficients H J) : Op (H × (J × J)) :=
realOperatorScale (1 / (2 * (d : ℝ)))
(realOperatorScale d M.zero + M.one + realOperatorScale (Real.sqrt ((d : ℝ)^2 - 1)) M.two)
/-- PDF p.15, (195): Q, which cannot be eliminated for correction. -/
def reducedQ (d : ℕ) (M : TwoBobCoefficients H J) : Op (H × (J × J)) :=
realOperatorScale (1 / (2 * (d : ℝ)))
(realOperatorScale (2*d) (M.plus + M.minus) + realOperatorScale d M.zero - M.one -
realOperatorScale (Real.sqrt ((d : ℝ)^2 - 1)) M.two)
/-- PDF pp.9,14: CP and permutation covariance constraints, common to both SDPs. -/
def ReducedCommon (M : TwoBobCoefficients H J) : Prop :=
M.plus.PosSemidef ∧ M.minus.PosSemidef ∧ M.zero.PosSemidef ∧
(twoByTwoPauliOperator M.zero M.one M.two M.three).PosSemidef ∧
swapReduced M.plus = M.plus ∧ swapReduced M.minus = M.minus ∧
swapReduced M.zero = M.zero ∧ swapReduced M.one = M.one ∧
swapReduced M.two = -M.two ∧ swapReduced M.three = -M.three
/-- PDF p.10, (111)–(113), or p.15, (210)–(212): the constructed L operators. -/
def reducedL (d : ℕ) (M : TwoBobCoefficients H J) : Fin 3 → Op (H × (J × J)) :=
![realOperatorScale ((d : ℝ)^2 - 2) M.zero + realOperatorScale d M.one +
realOperatorScale ((d : ℝ) * Real.sqrt ((d : ℝ)^2 - 1)) M.two,
realOperatorScale d M.zero + realOperatorScale (2*(d : ℝ)^2 - 3) M.one -
realOperatorScale (Real.sqrt ((d : ℝ)^2 - 1)) M.two,
M.one - realOperatorScale d M.zero - realOperatorScale (Real.sqrt ((d : ℝ)^2 - 1)) M.two]
/-- PDF p.9, (100)–(103), or p.15, (199)–(202): the constructed G operators. -/
def reducedG (d : ℕ) (M : TwoBobCoefficients H J) : Fin 4 → Op (H × (J × J)) :=
![transposeH (M.plus + M.minus + realOperatorScale (1/2) (M.zero - realOperatorScale d M.one)),
transposeH (M.plus - M.minus + realOperatorScale (1/2) (M.one - realOperatorScale d M.zero)),
realOperatorScale (Real.sqrt (3*((d : ℝ)^2 - 1))/2) (transposeH M.two),
realOperatorScale (Real.sqrt (3*((d : ℝ)^2 - 1))/2) (transposeH M.three)]
/-- PDF p.10, (107)–(110), or p.15, (206)–(209): the constructed E operators. -/
def reducedE (d : ℕ) (M : TwoBobCoefficients H J) : Fin 4 → Op (H × (J × J)) :=
let L := reducedL d M
![realOperatorScale (1/((d : ℝ)^2 - 1))
(transposeHJ1 (realOperatorScale d (M.plus - M.minus) + realOperatorScale (1/2) (L 0))),
realOperatorScale (1/((d : ℝ)^2 - 1))
(transposeHJ1 (-M.plus + M.minus + realOperatorScale (1/2) (L 1))),
realOperatorScale (1/Real.sqrt ((d : ℝ)^2 - 1))
(transposeHJ1 (M.plus - M.minus + realOperatorScale (1/2) (L 2))),
transposeHJ1 M.three]
/-- PDF pp.9–10, (97)–(106), or pp.14–15, (196)–(205).
The plus sign in (104)/(203) follows p.9,p.15 and (C268)-(C269) p.37;
the frozen PLAN summary mistakenly places a minus there. The minus in (105)/(204) is retained.
At d=2 the minus sector is zero and BOTH d-2 denominator constraints are absent.
SOURCE CORRECTION: Appendix C8 p.38 says remove (97); pp.10 and the preceding
sector calculation require removing (98). The present definition follows p.10. -/
def ReducedPPT (d : ℕ) (M : TwoBobCoefficients H J) : Prop :=
(transposeH (realOperatorScale (2/((d : ℝ)+2)) M.plus + M.zero + M.one)).PosSemidef ∧
(if d = 2 then M.minus = 0 else
(transposeH (realOperatorScale (2/((d : ℝ)-2)) M.minus + M.one - M.zero)).PosSemidef ∧
(transposeHJ1 (M.plus + realOperatorScale ((d : ℝ)/((d : ℝ)-2)) M.minus -
realOperatorScale (1/2) (realOperatorScale d M.zero - M.one -
realOperatorScale (Real.sqrt ((d : ℝ)^2-1)) M.two))).PosSemidef) ∧
(twoByTwoPauliOperator (reducedG d M 0) (reducedG d M 1)
(reducedG d M 2) (reducedG d M 3)).PosSemidef ∧
(transposeHJ1 (realOperatorScale ((d : ℝ)/((d : ℝ)+2)) M.plus + M.minus +
realOperatorScale (1/2) (realOperatorScale d M.zero - M.one -
realOperatorScale (Real.sqrt ((d : ℝ)^2-1)) M.two))).PosSemidef ∧
(twoByTwoPauliOperator (reducedE d M 0) (reducedE d M 1)
(reducedE d M 2) (reducedE d M 3)).PosSemidef
/-- PDF p.15, (213)–(217): NS on the extension transported to the reduced variables.
At d=2 (214) is removed. The factors 1/2 in (215),(216) are retained. -/
def ReducedNS (d : ℕ) (M : TwoBobCoefficients H J) : Prop :=
realOperatorScale (1/(((d : ℝ)+2)*((d : ℝ)-1))) (traceLeft (realOperatorScale 2 M.plus)) =
realOperatorScale (1/((d : ℝ)*((d : ℝ)+1))) (traceLeft (realOperatorScale 2 M.plus + M.zero + M.one)) ∧
(d ≠ 2 →
realOperatorScale (1/(((d : ℝ)-2)*((d : ℝ)+1))) (traceLeft (realOperatorScale 2 M.minus)) =
realOperatorScale (1/((d : ℝ)*((d : ℝ)-1))) (traceLeft (realOperatorScale 2 M.minus + M.zero - M.one))) ∧
realOperatorScale (1/2) (traceLeft M.zero) =
realOperatorScale (1/((d : ℝ)*((d : ℝ)^2-1)))
(realOperatorScale d (1 : Op (J × J)) + traceLeft (M.minus - M.plus - M.one)) ∧
realOperatorScale (1/2) (traceLeft M.one) =
realOperatorScale (1/((d : ℝ)*((d : ℝ)^2-1)))
(-(1 : Op (J × J)) + realOperatorScale d (traceLeft (M.plus - M.minus + M.one))) ∧
traceLeft M.two = 0 ∧ traceLeft M.three = 0
/-- PDF p.9, (90)–(106), and Remark 5 p.10: teleportation reduced feasible set. -/
def ReducedTeleportFeasible (ppt : Bool) (d : ℕ) (M : TwoBobCoefficients H J) : Prop :=
ReducedCommon M ∧ M.plus + M.minus + M.zero = 1 ∧
HasMixedSecondBobFactor (reducedP d M) ∧ (d = 2 → M.minus = 0) ∧
(ppt = true → ReducedPPT d M)
/-- PDF pp.14–15, (187)–(217), Remarks 11–12: correction reduced feasible set.
Dropping extra NS leaves both P and Q marginal constraints in place. -/
def ReducedCorrectionFeasible (ppt ns : Bool) (d : ℕ) (M : TwoBobCoefficients H J) : Prop :=
ReducedCommon M ∧ traceLeft (M.plus + M.minus + M.zero) = 1 ∧
HasMixedSecondBobFactor (reducedP d M) ∧ HasMixedSecondBobFactor (reducedQ d M) ∧
(d = 2 → M.minus = 0) ∧ (ppt = true → ReducedPPT d M) ∧
(ns = true → ReducedNS d M)
/-- PDF p.9, (90), and p.14, (187): Re Tr[(T^T tensor I) P]/dim J. -/
def reducedObjective (T : Op (H × J)) (P : Op (H × (J × J))) : ℝ :=
(∑ h, ∑ h', ∑ j, ∑ j', ∑ k,
T (h,j) (h',j') * P (h,(j,k)) (h',(j',k))).re / Fintype.card J
/-- PDF p.9, (90), including every constraint of the selected relaxation. -/
def reducedTeleportBound (ppt : Bool) (d : ℕ) (rho : Op (H × J)) : ℝ :=
1 - sSup {v | ∃ M : TwoBobCoefficients H J, ReducedTeleportFeasible ppt d M ∧
v = reducedObjective rho (reducedP d M)}
/-- PDF p.14, (187), including every constraint of the selected relaxation. -/
def reducedCorrectionBound (ppt ns : Bool) (d : ℕ) (N : Superop H J) : ℝ :=
1 - sSup {v | ∃ M : TwoBobCoefficients H J, ReducedCorrectionFeasible ppt ns d M ∧
v = reducedObjective (choi N) (reducedP d M)}
/-- PDF p.16, (220),(223): transpose only the Bob register. -/
def transposeJ (X : Op (H × J)) : Op (H × J) :=
fun p q => X (p.1,q.2) (q.1,p.2)
/-- PDF p.16, (220): the PPT-only teleportation program. -/
def pptTeleportBound (d : ℕ) (rho : Op (H × J)) : ℝ :=
1 - sSup {v | ∃ K : Op (H × J), K.PosSemidef ∧ (1-K).PosSemidef ∧
(1 + realOperatorScale d (transposeJ K)).PosSemidef ∧
(1 - realOperatorScale d (transposeJ K)).PosSemidef ∧ v = effectProb K rho}
/-- PDF pp.16–17, (223): PPT correction program, with exactly one optional NS equality. -/
def pptCorrectionBound (ns : Bool) (d : ℕ) (N : Superop H J) : ℝ :=
1 - sSup {v | ∃ K : Op (H × J), ∃ sigma : Op H,
K.PosSemidef ∧ IsDensityMatrix sigma ∧
(Matrix.kronecker sigma (1 : Op J) - K).PosSemidef ∧
(ns = true → realOperatorScale ((d : ℝ)^2) (traceLeft K) = 1) ∧
(Matrix.kronecker sigma (1 : Op J) + realOperatorScale d (transposeJ K)).PosSemidef ∧
(Matrix.kronecker sigma (1 : Op J) - realOperatorScale d (transposeJ K)).PosSemidef ∧
v = effectProb K (choi N)}
/-! Sanity examples for the local definitions. These are normalization and register
checks, not proofs of the paper's results. -/
example : choi (id : Superop Unit Unit) ((),()) ((),()) = 1 := by
simp [choi, Matrix.single]
example : averagedBobExtensionMarginal (1 : ExtOp Unit Unit Unit Unit) = 1 := by
ext p q
simp [averagedBobExtensionMarginal, Matrix.one_apply]
exact Subsingleton.elim _ _
example (M : ExtOp A B C D) : transposeAlice (transposeAlice M) = M := by
ext p q
rfl
example (M : ExtOp A B C D) : transposeBob2 (transposeBob2 M) = M := by
ext p q
rfl
example (M : ExtOp A B C D) : swapExtension (swapExtension M) = M := by
ext p q
rfl
example (X : Op (H × (J × J))) : transposeHJ1 (transposeHJ1 X) = X := by
ext p q
rfl
example (X : Op (H × J)) : transposeJ (transposeJ X) = X := by
ext p q
rfl
example : nonidentityWeylAverage (1 : Op (Fin 2)) = (1 : Op (Fin 2)) := by
ext i j
simp [nonidentityWeylAverage, Matrix.one_apply, Matrix.trace] <;> split_ifs <;> norm_num
example : entFidelity (id : Superop Unit Unit) = 1 := by
simp [entFidelity, finiteMaxEntangled, effectProb, pureDensity, idTensorSuperop,
Matrix.mul_apply, Matrix.trace]
end QAlgorithms.Papers.Independent.Extend50.P02
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P02.AllowedCorrection
For finite register types , with decidable equality, a correction class , and a map from matrices on to matrices on , this predicate first requires to be a channel: there must be finitely many matrices such that for every matrix , with . It additionally requires the following condition selected by . For , there exist channels and such that , where
For , there exist , nonnegative real numbers summing to , and channels , , indexed by , such that for every . For , there exist , maps each admitting a finite Kraus representation without an individual normalization requirement, and channels , such that is a channel and for every . For , put
There must exist a matrix on that is positive semidefinite, whose partial trace over is , that is unchanged by simultaneously exchanging and , and that satisfies , with factors placed in their corresponding register positions. If is true, the partial transposes of on together and on together must both be positive semidefinite. If is true, it must also satisfy
again with factors in their corresponding positions. Partial traces here sum over matching row and column indices of the traced registers. Finite Kraus families may have size zero; register types may be empty, and scalar inverses of zero are defined to be zero.
QAlgorithms.Papers.Independent.Extend50.P02.BiOp
For any four types , this is an abbreviation for the type of complex matrices whose rows and columns are both indexed by ; equivalently, its elements assign a complex entry to each ordered pair of indices . No finiteness or nonemptiness assumption is imposed.
QAlgorithms.Papers.Independent.Extend50.P02.BobToAliceNS
For index types , with and finite and equality on decidable, let be any complex matrix indexed by . The predicate holds exactly when, for every , , and ,
Here the inverse is in , and is for equal indices and otherwise. The predicate itself imposes no positivity or normalization. Empty types are allowed, with empty sums zero, , and universal conditions over empty index ranges vacuous.
QAlgorithms.Papers.Independent.Extend50.P02.CorrectionClass
This defines a type with three distinct parameter-free choices, called , , and , together with choices indexed by two independent Boolean values and . Thus the type has seven distinct values. The declaration itself imposes no mathematical conditions on any choice.
QAlgorithms.Papers.Independent.Extend50.P02.CorrectionSDP
For finite register types , with decidable equality, arbitrary maps and between their complex matrix spaces, a real number , a complex matrix on , and a complex matrix on , this predicate requires the following conjunction. Label repeated registers by , and define
and
Writing , the scalar and matrix inequalities are
Furthermore, , , is invariant under simultaneously exchanging and , and , with factors in their corresponding register positions. Both the partial transpose on together and that on together must be positive semidefinite. Finally, the exact identity
must hold, with the right-hand side reordered to the same register positions as the left-hand side. Partial traces mean sums over matching row and column indices. No channel assumptions on are included. Register types may be empty, and the displayed scalar inverses equal zero when their denominators are zero.
QAlgorithms.Papers.Independent.Extend50.P02.Criterion
This defines a type with exactly two distinct values, named and , and equips it with decidable equality.
QAlgorithms.Papers.Independent.Extend50.P02.ExtOp
For any four types , this is an abbreviation for the type of complex matrices whose rows and columns are both indexed by
Thus each row or column specifies one -index, two -indices, one -index, and two -indices. No finiteness or nonemptiness assumption is imposed.
QAlgorithms.Papers.Independent.Extend50.P02.ExtensionNS
For index types , with and finite and equality on decidable, let be any complex matrix indexed by . The predicate holds exactly when, for every , , and ,
The inverse of is taken in , and is if and otherwise. No positivity, trace normalization, or symmetry is required. Empty types are allowed; empty sums are zero, , and universally quantified conditions with no possible indices are vacuous.
QAlgorithms.Papers.Independent.Extend50.P02.HasDecoderEffect
For finite register types , with decidable equality as required, a complex matrix on , and any finite type , this predicate asserts the existence of a natural number , matrices on , and maps from matrices on to matrices on , indexed by , such that every is positive semidefinite, , and every is a channel, meaning that it has a finite representation with . These data must satisfy, for all and ,
The scalar is computed in , with . Neither nor is required to be positive; in particular, if is empty, the displayed expression is zero and the predicate requires .
QAlgorithms.Papers.Independent.Extend50.P02.HasExtension
For finite index types , with decidable equality as needed, Boolean flags , and any complex matrix indexed by , the predicate asserts the existence of a complex matrix indexed by satisfying the following conditions. Write its entries as . The matrix is positive semidefinite and obeys
and
for every choice of the displayed free indices. If is true, both matrices with entries
must also be positive semidefinite. If is true, then additionally
for all remaining indices. A false flag imposes no corresponding additional condition. All sums range over their named index types; empty sums are zero and . No nonemptiness is assumed, although the normalization equation is impossible when its input index type is nonempty and its output index type is empty.
QAlgorithms.Papers.Independent.Extend50.P02.HasFiniteKraus
For a finite index type , an index type , and a function , this predicate means that there exist a natural number and matrices such that, for every complex matrix indexed by ,
Here denotes conjugate transpose. No normalization condition on the is imposed. The case is allowed and represents the zero function.
QAlgorithms.Papers.Independent.Extend50.P02.HasMixedSecondBobFactor
For an index type , a finite index type with decidable equality, and a complex square matrix indexed by , this predicate requires that, for every and ,
The scalar is interpreted in . No positivity, Hermitian, or trace condition is required. If either or is empty, the universally quantified condition is vacuous; in particular, the inverse of is defined to be zero.
QAlgorithms.Papers.Independent.Extend50.P02.IsAliceToBobLOCC
For finite index types , with decidable equality on , and a function , this predicate means that there exist and functions , , for , with the following properties: each has a finite representation , without a normalization requirement on that individual representation; the function is a channel; each is a channel; and, for every ,
Here is a matrix unit, and a channel from an input type to an output type means a function admitting finitely many matrices such that and for every matrix . All equalities concern arbitrary matrices. The case is included; it makes zero and requires the zero function from to to be a channel, which forces to be empty.
QAlgorithms.Papers.Independent.Extend50.P02.IsLOCR
For finite index types , with decidable equality on , and a function from matrices indexed by to matrices indexed by , this predicate means that there exist , real numbers with , and channels and , such that, for every complex matrix ,
Here is a matrix unit, and saying that is a channel means that there are finitely many matrices satisfying and for every . Zero probabilities are allowed. The case cannot satisfy the probability normalization.
QAlgorithms.Papers.Independent.Extend50.P02.IsSymmetricBobChannelExtension
For finite index types , with decidable equality for the identities involved, let be a complex matrix indexed by , and let be a complex matrix indexed by . The predicate holds exactly when is positive semidefinite; its partial trace over is the identity on , meaning
it is invariant under simultaneously exchanging the two coordinates and the two coordinates, meaning
and, for every , , , and ,
Here each is when its indices agree and otherwise. No separate condition on is included. Empty types are permitted, with empty sums zero and quantifiers over empty ranges vacuous; the identity equation remains required, so an empty output index type with a nonempty input index type makes the predicate impossible.
QAlgorithms.Papers.Independent.Extend50.P02.ReducedCommon
For finite index types and a record of six complex square matrices indexed by , denote its fields by , respectively. This predicate requires to be positive semidefinite, requires the block matrix
to be positive semidefinite, and requires
where simultaneously exchanges the two -coordinates of both indices. There are no trace or normalization requirements. Empty index types are included.
QAlgorithms.Papers.Independent.Extend50.P02.ReducedCorrectionFeasible
For finite index types with decidable equality, Boolean flags , a natural number , and six complex square matrices on , this defines a conjunction as follows. Write , let swap the two indices in both row and column, and set
It requires
If is true, it also requires
where
If is true, it further requires, with ,
A false flag imposes none of its conditional requirements. Scalars use the complex embeddings of the indicated real numbers; zero denominators have inverse zero and negative real radicands have square root zero. No nonemptiness or restriction is assumed, and feasibility need not hold for any choice of matrices.
QAlgorithms.Papers.Independent.Extend50.P02.ReducedNS
For finite index types with decidable equality, a natural number , and six arbitrary complex square matrices on , let be the identity on and let
This defines the conjunction
Here denotes its real value in the fractions, and real scalars are embedded into . There are no positivity assumptions. The second equality is required only when ; all other equalities are required for every , including and , with division by zero interpreted as multiplication by zero. The index types may be empty, in which case the corresponding sums are empty sums.
QAlgorithms.Papers.Independent.Extend50.P02.ReducedPPT
For finite index types with decidable equality, a natural number , and six arbitrary complex square matrices on , this defines the following conjunction of matrix conditions. Interpret as real in scalar expressions, put , and define
Define four matrices and four matrices by
The required conditions, writing for positive semidefiniteness, are
At , the two inequalities in the branch are not required. No nonemptiness or lower bound on is assumed; all formulas use zero for an inverse of zero and for a real square root of a negative number.
QAlgorithms.Papers.Independent.Extend50.P02.ReducedTeleportFeasible
For finite index types with decidable equality, a Boolean flag , a natural number , and six complex square matrices on , this defines the following feasibility conditions. Set , define by swapping the two indices in both its row and column, and define
First, it requires
If is true, it additionally requires
where
When is false, this additional conjunction imposes no condition. All real scalars are embedded into ; and empty index types are included, inverses of zero are zero, and real square roots of negative numbers are zero. The definition does not assert that such matrices exist.
QAlgorithms.Papers.Independent.Extend50.P02.TeleportSDP
For finite register types , with decidable equality, an arbitrary map from matrices on to matrices on , a complex matrix on , a real number , a complex matrix on , and a complex matrix on , this predicate is the conjunction of the following conditions. Label the two copies of by , and define the matrix on by
Define on by
and define . The required conditions are
In addition, , its partial trace over must equal , it must be invariant under simultaneously exchanging and , and , with register factors placed in their corresponding positions. Its partial transpose on together and its partial transpose on together must both be positive semidefinite. Partial traces sum matching row and column indices. Neither nor is assumed to be a channel or density matrix, respectively; empty register types are included, with when is empty.
QAlgorithms.Papers.Independent.Extend50.P02.TwoBobCoefficients
For any types and , this structure consists of six complex square matrices indexed by , named , , , , , and . It imposes no equations, positivity conditions, Hermitian conditions, or normalization requirements on these matrices. Empty index types are permitted.
QAlgorithms.Papers.Independent.Extend50.P02.appendResourceAndApply
For arbitrary index types , any complex matrix indexed by , and any function from complex matrices indexed by to complex matrices indexed by , the definition returns the function on complex matrices indexed by given by , where
Thus the matrix supplied to has the entries of , arranged with index grouping . Neither nor is required to be positive or normalized, and is not required to be linear or a channel. No finiteness or nonemptiness condition is needed by this formula.
QAlgorithms.Papers.Independent.Extend50.P02.averagedBobExtensionMarginal
For index types , with and finite, let be any complex matrix indexed by . The definition returns the complex matrix indexed by whose entries are
Here is taken in . Thus the second and second coordinates are summed with equal row and column indices, and the result is divided by . No positivity, normalization, or symmetry of is assumed. Empty types are allowed: empty sums are zero, and the inverse of zero is defined to be zero.
QAlgorithms.Papers.Independent.Extend50.P02.contractResource
For finite register types , with the decidable equality required by the matrix operations, a complex matrix on , and a complex matrix on , this defines a matrix on whose entries are
Here is the sole element of . No positivity, normalization, or channel assumptions are imposed, and no conjugation or transposition of is performed in this formula. Empty summation registers give the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P02.correctionError
For finite register types , with decidable equality and nonempty, a criterion , a correction class , and arbitrary maps and between the respective matrix spaces, this defines the real infimum of the errors of the maps over the permitted corrections . Here a channel is a map with a finite Kraus family satisfying ; the permitted must be channels and satisfy the selected condition: a product of two channels for ; a finite convex combination of such products for ; a finite sum of products , where each has a finite Kraus representation, is a channel, and every is a channel, for ; or the following extension condition for . Writing , that condition requires a positive semidefinite matrix on with , invariant under simultaneous exchanges , , and satisfying ; when is true, its partial transposes on and on must be positive semidefinite, and when is true, . Tensor products of maps use the matrix-unit expansion, and the resulting simulated map is explicitly
For , the error of is
where the square-root trace is understood as its real part and . For , the error is
Both optimizations over use matrices on , and square roots mean the real square-root function applied through continuous functional calculus. No channel assumption is imposed on or . These are the real infima and suprema used by the definitions; an empty optimization set has value zero, and a real supremum of an unbounded-above set or infimum of an unbounded-below set also has value zero.
QAlgorithms.Papers.Independent.Extend50.P02.entFidelity
For a nonempty finite register type , with decidable equality, and any map from complex matrices on to complex matrices on , let , let have coordinates when and otherwise, and put . This defines the real number
Thus the extension applies separately to each block indexed by the first register. The map is not assumed to be linear or a channel, and no range restriction on the resulting real number is included.
QAlgorithms.Papers.Independent.Extend50.P02.infimumSimulationError
For finite index types with decidable equality, with nonempty, a criterion , an arbitrary function , and any set of such functions, this definition is , where
The matrices are indexed by , and . Square roots use total continuous functional calculus. No channel assumptions are imposed on or members of . The outer infimum is the real infimum operation: it equals when is empty or its error values are unbounded below, and it does not assert that a minimizing member exists.
QAlgorithms.Papers.Independent.Extend50.P02.isotropicTeleport
For finite register types , with the decidable equality required for their matrix operations, and arbitrary complex matrices on , this defines a map from matrices on to matrices on . For an input , define matrices and on by
The output is
There are no positivity or normalization assumptions on , and the definition does not itself require the resulting map to be a channel. Empty registers are included; sums over empty types vanish, and when the second summand is zero because division by zero is defined using .
QAlgorithms.Papers.Independent.Extend50.P02.nonidentityWeylAverage
For a finite register type and any complex matrix on , let . This defines the matrix
where the scalar arithmetic is in . No positivity, Hermiticity, trace, or channel condition is assumed. The definition includes and ; because the inverse of zero is zero, its value is the zero matrix when .
QAlgorithms.Papers.Independent.Extend50.P02.pptCorrectionBound
For finite index types with decidable equality, a Boolean , a natural number , and an arbitrary function from complex square matrices on to complex square matrices on , put
where has its sole nonzero entry at . This defines
where
Real scalars act through their complex embeddings. A false flag imposes no marginal equality; and empty registers are allowed. In particular, an empty makes the requirement impossible, and with a true flag makes the marginal equality impossible when is nonempty. No channel or linearity assumption is imposed on . The real supremum is zero when its set is empty or unbounded above.
QAlgorithms.Papers.Independent.Extend50.P02.pptTeleportBound
For finite index types with decidable equality, a natural number , and an arbitrary complex square matrix on , this defines
Here is the identity on , and the real scalar is embedded into . No density-matrix assumption is imposed on , and is permitted, in which case the two conditions involving reduce to positivity of . The registers may be empty. The supremum is the real supremum operation, with value zero on an empty set or a set unbounded above.
QAlgorithms.Papers.Independent.Extend50.P02.realOperatorScale
For any index type , real number , and complex square matrix indexed by , this defines the matrix obtained by multiplying every entry of by , viewed as a complex number:
There is no sign restriction on and no condition on ; the definition also applies when is empty.
QAlgorithms.Papers.Independent.Extend50.P02.reducedCorrectionBound
For finite index types with decidable equality, Boolean flags , a natural number , and an arbitrary function from complex square matrices on to complex square matrices on , define
where is the matrix with its sole nonzero entry equal to at . This declaration defines
The variable consists of six complex square matrices on . Put , , and . Let swap both copies of the two indices, and define
The unconditional conditions are
If is true, also require
where
If is true, also require, writing ,
False flags impose none of their conditional requirements. No linearity or channel assumption is made on , and feasibility is not asserted. Empty index types and are included; zero inverses and square roots of negative real numbers are zero. The real supremum is zero for an empty set or a set unbounded above.
QAlgorithms.Papers.Independent.Extend50.P02.reducedE
For a natural number , arbitrary index types , and six complex square matrices indexed by , this defines a family of four matrices on . Write , with interpreted as a real number in scalar expressions, and define the index transposition by
Then the four matrices are
All real scalars act through their complex embeddings. There are no positivity assumptions on these matrices and no lower bound on ; real square roots of negative numbers and inverses of zero are both defined to be zero, so the formulas also define values at and .
QAlgorithms.Papers.Independent.Extend50.P02.reducedG
For index types , any natural number , and a record of six arbitrary complex square matrices indexed by , denote its fields by . This defines four matrices indexed by :
where , without complex conjugation. All coefficient arithmetic is real and scalars act by complex scalar multiplication. No condition on or lower bound on is assumed; for or , the square-root coefficient is zero, so .
QAlgorithms.Papers.Independent.Extend50.P02.reducedL
For index types , any natural number , and a record of six arbitrary complex square matrices indexed by , write for its fields . This defines a family of three matrices, indexed by , by
Here all coefficient arithmetic, including subtraction, takes place in , and the resulting scalars act on complex matrices. No restrictions on or are imposed: and are included, and the real square root is zero when its argument is negative.
QAlgorithms.Papers.Independent.Extend50.P02.reducedObjective
For finite index types , an arbitrary complex square matrix indexed by , and an arbitrary complex square matrix indexed by , this defines the real number
There is no conjugation of either factor and no positivity, normalization, or Hermitian assumption. Empty index types are allowed; in particular, when is empty the sum is zero and division by its zero cardinality is defined to give zero.
QAlgorithms.Papers.Independent.Extend50.P02.reducedP
For index types , any natural number , and a record of six arbitrary complex square matrices indexed by , write for its fields . This defines
where is viewed as a real number and each real scalar acts by entrywise complex scalar multiplication. No lower bound on or condition on is assumed. The real square root of a negative number and division by zero both evaluate to zero, so gives the zero matrix, while makes the square-root term zero.
QAlgorithms.Papers.Independent.Extend50.P02.reducedQ
For index types , any natural number , and a record of six arbitrary complex square matrices indexed by , write for its fields . This defines
with all scalar expressions evaluated over and then used as complex matrix scalars. No condition on or lower bound on is imposed. Real square roots of negative arguments and division by zero evaluate to zero; consequently gives the zero matrix, and makes the square-root term zero.
QAlgorithms.Papers.Independent.Extend50.P02.reducedTeleportBound
For finite index types with decidable equality, a Boolean , a natural number , and an arbitrary complex matrix on , this defines
Here ranges over six complex square matrices on , , and . Let swap the two indices in both row and column, and define
The unconditional conditions on are
When is true, the following are also required:
where
There is no density-matrix assumption on , no assertion that feasible matrices exist, and no exclusion of empty registers or . Real scalar inverses and square roots use the conventions and for . The supremum is the real-valued supremum operation, whose value is zero for an empty set or a set unbounded above, so the definition remains a real number in those cases.
QAlgorithms.Papers.Independent.Extend50.P02.simulationErrorFor
For finite index types with decidable equality, with nonempty, a criterion , and arbitrary functions from matrices indexed by to matrices indexed by , this definition selects
Here is indexed by , , and the lift is defined by , likewise for . The square roots use total continuous functional calculus. Neither function is assumed to be a channel. The suprema and infima are operations on real numbers; an unbounded supremum has value . If is empty, the two branches have values and , respectively.
QAlgorithms.Papers.Independent.Extend50.P02.stabilizedHalfTraceDistance
For finite index types with decidable equality, with nonempty, and arbitrary functions , this definition is the real supremum
where is indexed by , and the lifted function is defined blockwise by
with the same definition for . The square root is given by continuous functional calculus. No channel, linearity, or continuity assumption is imposed on ; consequently the supremum need not be bounded, and the real supremum operation returns for an unbounded set. The input density matrices exist because is nonempty. The type may be empty, in which case the value is .
QAlgorithms.Papers.Independent.Extend50.P02.swapExtension
For arbitrary types and a complex matrix whose rows and columns are indexed by , this definition produces the matrix with entries
It exchanges the two -indices and the two -indices simultaneously in both the row and column, while retaining the - and -indices. No conjugation, positivity, normalization, finiteness, or nonemptiness condition is required.
QAlgorithms.Papers.Independent.Extend50.P02.swapReduced
For index types and an arbitrary complex square matrix indexed by , this defines a matrix by simultaneously exchanging the two -coordinates in its row and column indices:
for every and . No condition is imposed on , and empty index types are allowed.
QAlgorithms.Papers.Independent.Extend50.P02.teleportBipartite
For arbitrary index types and any function from complex matrices indexed by to complex matrices indexed by , the definition returns the function with output matrices indexed by , where is a singleton, defined for every input matrix by
It adds a singleton coordinate to the output indices. No linearity, channel property, positivity, normalization, finiteness, or nonemptiness of the other index types is assumed.
QAlgorithms.Papers.Independent.Extend50.P02.teleportError
For finite index types with decidable equality and with nonempty, a criterion equal to either or , an optional Boolean , any function from -indexed complex matrices to -indexed complex matrices, and any complex matrix indexed by , the definition returns the real infimum of the errors over the following admissible functions . Such an must have the form
where is a channel. Throughout this definition, a channel means a function admitting a finite Kraus representation with ; denotes a matrix unit. Put . If is absent, admissibility additionally requires a finite family of functions from -indexed matrices to singleton-indexed matrices and channels from -indexed matrices to -indexed matrices, such that every has a finite Kraus representation, is a channel, and
for all . If , admissibility instead requires a positive semidefinite matrix indexed by . Suppressing the singleton coordinate, its entries must obey, for all free indices,
If is true, the matrices with entries and must also be positive semidefinite; no additional nonsignalling condition is imposed. To specify the errors, for any function define its extension to the reference register by
Let denote application of the real square-root function to by continuous functional calculus, using its total definition even when is not assumed positive. Then
and
where is indexed by . Thus the infidelity branch subtracts the infimum of the squared displayed quantity from . Neither nor is assumed to be a channel or a density matrix, respectively. The other index types may be empty, and the real infima and suprema use their total order-theoretic definitions; in particular, a real infimum over an empty set is .
QAlgorithms.Papers.Independent.Extend50.P02.teleportOneWaySuccess
For finite register types , with decidable equality as required, an arbitrary complex matrix on , and any finite type , this defines the real supremum of over matrices on satisfying , , and , subject to the following additional condition. Define, for every matrix on ,
After identifying its output with , the map must admit a finite decomposition
where ranges over some , each maps to the one-dimensional register , each maps to , all Kraus families are finite,
No density-matrix assumption is made on , and may be empty. All zero denominators use inverse zero equal to zero, so the second term of vanishes when . The supremum is taken in , with value zero for an empty feasible-value set or an unbounded-above feasible-value set.
QAlgorithms.Papers.Independent.Extend50.P02.teleportSet
For finite index types with decidable equality, an optional Boolean , and any complex matrix indexed by , the definition gives the set of functions from -indexed complex matrices to -indexed complex matrices for which there exists a channel from -indexed matrices to -indexed matrices such that
Here a channel means that there are a natural number and matrices , from its input index space to its output index space, with and for every matrix . Put , let denote the matrix unit, and define . If is absent, there must exist a natural number , functions from -indexed matrices to singleton-indexed matrices, and functions from -indexed matrices to -indexed matrices, for , such that each has a finite representation , the function is a channel, each is a channel, and, for every ,
If , instead there must exist a matrix indexed by . Suppressing the singleton coordinate, write its entries as . It must be positive semidefinite and satisfy, for all free indices,
When is true, the matrices with entries and must also be positive semidefinite; when it is false, these two requirements are absent. This branch imposes no additional nonsignalling equation. The matrix is not assumed to be a density matrix, and no index type is assumed nonempty; empty sums and finite families are permitted, subject to the stated normalization equations.
QAlgorithms.Papers.Independent.Extend50.P02.tensorSuperopAction
For finite index types with decidable equality, arbitrary index types , and arbitrary functions and , this definition gives a function on matrices by
where and are matrix units, with a single entry at the indicated position and zero elsewhere. Neither linearity nor any channel property is assumed for or ; the definition uses only their values on matrix units. If or is empty, every displayed sum is zero.
QAlgorithms.Papers.Independent.Extend50.P02.transposeAlice
For arbitrary index types and any complex matrix indexed by , the definition returns the matrix on the same index type given by
It exchanges the row and column indices of the and coordinates, leaving both coordinates and both coordinates in place. There is no complex conjugation and no assumption of positivity, Hermiticity, normalization, finiteness, or nonemptiness.
QAlgorithms.Papers.Independent.Extend50.P02.transposeBob2
For arbitrary index types and any complex matrix indexed by , the definition returns the matrix on the same index type given by
It exchanges the row and column indices of the second coordinate and the second coordinate, leaving all other coordinates in place. There is no complex conjugation and no assumption of positivity, Hermiticity, normalization, finiteness, or nonemptiness.
QAlgorithms.Papers.Independent.Extend50.P02.transposeH
For index types and an arbitrary complex square matrix indexed by , this defines the partial transpose in the -coordinate:
for all indices. This exchanges the row and column -coordinates without complex conjugation and leaves the -coordinates in their respective row and column positions. There are no conditions on , and empty index types are allowed.
QAlgorithms.Papers.Independent.Extend50.P02.transposeHJ1
For index types and an arbitrary complex square matrix indexed by , this defines the partial transpose in the -coordinate and the first -coordinate together:
for all indices. No complex conjugation is taken, and the second -coordinate is not transposed. There are no conditions on , and empty index types are allowed.
QAlgorithms.Papers.Independent.Extend50.P02.transposeJ
For arbitrary index types and any complex square matrix indexed by , this defines the complex square matrix
It exchanges the row and column indices belonging to , leaves those belonging to in place, and applies no complex conjugation. No finiteness, nonemptiness, positivity, or normalization assumption is required.
QAlgorithms.Papers.Independent.Extend50.P02.twoByTwoPauliOperator
For any index type and four arbitrary complex square matrices indexed by , this defines the complex square matrix indexed by the disjoint union of two copies of whose block form is
No Hermitian or positivity assumptions are imposed on the four input matrices, and may be empty.
QAlgorithms.Papers.Independent.Extend50.P02.wire
For finite register types , with decidable equality, and arbitrary maps and , this defines a map from matrices on to matrices on by
where each sum ranges over its indicated register type and is the matrix with entry at and elsewhere. Neither nor is assumed to be a channel or even linear. Empty register types are included, with empty sums equal to zero.
QAlgorithms.Papers.Independent.Extend50.P02.wireChoi
For index types , with and finite and equality on decidable, let be any function from -indexed complex matrices to -indexed complex matrices, and let be any complex matrix indexed by . The definition returns the complex matrix indexed by with entries
where is the -indexed matrix whose sole nonzero entry is in row , column . The contraction uses precisely these entries, without conjugating either factor or exchanging with or with . No linearity or channel property of , or positivity or normalization of , is assumed. Empty or gives an empty sum and hence the zero output matrix.
QAlgorithms.Papers.Independent.Extend50.P02.worstCaseSquaredFidelity
For finite index types with decidable equality, with nonempty, and arbitrary functions , this definition is
Here is indexed by , and
with the same blockwise definition for . Every square root is interpreted using the total real continuous functional calculus. No channel or positivity assumption on either function is imposed, so their outputs are not required to be density matrices. The set over which the infimum is taken is nonempty because is nonempty, and its values are nonnegative because they are squares. If is empty, the value is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.