Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Universal construction of decoders from encoding black boxes

Definition
QAlgorithms_Papers_Independent_Extend50_P07

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Universal construction of decoders from encoding black boxes (arXiv:2110.00258) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • Isometry: PDF p.4, Eq. (1): finite isometries in computational coordinates.
  • tensorRight: PDF p.5, Eq. (4): a map on the first factor, with the second factor untouched. Off-diagonal blocks of the auxiliary register are retained.
  • Parallel: PDF pp.5--6, Eq. (4): exactly k parallel oracle slots, finite auxiliary space, fixed preprocessing and fixed final instrument. None of these fields takes V.
  • Parallel.run: PDF p.5, Eq. (4): successful branch on an arbitrary joint input operation.
  • Delayed: PDF p.9, Eqs. (10)--(11): the oracle is applied to a fixed resource state before the eventual input arrives. The input is retained as a separate register.
  • Delayed.run: PDF p.9, Eq. (10): successful delayed-input branch, including the resource correlations with its auxiliary space.
  • oracleCopies: PDF p.6: all k slots receive the same unknown channel.
  • ExactInverse: PDF p.4, Eq. (2), and p.6, Eq. (5): an exact CP left inverse on every operator, with the entire successful branch equal to p times that inverse. In particular p=0 forces a zero branch even off the code.
  • inversionProbabilities: PDF pp.6--8: feasible uniform parallel inversion coefficients.
  • inversionOpt: PDF p.8, Eq. (8): optimal parallel coefficient. For positive d≤D the feasible set contains zero (abort) and is bounded above by one by definition.
  • inversionBound: PDF pp.7--8: Figure 2(a)'s coefficient. Zero ports mean abort, without calling a zero-port teleportation construction. The formula is used only for d≥2.
  • decoder: PDF p.7, Eq. (7): full off-code decoder. The identity is not divided by d.
  • pseudoConjugate: PDF p.21, Eq. (60): the full pseudo complex-conjugate CP map.
  • transposeChoi: PDF pp.6,22, Eq. (65): Kraus transposition swaps Choi legs, without conjugating coefficients and without merely transposing the Choi matrix.
  • completeAction: PDF pp.17--18: complete extension of a k-slot linear supermap. Each slot has arbitrary ancillary input and output; the auxiliary coherences are retained. This tests individual channel slots, not a joint channel allowed to signal between slots.
  • General: PDF pp.17--18: general two-outcome superinstrument, including indefinite causal order. Positivity is complete CP preservation. Normalization tests all ancillary input/output extensions of each individual CPTP slot.
  • General.run: PDF p.6, Eq. (5), for the general class: every slot gets the same V.
  • General.draw: PDF p.23, Eq. (69): the unsuccessful branch of a general protocol.
  • transposeSuperChoi: PDF p.38, Eq. (155), in the fixed (slot, past/future) ordering: p D d times the two normalized maximally entangled projectors.
  • oneSlot: PDF p.38: identify a single input slot with the one-letter tensor word.
  • gateTeleport: PDF pp.22--23, Figure 9: normalized entangled resource (factor 1/d) and successful Bell projection (factor 1/D), written as their contraction.
  • embedding: PDF p.15, Eq. (38): fixed natural computational embedding, not chosen from V.
  • RoundTree: PDF pp.23--24: a finite protocol tree. Each attempt executes the supplied k-slot instrument once, stops on success, and continues only on a draw.
  • RoundTree.queryCount: PDF p.24: worst-case query count, obtained from the actual attempt nodes.
  • RoundTree.success: PDF pp.23--24: successful operation of the finite tree, with early exit.
  • RoundTree.failure: PDF pp.23--24: the branch where all attempts draw.
  • repeatProtocol: PDF p.24: the constructed m-round repetition of a single supplied protocol.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P06
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P48
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P05
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P05

/-!
Yoshida--Soeda--Murao, arXiv:2110.00258v5 (PDF page numbers).
All registers have fixed computational coordinates. Choi matrices are unnormalized,
input first. Probabilities in the statements are the scale in Eq. (5).
New definitions are local to this paper; the accepted definition layer is unchanged.
Coordinate, CP and instrument interfaces are imported from pinned accepted modules.
-/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq

namespace QAlgorithms.Papers.Independent.Extend50.P07

-- Reuse pinned accepted interfaces; no duplicate declarations or exported aliases.
open QAlgorithms.Papers.Independent.Information100.P75 (Mat)
open QAlgorithms.Papers.Independent.Information100.P58 (Word)
open QAlgorithms.Papers.Independent.Information100.P06 (Choi)
open QAlgorithms.Papers.Independent.Information100.P34 (choi fromChoi)
open QAlgorithms.Papers.Independent.Claimed50.P48 (FiniteKrausCP)
open QAlgorithms.Papers.Independent.Advance50.P05 (RectangularInstrument)
open QAlgorithms.Papers.Independent.Dependency50.P05 (ChannelChoi)

/-- PDF p.4, Eq. (1): finite isometries in computational coordinates. -/
def Isometry (d D : ℕ) :=
  {V : Matrix (Fin D) (Fin d) ℂ // Vᴴ * V = 1}

/-- PDF p.5, Eq. (4): a map on the first factor, with the second factor untouched.
Off-diagonal blocks of the auxiliary register are retained. -/
def tensorRight {I O A : Type} (Phi : Superop I O) : Superop (I × A) (O × A) :=
  fun X a b => Phi (fun i j => X (i, a.2) (j, b.2)) a.1 b.1

/-- PDF pp.5--6, Eq. (4): exactly k parallel oracle slots, finite auxiliary
space, fixed preprocessing and fixed final instrument. None of these fields takes V. -/
structure Parallel (d D P F k : ℕ) where
  memory : ℕ
  memoryPos : 0 < memory
  pre : Superop (Fin P) (Word k d × Fin memory)
  preTP : IsChannel pre
  post : RectangularInstrument (Word k D × Fin memory) (Fin F) Bool

/-- PDF p.5, Eq. (4): successful branch on an arbitrary joint input operation. -/
def Parallel.run {d D P F k : ℕ} (A : Parallel d D P F k)
    (Lambda : Superop (Word k d) (Word k D)) : Superop (Fin P) (Fin F) :=
  fun X => A.post.branch false (tensorRight Lambda (A.pre X))

/-- PDF p.9, Eqs. (10)--(11): the oracle is applied to a fixed resource state
before the eventual input arrives. The input is retained as a separate register. -/
structure Delayed (d D P F k : ℕ) where
  memory : ℕ
  memoryPos : 0 < memory
  resource : Mat (Word k d × Fin memory)
  resourceState : IsDensityMatrix resource
  post : RectangularInstrument (Fin P × (Word k D × Fin memory)) (Fin F) Bool

/-- PDF p.9, Eq. (10): successful delayed-input branch, including the resource
correlations with its auxiliary space. -/
def Delayed.run {d D P F k : ℕ} (A : Delayed d D P F k)
    (Lambda : Superop (Word k d) (Word k D)) : Superop (Fin P) (Fin F) :=
  fun X => A.post.branch false (Matrix.kronecker X (tensorRight Lambda A.resource))

/-- PDF p.6: all k slots receive the same unknown channel. -/
def oracleCopies {d D : ℕ} (k : ℕ) (V : Isometry d D) :
    Superop (Word k d) (Word k D) :=
  piSuperop (fun _ => conjSuperop V.val)

/-- PDF p.4, Eq. (2), and p.6, Eq. (5): an exact CP left inverse on every
operator, with the entire successful branch equal to p times that inverse.
In particular p=0 forces a zero branch even off the code. -/
def ExactInverse {d D : ℕ} (B : Superop (Fin D) (Fin d)) (p : ℝ)
    (V : Isometry d D) : Prop :=
  ∃ R : Superop (Fin D) (Fin d), FiniteKrausCP R ∧
    (∀ X, R (conjSuperop V.val X) = X) ∧ (∀ Y, B Y = (p : ℂ) • R Y)

/-- PDF pp.6--8: feasible uniform parallel inversion coefficients. -/
def inversionProbabilities (d D k : ℕ) : Set ℝ :=
  {p | 0 ≤ p ∧ p ≤ 1 ∧ ∃ A : Parallel d D D d k,
    ∀ V : Isometry d D, ExactInverse (A.run (oracleCopies k V)) p V}

/-- PDF p.8, Eq. (8): optimal parallel coefficient. For positive d≤D the
feasible set contains zero (abort) and is bounded above by one by definition. -/
def inversionOpt (d D k : ℕ) : ℝ := sSup (inversionProbabilities d D k)

/-- PDF pp.7--8: Figure 2(a)'s coefficient. Zero ports mean abort, without
calling a zero-port teleportation construction. The formula is used only for d≥2. -/
def inversionBound (d k : ℕ) : ℝ :=
  let m := k / (d - 1)
  if m = 0 then 0 else (m : ℝ) / ((d : ℝ)^2 + (m : ℝ) - 1)

/-- PDF p.7, Eq. (7): full off-code decoder. The identity is not divided by d. -/
def decoder {d D : ℕ} (V : Isometry d D) : Superop (Fin D) (Fin d) :=
  fun X => V.valᴴ * X * V.val + ((1 - V.val * V.valᴴ) * X).trace • 1

/-- PDF p.21, Eq. (60): the full pseudo complex-conjugate CP map. -/
def pseudoConjugate {d D : ℕ} (V : Isometry d D) : Superop (Fin d) (Fin D) :=
  fun X => conjSuperop (V.val.map conj) X +
    X.trace • ((1 - V.val * V.valᴴ).map conj)

/-- PDF pp.6,22, Eq. (65): Kraus transposition swaps Choi legs, without
conjugating coefficients and without merely transposing the Choi matrix. -/
def transposeChoi {I O : Type} (J : Choi I O) : Choi O I :=
  fun a b => J (a.2, a.1) (b.2, b.1)

/-- PDF pp.17--18: complete extension of a k-slot linear supermap. Each slot
has arbitrary ancillary input and output; the auxiliary coherences are retained.
This tests individual channel slots, not a joint channel allowed to signal between slots. -/
def completeAction {d D P F k : ℕ}
    (S : Choi (Word k d) (Word k D) →ₗ[ℂ] Choi (Fin P) (Fin F))
    (r s : Fin k → ℕ)
    (J : (i : Fin k) → Choi (Fin (r i) × Fin d) (Fin (s i) × Fin D)) :
    Choi (Fin P × ((i : Fin k) → Fin (r i)))
      (Fin F × ((i : Fin k) → Fin (s i))) :=
  fun a b =>
    S (fun u v => ∏ i,
      J i ((a.1.2 i, u.1 i), (a.2.2 i, u.2 i))
        ((b.1.2 i, v.1 i), (b.2.2 i, v.2 i)))
      (a.1.1, a.2.1) (b.1.1, b.2.1)

/-- PDF pp.17--18: general two-outcome superinstrument, including indefinite
causal order. Positivity is complete CP preservation. Normalization tests all
ancillary input/output extensions of each individual CPTP slot. -/
structure General (d D P F k : ℕ) where
  success : Choi (Word k d) (Word k D) →ₗ[ℂ] Choi (Fin P) (Fin F)
  failure : Choi (Word k d) (Word k D) →ₗ[ℂ] Choi (Fin P) (Fin F)
  successCP : (choi success).PosSemidef
  failureCP : (choi failure).PosSemidef
  complete : ∀ r s : Fin k → ℕ, (∀ i, 0 < r i) → (∀ i, 0 < s i) →
    ∀ J : (i : Fin k) → Choi (Fin (r i) × Fin d) (Fin (s i) × Fin D),
      (∀ i, ChannelChoi (J i)) →
      (completeAction success r s J).PosSemidef ∧
      (completeAction failure r s J).PosSemidef ∧
      ChannelChoi (completeAction success r s J + completeAction failure r s J)

/-- PDF p.6, Eq. (5), for the general class: every slot gets the same V. -/
def General.run {d D P F k : ℕ} (A : General d D P F k)
    (V : Isometry d D) : Superop (Fin P) (Fin F) :=
  fromChoi (A.success (choi (oracleCopies k V)))

/-- PDF p.23, Eq. (69): the unsuccessful branch of a general protocol. -/
def General.draw {d D P F k : ℕ} (A : General d D P F k)
    (V : Isometry d D) : Superop (Fin P) (Fin F) :=
  fromChoi (A.failure (choi (oracleCopies k V)))

/-- PDF p.38, Eq. (155), in the fixed (slot, past/future) ordering:
p D d times the two normalized maximally entangled projectors. -/
def transposeSuperChoi (d D : ℕ) (p : ℝ) :
    Mat ((Word 1 d × Word 1 D) × (Fin D × Fin d)) :=
  fun a b => if a.1.2 0 = a.2.1 ∧ a.1.1 0 = a.2.2 ∧
      b.1.2 0 = b.2.1 ∧ b.1.1 0 = b.2.2 then (p : ℂ) else 0

/-- PDF p.38: identify a single input slot with the one-letter tensor word. -/
def oneSlot {d D : ℕ} (J : Choi (Fin d) (Fin D)) : Choi (Word 1 d) (Word 1 D) :=
  fun a b => J (a.1 0, a.2 0) (b.1 0, b.2 0)

/-- PDF pp.22--23, Figure 9: normalized entangled resource (factor 1/d)
and successful Bell projection (factor 1/D), written as their contraction. -/
def gateTeleport {d D : ℕ} (Lambda : Superop (Fin d) (Fin D)) :
    Superop (Fin D) (Fin d) :=
  fun X i j => (1 / ((D : ℂ) * (d : ℂ))) *
    ∑ o, ∑ q, X o q * Lambda (Matrix.single i j 1) o q

/-- PDF p.15, Eq. (38): fixed natural computational embedding, not chosen from V. -/
def embedding (d D : ℕ) : Matrix (Fin D) (Fin d) ℂ :=
  fun o i => if o.val = i.val then 1 else 0

/-- PDF pp.23--24: a finite protocol tree. Each attempt executes the supplied
k-slot instrument once, stops on success, and continues only on a draw. -/
inductive RoundTree (d D k : ℕ) where
  | stop
  | attempt (round : General d D D D k) (next : RoundTree d D k)

/-- PDF p.24: worst-case query count, obtained from the actual attempt nodes. -/
def RoundTree.queryCount {d D k : ℕ} : RoundTree d D k → ℕ
  | .stop => 0
  | .attempt _ next => k + next.queryCount

/-- PDF pp.23--24: successful operation of the finite tree, with early exit. -/
def RoundTree.success {d D k : ℕ} :
    RoundTree d D k → Isometry d D → Superop (Fin D) (Fin D)
  | .stop, _ => fun _ => 0
  | .attempt A next, V => fun X => A.run V X + next.success V (A.draw V X)

/-- PDF pp.23--24: the branch where all attempts draw. -/
def RoundTree.failure {d D k : ℕ} :
    RoundTree d D k → Isometry d D → Superop (Fin D) (Fin D)
  | .stop, _ => id
  | .attempt A next, V => fun X => next.failure V (A.draw V X)

/-- PDF p.24: the constructed m-round repetition of a single supplied protocol. -/
def repeatProtocol {d D k : ℕ} (A : General d D D D k) : ℕ → RoundTree d D k
  | 0 => .stop
  | m + 1 => .attempt A (repeatProtocol A m)

/-! Small semantic checks; no theorem proofs from the paper are attempted. -/

example {I A : Type} (X : Mat (I × A)) :
    tensorRight (fun Y : Mat I => Y) X = X := by
  rfl

example {I O : Type} (J : Choi I O) :
    transposeChoi (transposeChoi J) = J := by
  rfl

example (d : ℕ) : inversionBound d 0 = 0 := by
  simp [inversionBound]

example {d D k : ℕ} (A : General d D D D k) :
    (repeatProtocol A 0).queryCount = 0 := by
  rfl

example {d D k : ℕ} (A : General d D D D k) (V : Isometry d D)
    (X : Mat (Fin D)) : (repeatProtocol A 1).success V X = A.run V X := by
  simp [repeatProtocol, RoundTree.success]

example (d D : ℕ) (i : Fin d) (o : Fin D) (h : o.val = i.val) :
    embedding d D o i = 1 := by
  simp [embedding, h]

example {I O : Type} [Fintype I] : FiniteKrausCP (fun _ : Mat I => (0 : Mat O)) := by
  refine ⟨0, fun i => Fin.elim0 i, ?_⟩
  funext X
  simp [krausApply]

example {I O : Type} [Fintype I] :
    fromChoi (0 : Choi I O) = (fun _ : Mat I => (0 : Mat O)) := by
  funext X a b
  simp [fromChoi]

example {d D P F k : ℕ} (r s : Fin k → ℕ)
    (J : (i : Fin k) → Choi (Fin (r i) × Fin d) (Fin (s i) × Fin D)) :
    completeAction (0 : Choi (Word k d) (Word k D) →ₗ[ℂ]
      Choi (Fin P) (Fin F)) r s J = 0 := by
  rfl

example (d : ℕ) (X : Mat (Fin d)) :
    decoder (⟨1, by simp⟩ : Isometry d d) X = X := by
  simp [decoder]

end QAlgorithms.Papers.Independent.Extend50.P07
Source
Universal construction of decoders from encoding black boxes, arXiv:2110.00258v5, https://arxiv.org/abs/2110.00258v5
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P07.Delayed

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, write [s]={0,…,s−1}[s]=\{0,\ldots,s-1\}[s]={0,…,s−1} and Wk,s=[s][k]W_{k,s}=[s]^{[k]}Wk,s​=[s][k]. A value of this structure consists of a natural memory dimension h>0h>0h>0, a positive semidefinite matrix ρ\rhoρ indexed by Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h] with complex trace exactly 111, and a Boolean outcome instrument from [P]×(Wk,D×[h])[P]\times(W_{k,D}\times[h])[P]×(Wk,D​×[h]) to [F][F][F]. Explicitly, that instrument consists of a natural number rrr and matrices Kβ,jK_{\beta,j}Kβ,j​ between these spaces, for Boolean β\betaβ and j∈[r]j\in[r]j∈[r], satisfying ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I. The parameters may be zero subject to these requirements; in particular, the density matrix requirement excludes an empty resource register, whereas W0,sW_{0,s}W0,s​ is always a singleton.

QAlgorithms.Papers.Independent.Extend50.P07.Delayed.run

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, write Wk,s={0,…,s−1}{0,…,k−1}W_{k,s}=\{0,\ldots,s-1\}^{\{0,\ldots,k-1\}}Wk,s​={0,…,s−1}{0,…,k−1}. Let AAA consist of a positive memory dimension hhh, a positive semidefinite trace-one resource matrix ρ\rhoρ on Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h], and instrument matrices Kβ,jK_{\beta,j}Kβ,j​ from [P]×(Wk,D×[h])[P]\times(W_{k,D}\times[h])[P]×(Wk,D​×[h]) to [F][F][F] satisfying ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I. For any function Λ\LambdaΛ from matrices on Wk,dW_{k,d}Wk,d​ to matrices on Wk,DW_{k,D}Wk,D​, this defines

Arun(Λ)(X)=∑jKfalse,j(X⊗Y)Kfalse,j†,Y(u,a),(v,b)=[Λ ⁣((ρ(x,a),(y,b))x,y)]u,v.A_{\mathrm{run}}(\Lambda)(X) =\sum_jK_{\mathrm{false},j}(X\otimes Y)K_{\mathrm{false},j}^\dagger, \qquad Y_{(u,a),(v,b)} =\left[\Lambda\!\left((\rho_{(x,a),(y,b)})_{x,y}\right)\right]_{u,v}.Arun​(Λ)(X)=j∑​Kfalse,j​(X⊗Y)Kfalse,j†​,Y(u,a),(v,b)​=[Λ((ρ(x,a),(y,b)​)x,y​)]u,v​.

The formula uses only the instrument outcome false\mathrm{false}false and applies to every complex P×PP\times PP×P matrix XXX. No channel or linearity assumption is imposed on Λ\LambdaΛ; zero natural parameters are included subject to the structure’s existence.

QAlgorithms.Papers.Independent.Extend50.P07.ExactInverse

For natural numbers d,Dd,Dd,D, any function BBB from complex D×DD\times DD×D matrices to complex d×dd\times dd×d matrices, any real number ppp, and a complex D×dD\times dD×d matrix VVV with V†V=IdV^\dagger V=I_dV†V=Id​, this predicate requires a function RRR admitting a finite Kraus representation: there must be some natural number rrr and complex d×Dd\times Dd×D matrices EjE_jEj​ such that R(Y)=∑j=0r−1EjYEj†R(Y)=\sum_{j=0}^{r-1}E_jYE_j^\daggerR(Y)=∑j=0r−1​Ej​YEj†​ for every YYY, and

R(VXV†)=Xfor every complex d×d matrix X,B(Y)=p R(Y)for every complex D×D matrix Y.R(VXV^\dagger)=X\quad\text{for every complex }d\times d\text{ matrix }X, \qquad B(Y)=p\,R(Y)\quad\text{for every complex }D\times D\text{ matrix }Y.R(VXV†)=Xfor every complex d×d matrix X,B(Y)=pR(Y)for every complex D×D matrix Y.

There is no trace-preservation requirement on RRR, no restriction on the real number ppp, and no restriction to density matrices in either equality. Zero dimensions and an empty Kraus family are included whenever these equations hold.

QAlgorithms.Papers.Independent.Extend50.P07.General.draw

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, let AAA consist of two complex linear maps Ssucc,SfailS_{\mathrm{succ}},S_{\mathrm{fail}}Ssucc​,Sfail​ from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [P]×[F][P]\times[F][P]×[F], with positive semidefinite Choi matrices, such that every product block extension to positive auxiliary dimensions sends channel Choi matrices to two positive semidefinite matrices whose sum has output partial trace equal to the input identity; explicitly, each extended entry is obtained by applying the chosen map to the matrix whose slot entries are multiplied together, holding all auxiliary row and column indices fixed. Given a complex D×dD\times dD×d matrix VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, form

(KV)(u,v),(u′,v′)=∏i∈[k]Vvi,ui Vvi′,ui′‾,u,u′∈[d]k,v,v′∈[D]k.(K_V)_{(u,v),(u',v')} =\prod_{i\in[k]}V_{v_i,u_i}\,\overline{V_{v'_i,u'_i}}, \qquad u,u'\in[d]^k,\quad v,v'\in[D]^k.(KV​)(u,v),(u′,v′)​=i∈[k]∏​Vvi​,ui​​Vvi′​,ui′​​​,u,u′∈[d]k,v,v′∈[D]k.

This declaration defines a function from arbitrary complex P×PP\times PP×P matrices to complex F×FF\times FF×F matrices by

[draw⁡A,V(X)]f,g=∑p,q∈[P]Xp,q [Sfail(KV)](p,f),(q,g).[\operatorname{draw}_{A,V}(X)]_{f,g} =\sum_{p,q\in[P]}X_{p,q}\, [S_{\mathrm{fail}}(K_V)]_{(p,f),(q,g)}.[drawA,V​(X)]f,g​=p,q∈[P]∑​Xp,q​[Sfail​(KV​)](p,f),(q,g)​.

There is no normalization restriction on XXX. All dimensions may be zero, subject to the supplied structure and isometry conditions; for k=0k=0k=0, the empty product makes KVK_VKV​ the singleton-indexed matrix with entry 111, independently of VVV.

QAlgorithms.Papers.Independent.Extend50.P07.General

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, including zero, this structure consists of two complex linear maps Ssucc,SfailS_{\mathrm{succ}},S_{\mathrm{fail}}Ssucc​,Sfail​ from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [P]×[F][P]\times[F][P]×[F], where [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1}. Each map must have a positive semidefinite Choi matrix: for either map SSS, this matrix has entries

(CS)(u,a),(v,b)=[S(Euv)]a,b,(C_S)_{(u,a),(v,b)}=[S(E_{uv})]_{a,b},(CS​)(u,a),(v,b)​=[S(Euv​)]a,b​,

where EuvE_{uv}Euv​ has its sole nonzero entry, equal to 111, at (u,v)(u,v)(u,v). The structure also requires the following for every pair of functions r,s:[k]→Nr,s:[k]\to\mathbb Nr,s:[k]→N with ri,si>0r_i,s_i>0ri​,si​>0, and every family of positive semidefinite matrices JiJ_iJi​ indexed by ([ri]×[d])×([si]×[D])([r_i]\times[d])\times([s_i]\times[D])([ri​]×[d])×([si​]×[D]) whose partial trace over [si]×[D][s_i]\times[D][si​]×[D] is I[ri]×[d]I_{[r_i]\times[d]}I[ri​]×[d]​: both matrices CSsucc(J)\mathcal C_{S_{\mathrm{succ}}}(J)CSsucc​​(J) and CSfail(J)\mathcal C_{S_{\mathrm{fail}}}(J)CSfail​​(J) are positive semidefinite, and their sum has partial trace over [F]×∏i[si][F]\times\prod_i[s_i][F]×∏i​[si​] equal to I[P]×∏i[ri]I_{[P]\times\prod_i[r_i]}I[P]×∏i​[ri​]​. Here the extension CS(J)\mathcal C_S(J)CS​(J) is defined, for fixed auxiliary row and column indices x,y,x′,y′x,y,x',y'x,y,x′,y′, by applying SSS to the matrix

K(u,v),(u′,v′)=∏i(Ji)((xi,ui),(yi,vi)), ((xi′,ui′),(yi′,vi′))K_{(u,v),(u',v')} =\prod_i(J_i)_{((x_i,u_i),(y_i,v_i)),\,((x'_i,u'_i),(y'_i,v'_i))}K(u,v),(u′,v′)​=i∏​(Ji​)((xi​,ui​),(yi​,vi​)),((xi′​,ui′​),(yi′​,vi′​))​

and taking the resulting (p,f),(p′,f′)(p,f),(p',f')(p,f),(p′,f′) entry as the corresponding extended entry. The partial trace normalization is an identity matrix without a dimension factor. If no family JiJ_iJi​ satisfies the hypotheses, the requirement for that choice of auxiliary dimensions is vacuous; for k=0k=0k=0, the family is empty and its product is 111.

QAlgorithms.Papers.Independent.Extend50.P07.General.run

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, let AAA consist of two complex linear maps Ssucc,SfailS_{\mathrm{succ}},S_{\mathrm{fail}}Ssucc​,Sfail​ from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [P]×[F][P]\times[F][P]×[F], with positive semidefinite Choi matrices, such that every product block extension to positive auxiliary dimensions sends channel Choi matrices to two positive semidefinite matrices whose sum has output partial trace equal to the input identity; explicitly, each extended entry is obtained by applying the chosen map to the matrix whose slot entries are multiplied together, holding all auxiliary row and column indices fixed. Given a complex D×dD\times dD×d matrix VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, define the matrix

(KV)(u,v),(u′,v′)=∏i∈[k]Vvi,ui Vvi′,ui′‾,u,u′∈[d]k,v,v′∈[D]k.(K_V)_{(u,v),(u',v')} =\prod_{i\in[k]}V_{v_i,u_i}\,\overline{V_{v'_i,u'_i}}, \qquad u,u'\in[d]^k,\quad v,v'\in[D]^k.(KV​)(u,v),(u′,v′)​=i∈[k]∏​Vvi​,ui​​Vvi′​,ui′​​​,u,u′∈[d]k,v,v′∈[D]k.

This declaration defines a function from arbitrary complex P×PP\times PP×P matrices to complex F×FF\times FF×F matrices by

[run⁡A,V(X)]f,g=∑p,q∈[P]Xp,q [Ssucc(KV)](p,f),(q,g).[\operatorname{run}_{A,V}(X)]_{f,g} =\sum_{p,q\in[P]}X_{p,q}\, [S_{\mathrm{succ}}(K_V)]_{(p,f),(q,g)}.[runA,V​(X)]f,g​=p,q∈[P]∑​Xp,q​[Ssucc​(KV​)](p,f),(q,g)​.

There is no normalization restriction on XXX. All dimensions may be zero, subject to the supplied structure and isometry conditions; for k=0k=0k=0, KVK_VKV​ is the singleton-indexed matrix with entry 111, so this function is independent of VVV.

QAlgorithms.Papers.Independent.Extend50.P07.Isometry

For natural numbers d,Dd,Dd,D, this is the type of complex D×dD\times dD×d matrices VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, where †\dagger† denotes conjugate transpose. Thus the columns of VVV are orthonormal. Zero dimensions are included: when d=0d=0d=0 the condition holds for the unique D×0D\times0D×0 matrix, while when D<dD<dD<d no such matrix exists.

QAlgorithms.Papers.Independent.Extend50.P07.Parallel

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, write [s]={0,…,s−1}[s]=\{0,\ldots,s-1\}[s]={0,…,s−1} and Wk,s=[s][k]W_{k,s}=[s]^{[k]}Wk,s​=[s][k]. A value of this structure consists of a natural number h>0h>0h>0, a function P\mathcal PP from complex P×PP\times PP×P matrices to matrices indexed by Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h] that is a channel, and a Boolean outcome instrument from matrices indexed by Wk,D×[h]W_{k,D}\times[h]Wk,D​×[h] to complex F×FF\times FF×F matrices. Explicitly, the channel requirement means that for some natural number rrr there are matrices EjE_jEj​ from [P][P][P] to Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h] such that ∑jEj†Ej=IP\sum_jE_j^\dagger E_j=I_P∑j​Ej†​Ej​=IP​ and P(X)=∑jEjXEj†\mathcal P(X)=\sum_jE_jXE_j^\daggerP(X)=∑j​Ej​XEj†​ for every XXX; the instrument consists of a natural number sss and matrices Kβ,jK_{\beta,j}Kβ,j​ from Wk,D×[h]W_{k,D}\times[h]Wk,D​×[h] to [F][F][F], for β∈{false,true}\beta\in\{\mathrm{false},\mathrm{true}\}β∈{false,true} and j∈[s]j\in[s]j∈[s], satisfying ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I. The five parameters may be zero, subject to these requirements; when k=0k=0k=0, each Wk,sW_{k,s}Wk,s​ is a singleton even if s=0s=0s=0.

QAlgorithms.Papers.Independent.Extend50.P07.Parallel.run

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, let Wk,s={0,…,s−1}{0,…,k−1}W_{k,s}=\{0,\ldots,s-1\}^{\{0,\ldots,k-1\}}Wk,s​={0,…,s−1}{0,…,k−1}, and let AAA consist of a positive memory dimension hhh, a preprocessing channel P\mathcal PP from [P][P][P] to Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h], and instrument matrices Kβ,jK_{\beta,j}Kβ,j​ from Wk,D×[h]W_{k,D}\times[h]Wk,D​×[h] to [F][F][F] satisfying ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I; here a channel has the form P(X)=∑ℓEℓXEℓ†\mathcal P(X)=\sum_\ell E_\ell XE_\ell^\daggerP(X)=∑ℓ​Eℓ​XEℓ†​ with a finite family satisfying ∑ℓEℓ†Eℓ=IP\sum_\ell E_\ell^\dagger E_\ell=I_P∑ℓ​Eℓ†​Eℓ​=IP​. For any function Λ\LambdaΛ from matrices on Wk,dW_{k,d}Wk,d​ to matrices on Wk,DW_{k,D}Wk,D​, the resulting function is

Arun(Λ)(X)=∑jKfalse,j Y Kfalse,j†,Y(u,a),(v,b)=[Λ ⁣((P(X)(x,a),(y,b))x,y)]u,v.A_{\mathrm{run}}(\Lambda)(X)=\sum_jK_{\mathrm{false},j}\,Y\,K_{\mathrm{false},j}^\dagger, \qquad Y_{(u,a),(v,b)} =\left[\Lambda\!\left((\mathcal P(X)_{(x,a),(y,b)})_{x,y}\right)\right]_{u,v}.Arun​(Λ)(X)=j∑​Kfalse,j​YKfalse,j†​,Y(u,a),(v,b)​=[Λ((P(X)(x,a),(y,b)​)x,y​)]u,v​.

Only the instrument outcome false\mathrm{false}false is used. This formula applies to every complex input matrix XXX, without requiring Λ\LambdaΛ to be linear or a channel; all natural parameters, including k=0k=0k=0, are allowed subject to the structure’s existence.

QAlgorithms.Papers.Independent.Extend50.P07.RoundTree.failure

For any natural numbers d,D,kd,D,kd,D,k, a finite sequence of rounds TTT, and any V∈CD×dV\in\mathbb C^{D\times d}V∈CD×d with V†V=IdV^\dagger V=I_dV†V=Id​, this defines a map FT,V\mathcal F_{T,V}FT,V​ on D×DD\times DD×D complex matrices. A round AAA consists of complex-linear maps SA,FAS_A,F_ASA​,FA​ from matrices on [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices on [D]×[D][D]\times[D][D]×[D], where [h]={0,…,h−1}[h]=\{0,\ldots,h-1\}[h]={0,…,h−1}, with positive semidefinite ordinary Choi matrices. For every family of slot Choi matrices with positive auxiliary input and output dimensions, each positive semidefinite and having output partial trace equal to the input identity, their extensions obtained by applying SA,FAS_A,F_ASA​,FA​ to the oracle indices of the tensor product are positive semidefinite and their sum has output partial trace equal to the input identity. Write W=V⊗kW=V^{\otimes k}W=V⊗k, set (JV)(u,o),(v,q)=Wo,uWq,v‾(J_V)_{(u,o),(v,q)}=W_{o,u}\overline{W_{q,v}}(JV​)(u,o),(v,q)​=Wo,u​Wq,v​​, and define the individual failure map by

FA,V(X)ij=∑a,b∈[D]Xab [FA(JV)](a,i),(b,j).\mathcal F_{A,V}(X)_{ij} =\sum_{a,b\in[D]}X_{ab}\,[F_A(J_V)]_{(a,i),(b,j)}.FA,V​(X)ij​=a,b∈[D]∑​Xab​[FA​(JV​)](a,i),(b,j)​.

Then

Fstop,V(X)=X,Fattempt(A,T),V(X)=FT,V ⁣(FA,V(X))\mathcal F_{\mathrm{stop},V}(X)=X,\qquad \mathcal F_{\mathrm{attempt}(A,T),V}(X) =\mathcal F_{T,V}\!\left(\mathcal F_{A,V}(X)\right)Fstop,V​(X)=X,Fattempt(A,T),V​(X)=FT,V​(FA,V​(X))

for every complex matrix XXX, including matrices that are not states. Zero dimensions and k=0k=0k=0 are included, with the empty tensor power equal to the scalar identity; the argument VVV must still satisfy its isometry equation.

QAlgorithms.Papers.Independent.Extend50.P07.RoundTree

For natural numbers d,D,kd,D,kd,D,k, including zero, this inductively defines objects generated by a terminal object called “stop” and a constructor that attaches one round and a continuation of the same type. A round contains two complex linear maps from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [D]×[D][D]\times[D][D]×[D], each with a positive semidefinite Choi matrix [S(Euv)]a,b[S(E_{uv})]_{a,b}[S(Euv​)]a,b​; for every choice of positive auxiliary input and output dimensions and every family of positive semidefinite slot matrices with output partial trace equal to the input identity, their product block extensions must be positive semidefinite and their sum must have output partial trace equal to the input identity. A product block extension applies the chosen map to the matrix formed by multiplying the slot entries with fixed auxiliary row and column indices. Each nonterminal object contains exactly one such round and one continuation, so objects are finite chains ending at “stop”; there is no branching constructor. The number of attached rounds is unrestricted, and k=0k=0k=0 is allowed.

QAlgorithms.Papers.Independent.Extend50.P07.RoundTree.queryCount

For natural numbers d,D,kd,D,kd,D,k, including zero, and any finite chain ending at “stop” whose attached rounds each contain two complex linear maps from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [D]×[D][D]\times[D][D]×[D], with positive semidefinite Choi matrices and with positive product block extensions whose sum preserves channel Choi normalization for every family of channel Choi matrices and positive auxiliary dimensions, this defines a natural-number count recursively by

q(stop)=0,q(attempt(A,T))=k+q(T).q(\mathrm{stop})=0,\qquad q(\mathrm{attempt}(A,T))=k+q(T).q(stop)=0,q(attempt(A,T))=k+q(T).

Here a product block extension applies the relevant map to the matrix of products of slot entries with auxiliary indices fixed, and channel Choi normalization means that the output partial trace is the input identity. The count depends only on the number of attached rounds: a chain with mmm rounds has count mkmkmk, regardless of the round data. In particular, every chain has count zero when k=0k=0k=0.

QAlgorithms.Papers.Independent.Extend50.P07.RoundTree.success

For any natural numbers d,D,kd,D,kd,D,k, a finite sequence of rounds TTT, and a matrix V∈CD×dV\in\mathbb C^{D\times d}V∈CD×d satisfying V†V=IdV^\dagger V=I_dV†V=Id​, this defines a map ST,V\mathcal S_{T,V}ST,V​ from D×DD\times DD×D complex matrices to D×DD\times DD×D complex matrices. Each round AAA contains two complex-linear maps SA,FAS_A,F_ASA​,FA​ from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [D]×[D][D]\times[D][D]×[D], where [h]={0,…,h−1}[h]=\{0,\ldots,h-1\}[h]={0,…,h−1}. Their ordinary Choi matrices are positive semidefinite. Moreover, for every choice of positive auxiliary input and output dimensions in each of the kkk slots and every family of positive semidefinite slot Choi matrices whose output partial traces are identities, applying SAS_ASA​ and FAF_AFA​ to the oracle indices of their tensor product, while retaining the auxiliary indices, gives positive semidefinite matrices whose sum has output partial trace equal to the input identity. Put W=V⊗kW=V^{\otimes k}W=V⊗k and define JVJ_VJV​ by (JV)(u,o),(v,q)=Wo,uWq,v‾(J_V)_{(u,o),(v,q)}=W_{o,u}\overline{W_{q,v}}(JV​)(u,o),(v,q)​=Wo,u​Wq,v​​. The two maps used in the recursion are

SA,V(X)ij=∑a,b∈[D]Xab [SA(JV)](a,i),(b,j),FA,V(X)ij=∑a,b∈[D]Xab [FA(JV)](a,i),(b,j).\mathcal S_{A,V}(X)_{ij} =\sum_{a,b\in[D]}X_{ab}\,[S_A(J_V)]_{(a,i),(b,j)}, \qquad \mathcal F_{A,V}(X)_{ij} =\sum_{a,b\in[D]}X_{ab}\,[F_A(J_V)]_{(a,i),(b,j)}.SA,V​(X)ij​=a,b∈[D]∑​Xab​[SA​(JV​)](a,i),(b,j)​,FA,V​(X)ij​=a,b∈[D]∑​Xab​[FA​(JV​)](a,i),(b,j)​.

The definition is

Sstop,V(X)=0,Sattempt(A,T),V(X)=SA,V(X)+ST,V ⁣(FA,V(X)).\mathcal S_{\mathrm{stop},V}(X)=0,\qquad \mathcal S_{\mathrm{attempt}(A,T),V}(X) =\mathcal S_{A,V}(X)+\mathcal S_{T,V}\!\left(\mathcal F_{A,V}(X)\right).Sstop,V​(X)=0,Sattempt(A,T),V​(X)=SA,V​(X)+ST,V​(FA,V​(X)).

These equations apply to every complex matrix XXX, without a positivity or trace assumption. Zero values of d,D,kd,D,kd,D,k are allowed; for k=0k=0k=0, WWW is the scalar identity, and if no such isometry VVV exists there is no instance with that VVV.

QAlgorithms.Papers.Independent.Extend50.P07.completeAction

For natural numbers d,D,P,F,kd,D,P,F,kd,D,P,F,k, write [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1}, with [0]=∅[0]=\varnothing[0]=∅, and let [d]k[d]^k[d]k denote the functions from [k][k][k] to [d][d][d]. Given a complex linear map SSS from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [P]×[F][P]\times[F][P]×[F], functions r,s:[k]→Nr,s:[k]\to\mathbb Nr,s:[k]→N, and, for each i∈[k]i\in[k]i∈[k], an arbitrary complex matrix JiJ_iJi​ indexed by ([ri]×[d])×([si]×[D])([r_i]\times[d])\times([s_i]\times[D])([ri​]×[d])×([si​]×[D]), this defines a matrix indexed by

([P]×∏i[ri])×([F]×∏i[si]).\left([P]\times\prod_i[r_i]\right)\times \left([F]\times\prod_i[s_i]\right).([P]×i∏​[ri​])×([F]×i∏​[si​]).

For x,x′∈∏i[ri]x,x'\in\prod_i[r_i]x,x′∈∏i​[ri​] and y,y′∈∏i[si]y,y'\in\prod_i[s_i]y,y′∈∏i​[si​], form the matrix Kx,y;x′,y′K^{x,y;x',y'}Kx,y;x′,y′ with entries

K(u,v),(u′,v′)x,y;x′,y′=∏i∈[k](Ji)((xi,ui),(yi,vi)), ((xi′,ui′),(yi′,vi′)).K^{x,y;x',y'}_{(u,v),(u',v')} =\prod_{i\in[k]} (J_i)_{((x_i,u_i),(y_i,v_i)),\,((x'_i,u'_i),(y'_i,v'_i))}.K(u,v),(u′,v′)x,y;x′,y′​=i∈[k]∏​(Ji​)((xi​,ui​),(yi​,vi​)),((xi′​,ui′​),(yi′​,vi′​))​.

The defined matrix has entry

CS(J)((p,x),(f,y)), ((p′,x′),(f′,y′))=[S(Kx,y;x′,y′)](p,f),(p′,f′).\mathcal C_S(J)_{((p,x),(f,y)),\,((p',x'),(f',y'))} =\bigl[S(K^{x,y;x',y'})\bigr]_{(p,f),(p',f')}.CS​(J)((p,x),(f,y)),((p′,x′),(f′,y′))​=[S(Kx,y;x′,y′)](p,f),(p′,f′)​.

No positivity or normalization assumptions are required. All dimensions may be zero; when k=0k=0k=0, each product of register sets is a singleton and the product defining KKK is 111.

QAlgorithms.Papers.Independent.Extend50.P07.decoder

For natural numbers d,Dd,Dd,D and a complex D×dD\times dD×d matrix VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, this defines a function on every complex D×DD\times DD×D matrix XXX by

DV(X)=V†XV+Tr⁡ ⁣((ID−VV†)X) Id.\mathcal D_V(X) =V^\dagger XV+ \operatorname{Tr}\!\bigl((I_D-VV^\dagger)X\bigr)\,I_d.DV​(X)=V†XV+Tr((ID​−VV†)X)Id​.

The trace in the second term is a complex scalar multiplying the identity matrix IdI_dId​, without a factor 1/d1/d1/d. No positivity or normalization assumption is imposed on XXX, and the definition itself makes no channel assertion. Zero dimensions are included whenever VVV exists; for d=0d=0d=0 the output is the unique 0×00\times00×0 matrix.

QAlgorithms.Papers.Independent.Extend50.P07.embedding

For any natural numbers d,Dd,Dd,D, including zero, this defines a complex D×dD\times dD×d matrix by

Eo,i={1,o=i as natural-number indices,0,otherwise,o∈[D], i∈[d].E_{o,i}= \begin{cases} 1,&o=i\text{ as natural-number indices},\\ 0,&\text{otherwise}, \end{cases} \qquad o\in[D],\ i\in[d].Eo,i​={1,0,​o=i as natural-number indices,otherwise,​o∈[D], i∈[d].

There is no hypothesis d≤Dd\le Dd≤D. Thus when d>Dd>Dd>D, every column indexed by i≥Di\ge Di≥D is zero; when either dimension is zero, the matrix has no entries.

QAlgorithms.Papers.Independent.Extend50.P07.gateTeleport

For natural numbers d,Dd,Dd,D, including zero, and an arbitrary function Λ\LambdaΛ from complex d×dd\times dd×d matrices to complex D×DD\times DD×D matrices, this defines a function in the opposite direction by

[TΛ(X)]i,j=1Dd∑o,q∈[D]Xo,q [Λ(Eij)]o,q,i,j∈[d],[\mathcal T_\Lambda(X)]_{i,j} =\frac{1}{Dd}\sum_{o,q\in[D]} X_{o,q}\,[\Lambda(E_{ij})]_{o,q}, \qquad i,j\in[d],[TΛ​(X)]i,j​=Dd1​o,q∈[D]∑​Xo,q​[Λ(Eij​)]o,q​,i,j∈[d],

where [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1}, EijE_{ij}Eij​ has its sole nonzero entry 111 at (i,j)(i,j)(i,j), and the scalar arithmetic in this formula is complex. There is no conjugation of either factor in the sum, and Λ\LambdaΛ need not be linear or a channel. Division by zero is defined to give zero: if D=0D=0D=0, the resulting d×dd\times dd×d matrix is zero; if d=0d=0d=0, the output matrix is empty.

QAlgorithms.Papers.Independent.Extend50.P07.inversionBound

For natural numbers d,kd,kd,k, first set m=k/(d−1)m=k/(d-1)m=k/(d−1) using natural-number subtraction and division. This defines the real number

{0,m=0,md2+m−1,m≠0.\begin{cases} 0,&m=0,\\[2pt] \dfrac{m}{d^2+m-1},&m\ne0. \end{cases}⎩⎨⎧​0,d2+m−1m​,​m=0,m=0.​

Natural-number subtraction is truncated at zero, and natural-number division by zero equals zero. Consequently the value is 000 for d=0d=0d=0 or d=1d=1d=1; for d≥2d\ge2d≥2, m=⌊k/(d−1)⌋m=\lfloor k/(d-1)\rfloorm=⌊k/(d−1)⌋, so the value is also 000 whenever k<d−1k<d-1k<d−1.

QAlgorithms.Papers.Independent.Extend50.P07.inversionOpt

For natural numbers d,D,kd,D,kd,D,k, write [s]={0,…,s−1}[s]=\{0,\ldots,s-1\}[s]={0,…,s−1} and Wk,s=[s][k]W_{k,s}=[s]^{[k]}Wk,s​=[s][k]. This defines the real supremum of all p∈[0,1]p\in[0,1]p∈[0,1] for which there exist a positive memory dimension hhh, a preprocessing map P(X)=∑ℓEℓXEℓ†\mathcal P(X)=\sum_\ell E_\ell XE_\ell^\daggerP(X)=∑ℓ​Eℓ​XEℓ†​ from [D][D][D] to Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h] with ∑ℓEℓ†Eℓ=ID\sum_\ell E_\ell^\dagger E_\ell=I_D∑ℓ​Eℓ†​Eℓ​=ID​, and matrices Kβ,jK_{\beta,j}Kβ,j​ from Wk,D×[h]W_{k,D}\times[h]Wk,D​×[h] to [d][d][d] with ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I, satisfying the following requirement: for every D×dD\times dD×d matrix VVV with V†V=IdV^\dagger V=I_dV†V=Id​, there is a finite Kraus map RV(Y)=∑ℓFV,ℓYFV,ℓ†R_V(Y)=\sum_\ell F_{V,\ell}YF_{V,\ell}^\daggerRV​(Y)=∑ℓ​FV,ℓ​YFV,ℓ†​ such that RV(VXV†)=XR_V(VXV^\dagger)=XRV​(VXV†)=X for every XXX and

∑jKfalse,j(V⊗k⊗Ih)P(Y)(V⊗k⊗Ih)†Kfalse,j†=p RV(Y)for every Y.\sum_jK_{\mathrm{false},j} (V^{\otimes k}\otimes I_h)\mathcal P(Y) (V^{\otimes k}\otimes I_h)^\dagger K_{\mathrm{false},j}^\dagger=p\,R_V(Y) \quad\text{for every }Y.j∑​Kfalse,j​(V⊗k⊗Ih​)P(Y)(V⊗k⊗Ih​)†Kfalse,j†​=pRV​(Y)for every Y.

Here (V⊗k)u,x=∏i=0k−1Vui,xi(V^{\otimes k})_{u,x}=\prod_{i=0}^{k-1}V_{u_i,x_i}(V⊗k)u,x​=∏i=0k−1​Vui​,xi​​, including the empty product when k=0k=0k=0; no trace-preservation condition is imposed on RVR_VRV​. The definition does not assert attainment of the supremum. Its value is 000 if the defining set is empty, and when no isometry VVV exists the requirement over VVV is vacuous while existence of the protocol remains required.

QAlgorithms.Papers.Independent.Extend50.P07.inversionProbabilities

For natural numbers d,D,kd,D,kd,D,k, this is the set of real numbers p∈[0,1]p\in[0,1]p∈[0,1] for which there exists one protocol with a positive memory dimension hhh, a preprocessing channel P\mathcal PP from [D][D][D] to Wk,d×[h]W_{k,d}\times[h]Wk,d​×[h], and Boolean instrument matrices Kβ,jK_{\beta,j}Kβ,j​ from Wk,D×[h]W_{k,D}\times[h]Wk,D​×[h] to [d][d][d] satisfying ∑β,jKβ,j†Kβ,j=I\sum_{\beta,j}K_{\beta,j}^\dagger K_{\beta,j}=I∑β,j​Kβ,j†​Kβ,j​=I, where [s]={0,…,s−1}[s]=\{0,\ldots,s-1\}[s]={0,…,s−1} and Wk,s=[s][k]W_{k,s}=[s]^{[k]}Wk,s​=[s][k]. The channel P\mathcal PP must have a finite representation P(X)=∑ℓEℓXEℓ†\mathcal P(X)=\sum_\ell E_\ell XE_\ell^\daggerP(X)=∑ℓ​Eℓ​XEℓ†​ with ∑ℓEℓ†Eℓ=ID\sum_\ell E_\ell^\dagger E_\ell=I_D∑ℓ​Eℓ†​Eℓ​=ID​. For every complex D×dD\times dD×d matrix VVV with V†V=IdV^\dagger V=I_dV†V=Id​, there must then exist a function RVR_VRV​ with a finite representation RV(Y)=∑ℓFV,ℓYFV,ℓ†R_V(Y)=\sum_\ell F_{V,\ell}YF_{V,\ell}^\daggerRV​(Y)=∑ℓ​FV,ℓ​YFV,ℓ†​, without any completeness condition on the FV,ℓF_{V,\ell}FV,ℓ​, such that

RV(VXV†)=Xfor every X,∑jKfalse,j(V⊗k⊗Ih)P(Y)(V⊗k⊗Ih)†Kfalse,j†=p RV(Y)for every Y.R_V(VXV^\dagger)=X\quad\text{for every }X, \qquad \sum_jK_{\mathrm{false},j} (V^{\otimes k}\otimes I_h)\mathcal P(Y) (V^{\otimes k}\otimes I_h)^\dagger K_{\mathrm{false},j}^\dagger =p\,R_V(Y)\quad\text{for every }Y.RV​(VXV†)=Xfor every X,j∑​Kfalse,j​(V⊗k⊗Ih​)P(Y)(V⊗k⊗Ih​)†Kfalse,j†​=pRV​(Y)for every Y.

Here (V⊗k)u,x=∏i=0k−1Vui,xi(V^{\otimes k})_{u,x}=\prod_{i=0}^{k-1}V_{u_i,x_i}(V⊗k)u,x​=∏i=0k−1​Vui​,xi​​, with empty product 111. Zero parameters are included; if no such VVV exists, the universal requirement concerning VVV is vacuous, but the protocol must still exist.

QAlgorithms.Papers.Independent.Extend50.P07.oneSlot

For natural numbers d,Dd,Dd,D, including zero, and any complex matrix JJJ indexed by [d]×[D][d]\times[D][d]×[D], this defines a matrix indexed by [d]1×[D]1[d]^1\times[D]^1[d]1×[D]1 by

J~(u,v),(u′,v′)=J(u(0),v(0)),(u′(0),v′(0)),\widetilde J_{(u,v),(u',v')} =J_{(u(0),v(0)),(u'(0),v'(0))},J(u,v),(u′,v′)​=J(u(0),v(0)),(u′(0),v′(0))​,

where [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1} and [n]1[n]^1[n]1 denotes functions from the singleton [1][1][1] to [n][n][n]. No positivity or normalization is assumed. If either dimension is zero, both indexing sets are empty.

QAlgorithms.Papers.Independent.Extend50.P07.oracleCopies

For natural numbers d,D,kd,D,kd,D,k and a complex D×dD\times dD×d matrix VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, let Wk,s={0,…,s−1}{0,…,k−1}W_{k,s}=\{0,\ldots,s-1\}^{\{0,\ldots,k-1\}}Wk,s​={0,…,s−1}{0,…,k−1}. This defines a function from matrices on Wk,dW_{k,d}Wk,d​ to matrices on Wk,DW_{k,D}Wk,D​ by

[Ok,V(X)]y,y′=∑x,x′∈Wk,dXx,x′∏i=0k−1Vyi,xi Vyi′,xi′‾.[\mathcal O_{k,V}(X)]_{y,y'} =\sum_{x,x'\in W_{k,d}}X_{x,x'} \prod_{i=0}^{k-1}V_{y_i,x_i}\,\overline{V_{y'_i,x'_i}}.[Ok,V​(X)]y,y′​=x,x′∈Wk,d​∑​Xx,x′​i=0∏k−1​Vyi​,xi​​Vyi′​,xi′​​​.

Equivalently, it sends XXX to V⊗kX(V⊗k)†V^{\otimes k}X(V^{\otimes k})^\daggerV⊗kX(V⊗k)†, with the tensor matrix defined entrywise by the displayed product. When k=0k=0k=0, both word registers are singletons, the empty product is 111, and this is the identity on scalar matrices; d=0d=0d=0 and D=0D=0D=0 are otherwise included whenever the stated isometry exists.

QAlgorithms.Papers.Independent.Extend50.P07.pseudoConjugate

For natural numbers d,Dd,Dd,D, including zero, and a complex D×dD\times dD×d matrix VVV satisfying V†V=IdV^\dagger V=I_dV†V=Id​, this defines a function from complex d×dd\times dd×d matrices to complex D×DD\times DD×D matrices by

X⟼V‾ X (V‾)†+tr⁡(X)  ID−VV† ‾,X\longmapsto \overline V\,X\,(\overline V)^\dagger +\operatorname{tr}(X)\,\overline{\,I_D-VV^\dagger\,},X⟼VX(V)†+tr(X)ID​−VV†​,

where bars denote entrywise complex conjugation and †\dagger† denotes conjugate transpose. The argument XXX is arbitrary; it need not be positive or have trace one. The hypothesis on VVV cannot hold when d>Dd>Dd>D. When d=0d=0d=0, the function sends the unique empty input matrix to the zero D×DD\times DD×D matrix.

QAlgorithms.Papers.Independent.Extend50.P07.repeatProtocol

For any natural numbers d,D,kd,D,kd,D,k and any fixed general round AAA taking a DDD-dimensional input to a DDD-dimensional output, this defines a finite sequence containing mmm repetitions of AAA, for every natural number mmm, by

T0=stop,Tm+1=attempt(A,Tm).T_0=\mathrm{stop},\qquad T_{m+1}=\mathrm{attempt}(A,T_m).T0​=stop,Tm+1​=attempt(A,Tm​).

Here a general round consists of two complex-linear maps SA,FAS_A,F_ASA​,FA​ from matrices indexed by [d]k×[D]k[d]^k\times[D]^k[d]k×[D]k to matrices indexed by [D]×[D][D]\times[D][D]×[D], with positive semidefinite ordinary Choi matrices, where [h]={0,…,h−1}[h]=\{0,\ldots,h-1\}[h]={0,…,h−1}. For every choice of positive auxiliary input and output dimensions in each oracle slot and every family of positive semidefinite slot Choi matrices with output partial trace equal to the input identity, applying these maps to the oracle indices of the tensor product while retaining auxiliary indices produces positive semidefinite outputs, and their sum has output partial trace equal to the input identity. Thus m=0m=0m=0 gives the stopped sequence, and each successor adds one occurrence of exactly the same round AAA. The parameters d,D,kd,D,kd,D,k may be zero.

QAlgorithms.Papers.Independent.Extend50.P07.tensorRight

For arbitrary types I,O,AI,O,AI,O,A and any function Φ\PhiΦ from complex matrices indexed by I×II\times II×I to complex matrices indexed by O×OO\times OO×O, this defines a function on matrices with an additional AAA register by

[tensorRight⁡(Φ)(X)](o,a),(o′,b)=[Φ ⁣((X(i,a),(j,b))i,j∈I)]o,o′.[\operatorname{tensorRight}(\Phi)(X)]_{(o,a),(o',b)} =\left[\Phi\!\left((X_{(i,a),(j,b)})_{i,j\in I}\right)\right]_{o,o'}.[tensorRight(Φ)(X)](o,a),(o′,b)​=[Φ((X(i,a),(j,b)​)i,j∈I​)]o,o′​.

Thus Φ\PhiΦ is applied separately to each matrix block determined by the two AAA indices. No finiteness, nonemptiness, linearity, positivity, or normalization assumptions are imposed on these types or on Φ\PhiΦ.

QAlgorithms.Papers.Independent.Extend50.P07.transposeChoi

For arbitrary types I,OI,OI,O, with no finiteness assumptions, and any complex matrix JJJ whose rows and columns are indexed by I×OI\times OI×O, this defines a matrix with rows and columns indexed by O×IO\times IO×I through

J~(o,i),(o′,i′)=J(i,o),(i′,o′).\widetilde J_{(o,i),(o',i')}=J_{(i,o),(i',o')}.J(o,i),(o′,i′)​=J(i,o),(i′,o′)​.

Thus both the row index and the column index have their two coordinates exchanged. No positivity, normalization, or channel condition is imposed on JJJ; empty index types are allowed.

QAlgorithms.Papers.Independent.Extend50.P07.transposeSuperChoi

For natural numbers d,Dd,Dd,D and an arbitrary real number ppp, this defines a complex square matrix indexed by ([d]1×[D]1)×([D]×[d])([d]^1\times[D]^1)\times([D]\times[d])([d]1×[D]1)×([D]×[d]), where [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1} and [n]1[n]^1[n]1 is the set of functions from the singleton [1][1][1] to [n][n][n]. Its entries are

T((u,v),(o,i)), ((u′,v′),(o′,i′))={p,v(0)=o, u(0)=i, v′(0)=o′, u′(0)=i′,0,otherwise,T_{((u,v),(o,i)),\,((u',v'),(o',i'))} = \begin{cases} p,&v(0)=o,\ u(0)=i,\ v'(0)=o',\ u'(0)=i',\\ 0,&\text{otherwise}, \end{cases}T((u,v),(o,i)),((u′,v′),(o′,i′))​={p,0,​v(0)=o, u(0)=i, v′(0)=o′, u′(0)=i′,otherwise,​

with ppp regarded as complex. No sign or probability bounds are imposed on ppp. If d=0d=0d=0 or D=0D=0D=0, the indexing set is empty.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me