Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Minimal Port-based Teleportation

Definition
QAlgorithms_Papers_Independent_Extend50_P08

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

prove2quantum

The objects the formalized statements of Minimal Port-based Teleportation (arXiv:2111.05499) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • Ports: Computational coordinates of N ports of dimension d (PDF p.3).
  • AC: Alice's N ports and input C, in that order (PDF pp.3–4).
  • AliceMatrix: Alice's resource-filter matrix (PDF p.3, Eq.(1)).
  • EffectMatrix: Effects on Alice and the input (PDF p.3).
  • Effects: Physical outcomes: none is failure, some i names the retained port (PDF p.4).
  • liftAlice: Extend an Alice filter by the identity on C (PDF p.10, Eq.(32)).
  • resource: The physical filtered, normalized Bell resource of Eq.(1), PDF p.3. Normalization is a property of filters with Tr(O†O)=d^N, not imposed by rescaling O.
  • IsPhysicalPBT: Physical PBT data: trace-normalized resource filter and a complete PSD POVM including failure; Bob's retained-port action is fixed by branch below (PDF pp.3–4).
  • pulledBackEffect: Effective effect O† M O; the physical M and effective effect are distinct (PDF p.4, Eq.(6)).
  • portBellEffect: Eq.(3), PDF p.3: identity on all other ports times the normalized Bell projector. The other-port identity does not require the retained coordinates to coincide.
  • pbtSignal: The normalized signal state sigma_i, PDF p.3, Eq.(3).
  • pbtSignalSum: rho has trace N, not one (PDF pp.3,7, Eq.(18)).
  • inverseSqrtScalar: Scalar support inverse square root: zero eigenvalues stay zero (PDF p.4).
  • supportInverseSqrt: Support inverse square root of the particular PBT rho (PDF p.7, Eq.(18)).
  • srm: Uncompleted SRM effect of Eq.(18), PDF p.7.
  • srmFailureEffect: The SRM failure effect Delta, PDF pp.4,7.
  • minimalEffects: Minimal PBT's physical N+1-outcome family, PDF p.7.
  • redistribute: Uniformly redistribute the physical failure effect (PDF p.11, Eq.(39)). The resulting family has a zero failure effect. N>0 is required in uses.
  • completedEffects: Corresponding completed deterministic SRM, with the same resource (PDF pp.4,10).
  • retainedPortBranch: Retain B_i and discard the other B ports after Alice's outcome i (PDF p.3, Eq.(2)). This is the exact coordinate contraction of M with (O tensor I)|Psi+>: the reversed AC indices implement the partial trace. All input off-diagonal blocks are retained, so this acts on entangled inputs.
  • successfulMap: Sum of successful retained-port branches (PDF pp.3–4).
  • pbtSuccess: Average/Choi success, Tr(T(I/d)), not a worst-input success bound (PDF p.4, Eq.(6)).
  • conditionalFidelity: Conditional entanglement fidelity; uses have strictly positive success (PDF p.10, Eq.(35)).
  • IsExact: Exact pPBT means each successful branch is a nonnegative multiple of the identity channel on every matrix, not just on one input (PDF p.4, Eq.(7)).
  • IsConvergent: A physical family converges when its two figures of merit tend to one, on an eventually positive-success domain (PDF p.7, Definition 1).
  • irrepDim: Actual symmetric-group irrep dimension d_lambda (PDF p.5).
  • pbtSchurMultiplicity: Actual Schur–Weyl multiplicity m_lambda, counted by SSYTs (PDF p.5).
  • OneBox: One added box, including the empty predecessor at N=1 (PDF pp.4–5). The size equation is explicit even on the unused N=0 domain.
  • teleportationMatrix: Young-branching incidence Gram matrix on dimension-truncated shapes. Source [23], arXiv:1707.08456, Definition 3 and Theorem 23, PDF pp.7,14; this is the actual matrix referred to on PDF pp.9,20 of the present paper.
  • teleportationRayleigh: Rayleigh quadratic form of the concrete teleportation matrix (source [23] §4).
  • IsPrincipal: Nonnegative unit principal eigenvector, expressed equivalently by maximizing its Rayleigh form over the real unit sphere (PDF pp.9,15,20).
  • deterministicFilter: Deterministic-optimal central filter, using the same vector v throughout (PDF p.9 Eq.(30), p.20 Eq.(A9)).
  • probabilisticNormalization: g(N) of Eq.(A6), PDF p.20; physical-domain positivity is not assumed.
  • probabilisticFilter: Canonical optimal pPBT filter, Eq.(A5), PDF p.20.
  • skipPort: Delete the selected port from the ordered computational coordinates.
  • probabilisticCoefficient: Eq.(A6)'s u_alpha, PDF p.20. Uses N≥1.
  • probabilisticEffective: Canonical EFFECTIVE success effect from Eq.(A5), PDF p.20. The factor 1/d is the normalized Bell projector, with the complementary Young projector embedded on exactly the other N-1 ports.
  • probabilisticInverse: Inverse of the positive, full-support canonical pPBT filter, Eq.(A5). Its invertibility on the physical domain is a consequence of its coefficients.
  • probabilisticPhysical: Physical successful effect obtained by undoing the resource pullback, consistent with Eqs.(6),(7),(A5), PDF pp.4,20.
  • probabilisticEffects: Complete PHYSICAL optimal pPBT POVM, PDF pp.4,20.
  • minimalSuccessFormula: The sum in Theorem 2, Eq.(19), PDF p.7.
  • bellDeterministicFormula: The deterministic Bell-resource numerator (A10), PDF p.20.
  • optimizedSuccessFormula: Principal-vector success evaluation in Theorem 3, Eq.(31), PDF p.10.
  • resourceOverlap: Root fidelity of the two specified filtered pure resources (PDF pp.14–16, Appendix C). These vectors are normalized on the stated domains.
  • qubitPrincipal: Explicit qubit principal vector in shape coordinates, from the positive square root of gamma(j) in Eqs.(55),(59), PDF pp.15–16.
  • qubitResourceOverlap: The overlap for the actual qubit filters, not an independently chosen sum.
  • qubitOverlapFormula: Eq.(56), PDF p.15, reindexed by k=N/2-j, k=0,...,floor(N/2). Subtraction takes place in R; parity is preserved without real factorials.
  • unnormalizedBell: Unnormalized entangled vector of Lemma 12, PDF p.21.
  • denseUnnormalized: Unnormalized remote postmeasurement state; entanglement transfer gives the TRANSPOSE, before using the particular real SRM symmetry (PDF p.17, Eq.(67)).
  • denseProbability: Remote outcome probability, constructed from the state (PDF p.17).
  • denseState: The state on ALL B ports and D conditional on outcome i (PDF p.17, Eq.(68)).
  • denseFidelity: F_{i|k}, Bell effect on B_k D extended by identity on the other B ports (PDF p.17, Eq.(70)).
  • denseTransition: Constructed classical transition coefficients, PDF p.17, Eq.(69).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Defs_Ensemble

/-!
Minimal Port-based Teleportation, arXiv:2111.05499v2.
Paper-local physical constructions. No mixed-tower projector is postulated.
The formulas for branches below are the coordinate contraction of the filtered
Bell resource with Alice's effect, followed by discarding all unretained ports.
-/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P08

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Computational coordinates of N ports of dimension d (PDF p.3). -/
abbrev Ports (d N : ℕ) := Fin N → Fin d

/-- Alice's N ports and input C, in that order (PDF pp.3–4). -/
abbrev AC (d N : ℕ) := Ports d N × Fin d

/-- Alice's resource-filter matrix (PDF p.3, Eq.(1)). -/
abbrev AliceMatrix (d N : ℕ) := Matrix (Ports d N) (Ports d N) ℂ

/-- Effects on Alice and the input (PDF p.3). -/
abbrev EffectMatrix (d N : ℕ) := Matrix (AC d N) (AC d N) ℂ

/-- Physical outcomes: none is failure, some i names the retained port (PDF p.4). -/
abbrev Effects (d N : ℕ) := Option (Fin N) → EffectMatrix d N

/-- Extend an Alice filter by the identity on C (PDF p.10, Eq.(32)). -/
def liftAlice {d N : ℕ} (O : AliceMatrix d N) : EffectMatrix d N :=
  Matrix.kronecker O (1 : Matrix (Fin d) (Fin d) ℂ)

/-- The physical filtered, normalized Bell resource of Eq.(1), PDF p.3.
Normalization is a property of filters with Tr(O†O)=d^N, not imposed by rescaling O. -/
def resource {d N : ℕ} (hd : 0 < d) (O : AliceMatrix d N) :
    EuclideanSpace ℂ (Ports d N × Ports d N) :=
  letI : Nonempty (Fin d) := ⟨⟨0, hd⟩⟩
  act (Matrix.kronecker O (1 : AliceMatrix d N)) (finiteMaxEntangled (Ports d N))

/-- Physical PBT data: trace-normalized resource filter and a complete PSD POVM
including failure; Bob's retained-port action is fixed by branch below (PDF pp.3–4). -/
def IsPhysicalPBT {d N : ℕ} (O : AliceMatrix d N) (M : Effects d N) : Prop :=
  0 < N ∧ 2 ≤ d ∧ (Oᴴ * O).trace = (d : ℂ) ^ N ∧ IsPOVM M

/-- Effective effect O† M O; the physical M and effective effect are distinct
(PDF p.4, Eq.(6)). -/
def pulledBackEffect {d N : ℕ} (O : AliceMatrix d N) (M : EffectMatrix d N) : EffectMatrix d N :=
  (liftAlice O)ᴴ * M * liftAlice O

/-- Eq.(3), PDF p.3: identity on all other ports times the normalized Bell projector.
The other-port identity does not require the retained coordinates to coincide. -/
def portBellEffect (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  Matrix.of fun x y =>
    if (∀ j : Fin N, j ≠ i → x.1 j = y.1 j) ∧ x.1 i = x.2 ∧ y.1 i = y.2
    then (d : ℂ)⁻¹ else 0

/-- The normalized signal state sigma_i, PDF p.3, Eq.(3). -/
def pbtSignal (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  (((d : ℝ) ^ (N - 1))⁻¹) • portBellEffect d N i

/-- rho has trace N, not one (PDF pp.3,7, Eq.(18)). -/
def pbtSignalSum (d N : ℕ) : EffectMatrix d N := ∑ i : Fin N, pbtSignal d N i

/-- Scalar support inverse square root: zero eigenvalues stay zero (PDF p.4). -/
def inverseSqrtScalar (x : ℝ) : ℝ := (Real.sqrt x)⁻¹

/-- Support inverse square root of the particular PBT rho (PDF p.7, Eq.(18)). -/
def supportInverseSqrt (d N : ℕ) : EffectMatrix d N :=
  cfc inverseSqrtScalar (pbtSignalSum d N)

/-- Uncompleted SRM effect of Eq.(18), PDF p.7. -/
def srm (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  supportInverseSqrt d N * pbtSignal d N i * supportInverseSqrt d N

/-- The SRM failure effect Delta, PDF pp.4,7. -/
def srmFailureEffect (d N : ℕ) : EffectMatrix d N := 1 - ∑ i : Fin N, srm d N i

/-- Minimal PBT's physical N+1-outcome family, PDF p.7. -/
def minimalEffects (d N : ℕ) : Effects d N
  | none => srmFailureEffect d N
  | some i => srm d N i

/-- Uniformly redistribute the physical failure effect (PDF p.11, Eq.(39)).
The resulting family has a zero failure effect. N>0 is required in uses. -/
def redistribute {d N : ℕ} (M : Effects d N) : Effects d N
  | none => 0
  | some i => M (some i) + ((N : ℝ)⁻¹) • M none

/-- Corresponding completed deterministic SRM, with the same resource
(PDF pp.4,10). -/
def completedEffects (d N : ℕ) : Effects d N := redistribute (minimalEffects d N)

/-- Retain B_i and discard the other B ports after Alice's outcome i
(PDF p.3, Eq.(2)). This is the exact coordinate contraction of M with
(O tensor I)|Psi+>: the reversed AC indices implement the partial trace.
All input off-diagonal blocks are retained, so this acts on entangled inputs. -/
def retainedPortBranch {d N : ℕ} (O : AliceMatrix d N) (M : EffectMatrix d N) (i : Fin N) :
    Superop (Fin d) (Fin d) :=
  fun X => Matrix.of fun b b' =>
    ((d : ℂ) ^ N)⁻¹ *
      ∑ x : Ports d N, ∑ y : Ports d N,
        if x i = b ∧ y i = b' ∧ (∀ j : Fin N, j ≠ i → x j = y j) then
          ∑ c : Fin d, ∑ c' : Fin d, pulledBackEffect O M (y, c') (x, c) * X c c'
        else 0

/-- Sum of successful retained-port branches (PDF pp.3–4). -/
def successfulMap {d N : ℕ} (O : AliceMatrix d N) (M : Effects d N) :
    Superop (Fin d) (Fin d) := fun X => ∑ i : Fin N, retainedPortBranch O (M (some i)) i X

/-- Average/Choi success, Tr(T(I/d)), not a worst-input success bound
(PDF p.4, Eq.(6)). -/
def pbtSuccess {d N : ℕ} (O : AliceMatrix d N) (M : Effects d N) : ℝ :=
  ((successfulMap O M) (((d : ℂ)⁻¹) • (1 : Matrix (Fin d) (Fin d) ℂ))).trace.re

/-- Conditional entanglement fidelity; uses have strictly positive success
(PDF p.10, Eq.(35)). -/
def conditionalFidelity {d N : ℕ} (hd : 0 < d) (O : AliceMatrix d N) (M : Effects d N) : ℝ :=
  QuditFidelity.entanglementFidelity d hd (successfulMap O M) / pbtSuccess O M

/-- Exact pPBT means each successful branch is a nonnegative multiple of the
identity channel on every matrix, not just on one input (PDF p.4, Eq.(7)). -/
def IsExact {d N : ℕ} (O : AliceMatrix d N) (M : Effects d N) : Prop :=
  ∀ i : Fin N, ∃ p : ℝ, 0 ≤ p ∧ ∀ X : Matrix (Fin d) (Fin d) ℂ,
    retainedPortBranch O (M (some i)) i X = (p : ℂ) • X

/-- A physical family converges when its two figures of merit tend to one,
on an eventually positive-success domain (PDF p.7, Definition 1). -/
def IsConvergent (d : ℕ) (hd : 0 < d) (O : (N : ℕ) → AliceMatrix d N)
    (M : (N : ℕ) → Effects d N) : Prop :=
  (∀ N, 0 < N → IsPhysicalPBT (O N) (M N)) ∧
  (∀ᶠ N in Filter.atTop, 0 < pbtSuccess (O N) (M N)) ∧
  Filter.Tendsto (fun N => pbtSuccess (O N) (M N)) Filter.atTop (nhds 1) ∧
  Filter.Tendsto (fun N => conditionalFidelity hd (O N) (M N)) Filter.atTop (nhds 1)

/-- Actual symmetric-group irrep dimension d_lambda (PDF p.5). -/
def irrepDim {d n : ℕ} (lambda : Schur.Partition d n) : ℝ :=
  Module.finrank ℂ (Schur.spechtSpace lambda)

/-- Actual Schur–Weyl multiplicity m_lambda, counted by SSYTs (PDF p.5). -/
def pbtSchurMultiplicity {d n : ℕ} (lambda : Schur.Partition d n) : ℝ := Schur.schurDimension lambda

/-- One added box, including the empty predecessor at N=1 (PDF pp.4–5).
The size equation is explicit even on the unused N=0 domain. -/
def OneBox {d n m : ℕ} (alpha : Schur.Partition d n) (mu : Schur.Partition d m) : Prop :=
  m = n + 1 ∧ alpha.val.cells ⊆ mu.val.cells

/-- Young-branching incidence Gram matrix on dimension-truncated shapes.
Source [23], arXiv:1707.08456, Definition 3 and Theorem 23, PDF pp.7,14;
this is the actual matrix referred to on PDF pp.9,20 of the present paper. -/
def teleportationMatrix (d N : ℕ) : Matrix (Schur.Partition d N) (Schur.Partition d N) ℝ :=
  Matrix.of fun mu nu => ∑ alpha : Schur.Partition d (N - 1),
    if OneBox alpha mu ∧ OneBox alpha nu then 1 else 0

/-- Rayleigh quadratic form of the concrete teleportation matrix (source [23] §4). -/
def teleportationRayleigh {d N : ℕ} (v : Schur.Partition d N → ℝ) : ℝ :=
  ∑ mu, ∑ nu, v mu * teleportationMatrix d N mu nu * v nu

/-- Nonnegative unit principal eigenvector, expressed equivalently by maximizing
its Rayleigh form over the real unit sphere (PDF pp.9,15,20). -/
def IsPrincipal {d N : ℕ} (v : Schur.Partition d N → ℝ) : Prop :=
  (∀ mu, 0 ≤ v mu) ∧ (∑ mu, (v mu) ^ 2) = 1 ∧
    ∀ w : Schur.Partition d N → ℝ, (∑ mu, (w mu) ^ 2) = 1 →
      teleportationRayleigh w ≤ teleportationRayleigh v

/-- Deterministic-optimal central filter, using the same vector v throughout
(PDF p.9 Eq.(30), p.20 Eq.(A9)). -/
def deterministicFilter {d N : ℕ} (v : Schur.Partition d N → ℝ) : AliceMatrix d N :=
  ∑ mu, ((Real.sqrt ((d : ℝ) ^ N) * v mu /
    Real.sqrt (irrepDim mu * pbtSchurMultiplicity mu) : ℝ) : ℂ) • Schur.isotypicProjector mu

/-- g(N) of Eq.(A6), PDF p.20; physical-domain positivity is not assumed. -/
def probabilisticNormalization (d N : ℕ) : ℝ :=
  (∑ mu : Schur.Partition d N, (pbtSchurMultiplicity mu) ^ 2)⁻¹

/-- Canonical optimal pPBT filter, Eq.(A5), PDF p.20. -/
def probabilisticFilter (d N : ℕ) : AliceMatrix d N :=
  ∑ mu : Schur.Partition d N,
    ((Real.sqrt ((d : ℝ) ^ N) *
      Real.sqrt (probabilisticNormalization d N * pbtSchurMultiplicity mu / irrepDim mu) : ℝ) : ℂ) •
      Schur.isotypicProjector mu

/-- Delete the selected port from the ordered computational coordinates. -/
def skipPort {N : ℕ} (i : Fin N) (j : Fin (N - 1)) : Fin N :=
  ⟨if j.val < i.val then j.val else j.val + 1, by
    have hi := i.isLt
    have hj := j.isLt
    split <;> omega⟩

/-- Eq.(A6)'s u_alpha, PDF p.20. Uses N≥1. -/
def probabilisticCoefficient {d N : ℕ} (alpha : Schur.Partition d (N - 1)) : ℝ :=
  (d : ℝ) ^ (N + 1) * probabilisticNormalization d N * pbtSchurMultiplicity alpha /
    ((N : ℝ) * irrepDim alpha)

/-- Canonical EFFECTIVE success effect from Eq.(A5), PDF p.20.
The factor 1/d is the normalized Bell projector, with the complementary
Young projector embedded on exactly the other N-1 ports. -/
def probabilisticEffective (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  Matrix.of fun x y =>
    ∑ alpha : Schur.Partition d (N - 1),
      ((probabilisticCoefficient (d := d) (N := N) alpha / d : ℝ) : ℂ) *
        Schur.isotypicProjector alpha (fun j => x.1 (skipPort i j))
          (fun j => y.1 (skipPort i j)) *
        (if x.1 i = x.2 ∧ y.1 i = y.2 then 1 else 0)

/-- Inverse of the positive, full-support canonical pPBT filter, Eq.(A5).
Its invertibility on the physical domain is a consequence of its coefficients. -/
def probabilisticInverse (d N : ℕ) : AliceMatrix d N :=
  cfc (fun x : ℝ => x⁻¹) (probabilisticFilter d N)

/-- Physical successful effect obtained by undoing the resource pullback,
consistent with Eqs.(6),(7),(A5), PDF pp.4,20. -/
def probabilisticPhysical (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  liftAlice (probabilisticInverse d N) * probabilisticEffective d N i *
    liftAlice (probabilisticInverse d N)

/-- Complete PHYSICAL optimal pPBT POVM, PDF pp.4,20. -/
def probabilisticEffects (d N : ℕ) : Effects d N
  | none => 1 - ∑ i : Fin N, probabilisticPhysical d N i
  | some i => probabilisticPhysical d N i

/-- The sum in Theorem 2, Eq.(19), PDF p.7. -/
def minimalSuccessFormula (d N : ℕ) : ℝ :=
  (∑ alpha : Schur.Partition d (N - 1), ∑ mu : Schur.Partition d N,
    if OneBox alpha mu then irrepDim mu * pbtSchurMultiplicity alpha else 0) / (d : ℝ) ^ (N + 1)

/-- The deterministic Bell-resource numerator (A10), PDF p.20. -/
def bellDeterministicFormula (d N : ℕ) : ℝ :=
  (∑ alpha : Schur.Partition d (N - 1),
    (∑ mu : Schur.Partition d N,
      if OneBox alpha mu then Real.sqrt (irrepDim mu * pbtSchurMultiplicity mu) else 0) ^ 2) /
    (d : ℝ) ^ (N + 2)

/-- Principal-vector success evaluation in Theorem 3, Eq.(31), PDF p.10. -/
def optimizedSuccessFormula {d N : ℕ} (v : Schur.Partition d N → ℝ) : ℝ :=
  (∑ alpha : Schur.Partition d (N - 1), ∑ mu : Schur.Partition d N,
    if OneBox alpha mu then pbtSchurMultiplicity alpha / pbtSchurMultiplicity mu * (v mu) ^ 2 else 0) / d

/-- Root fidelity of the two specified filtered pure resources
(PDF pp.14–16, Appendix C). These vectors are normalized on the stated domains. -/
def resourceOverlap {d N : ℕ} (hd : 0 < d) (O P : AliceMatrix d N) : ℝ :=
  ‖inner ℂ (resource hd O) (resource hd P)‖

/-- Explicit qubit principal vector in shape coordinates, from the positive
square root of gamma(j) in Eqs.(55),(59), PDF pp.15–16. -/
def qubitPrincipal (N : ℕ) (mu : Schur.Partition 2 N) : ℝ :=
  2 / Real.sqrt (N + 2) *
    Real.sin (Real.pi * ((mu.val.rowLen 0 : ℝ) - (mu.val.rowLen 1 : ℝ) + 1) / (N + 2))

/-- The overlap for the actual qubit filters, not an independently chosen sum. -/
def qubitResourceOverlap (N : ℕ) : ℝ :=
  resourceOverlap (by norm_num : 0 < 2) (probabilisticFilter 2 N)
    (deterministicFilter (qubitPrincipal N))

/-- Eq.(56), PDF p.15, reindexed by k=N/2-j, k=0,...,floor(N/2).
Subtraction takes place in R; parity is preserved without real factorials. -/
def qubitOverlapFormula (N : ℕ) : ℝ :=
  2 / (N + 2) * Real.sqrt (6 / (((N : ℝ) + 1) * (N + 3))) *
    ∑ k ∈ Finset.range (N / 2 + 1),
      ((N : ℝ) - 2 * k + 1) *
        Real.sin (Real.pi * ((N : ℝ) - 2 * k + 1) / (N + 2))

/-- Unnormalized entangled vector of Lemma 12, PDF p.21. -/
def unnormalizedBell (d : ℕ) : EuclideanSpace ℂ (Fin d × Fin d) :=
  WithLp.toLp 2 fun p => if p.1 = p.2 then 1 else 0

/-- Unnormalized remote postmeasurement state; entanglement transfer gives the
TRANSPOSE, before using the particular real SRM symmetry (PDF p.17, Eq.(67)). -/
def denseUnnormalized (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  (((d : ℝ) ^ (N + 1))⁻¹) • (completedEffects d N (some i))ᵀ

/-- Remote outcome probability, constructed from the state (PDF p.17). -/
def denseProbability (d N : ℕ) (i : Fin N) : ℝ := (denseUnnormalized d N i).trace.re

/-- The state on ALL B ports and D conditional on outcome i (PDF p.17, Eq.(68)). -/
def denseState (d N : ℕ) (i : Fin N) : EffectMatrix d N :=
  (denseProbability d N i)⁻¹ • denseUnnormalized d N i

/-- F_{i|k}, Bell effect on B_k D extended by identity on the other B ports
(PDF p.17, Eq.(70)). -/
def denseFidelity (d N : ℕ) (i k : Fin N) : ℝ :=
  effectProb (portBellEffect d N k) (denseState d N i)

/-- Constructed classical transition coefficients, PDF p.17, Eq.(69). -/
def denseTransition (d N : ℕ) (i k : Fin N) : ℝ :=
  (d : ℝ) ^ 2 * denseProbability d N i * denseFidelity d N i k

/-! Sanity examples pin bad-input defaults and physical register conventions. -/

example : inverseSqrtScalar 0 = 0 ∧ inverseSqrtScalar 1 = 1 := by
  simp [inverseSqrtScalar]

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

example {d N : ℕ} (M : Effects d N) : redistribute M none = 0 := rfl

example (d N : ℕ) : ∑ i : Fin N, srm d N i + srmFailureEffect d N = 1 := by
  unfold srmFailureEffect
  abel

example {d N : ℕ} (O : AliceMatrix d N) (i : Fin N) :
    retainedPortBranch O (0 : EffectMatrix d N) i = fun _ => 0 := by
  funext X
  ext b b'
  simp [retainedPortBranch, pulledBackEffect]

example (b : Fin 2) :
    portBellEffect 2 1 (0 : Fin 1) ((fun _ => b), b) ((fun _ => b), b) = (2 : ℂ)⁻¹ := by
  simp [portBellEffect]

example : unnormalizedBell 2 (0, 1) = 0 ∧ unnormalizedBell 2 (1, 1) = 1 := by
  simp [unnormalizedBell]

end QAlgorithms.Papers.Independent.Extend50.P08
Source
Minimal Port-based Teleportation, arXiv:2111.05499v2, https://arxiv.org/abs/2111.05499v2
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P08.AC

For natural numbers d,Nd,Nd,N, AC(d,N)\mathrm{AC}(d,N)AC(d,N) is the type of pairs (x,c)(x,c)(x,c), where x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} and c∈{0,…,d−1}c\in\{0,\ldots,d-1\}c∈{0,…,d−1}. It is empty when d=0d=0d=0. When N=0N=0N=0, the first component is the unique empty tuple, so the pairs are indexed solely by ccc.

QAlgorithms.Papers.Independent.Extend50.P08.AliceMatrix

For natural numbers d,Nd,Nd,N, AliceMatrix(d,N)\mathrm{AliceMatrix}(d,N)AliceMatrix(d,N) is the type of complex matrices whose rows and columns are indexed by length-NNN tuples of elements of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. These are dN×dNd^N\times d^NdN×dN matrices, with 00=10^0=100=1. In particular, N=0N=0N=0 gives a 1×11\times11×1 matrix type, while d=0d=0d=0 and N>0N>0N>0 gives the type containing the unique matrix with empty row and column index sets.

QAlgorithms.Papers.Independent.Extend50.P08.EffectMatrix

For natural numbers d,Nd,Nd,N, EffectMatrix(d,N)\mathrm{EffectMatrix}(d,N)EffectMatrix(d,N) is the type of complex matrices whose rows and columns are indexed by pairs (x,c)(x,c)(x,c) with x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} and c∈{0,…,d−1}c\in\{0,\ldots,d-1\}c∈{0,…,d−1}. No positivity or normalization condition is part of this type. When d=0d=0d=0, the index set is empty; when N=0N=0N=0, it is identified with {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}.

QAlgorithms.Papers.Independent.Extend50.P08.Effects

For natural numbers d,Nd,Nd,N, Effects(d,N)\mathrm{Effects}(d,N)Effects(d,N) is the type of families MMM indexed by one distinguished label none\mathrm{none}none together with labels some(i)\mathrm{some}(i)some(i) for every i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}. Each value is a complex matrix indexed in both coordinates by pairs (x,c)(x,c)(x,c), where xxx is a length-NNN tuple of labels from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} and ccc is another such label. This type imposes no positivity or sum condition. For N=0N=0N=0, the family has only the value at none\mathrm{none}none.

QAlgorithms.Papers.Independent.Extend50.P08.IsConvergent

For a natural number d>0d>0d>0, let ONO_NON​ be a complex matrix indexed by PN={0,…,d−1}{0,…,N−1}P_N=\{0,\ldots,d-1\}^{\{0,\ldots,N-1\}}PN​={0,…,d−1}{0,…,N−1}, and let MNM_NMN​ assign a complex matrix on PN×{0,…,d−1}P_N\times\{0,\ldots,d-1\}PN​×{0,…,d−1} to each outcome in {none}∪{0,…,N−1}\{\mathrm{none}\}\cup\{0,\ldots,N-1\}{none}∪{0,…,N−1}, for every natural number NNN. Put LN=ON⊗IdL_N=O_N\otimes I_dLN​=ON​⊗Id​, and define, for each port i<Ni<Ni<N, a map BN,iB_{N,i}BN,i​ on d×dd\times dd×d matrices by

BN,i(X)b,b′=d−N∑x,y∈PNxi=b, yi=b′xj=yj for every j≠i ∑c,c′<d(LN†MN(some i)LN)(y,c′),(x,c)Xc,c′.B_{N,i}(X)_{b,b'} =d^{-N} \sum_{\substack{x,y\in P_N\\x_i=b,\ y_i=b'\\x_j=y_j\ \text{for every }j\ne i}} \ \sum_{c,c'<d} \bigl(L_N^\dagger M_N(\mathrm{some}\ i)L_N\bigr)_{(y,c'),(x,c)}X_{c,c'}.BN,i​(X)b,b′​=d−Nx,y∈PN​xi​=b, yi​=b′xj​=yj​ for every j=i​∑​ c,c′<d∑​(LN†​MN​(some i)LN​)(y,c′),(x,c)​Xc,c′​.

Set TN(X)=∑i<NBN,i(X)T_N(X)=\sum_{i<N}B_{N,i}(X)TN​(X)=∑i<N​BN,i​(X), sN=Re⁡tr⁡(TN(Id/d))s_N=\operatorname{Re}\operatorname{tr}(T_N(I_d/d))sN​=Retr(TN​(Id​/d)), and

fN=Re⁡tr⁡ ⁣(Φd (id⊗TN)(Φd))sN,Φd=∣ϕd⟩⟨ϕd∣,ϕd(a,b)=1a=bd,f_N=\frac{\operatorname{Re}\operatorname{tr}\!\left(\Phi_d\,(\mathrm{id}\otimes T_N)(\Phi_d)\right)}{s_N}, \qquad \Phi_d=|\phi_d\rangle\langle\phi_d|, \qquad \phi_d(a,b)=\frac{\mathbf1_{a=b}}{\sqrt d},fN​=sN​Retr(Φd​(id⊗TN​)(Φd​))​,Φd​=∣ϕd​⟩⟨ϕd​∣,ϕd​(a,b)=d​1a=b​​,

where id⊗TN\mathrm{id}\otimes T_Nid⊗TN​ applies TNT_NTN​ separately to each matrix block indexed by the first register. The predicate holds exactly when, for every N>0N>0N>0, one has N>0N>0N>0, d≥2d\ge2d≥2, tr⁡(ON†ON)=dN\operatorname{tr}(O_N^\dagger O_N)=d^Ntr(ON†​ON​)=dN, every MN(o)M_N(o)MN​(o) is positive semidefinite, and ∑oMN(o)=I\sum_oM_N(o)=I∑o​MN​(o)=I; furthermore, sN>0s_N>0sN​>0 for all sufficiently large NNN, sN→1s_N\to1sN​→1, and fN→1f_N\to1fN​→1 as N→∞N\to\inftyN→∞. No physicality requirement is imposed at N=0N=0N=0. Division by zero has value zero, so fN=0f_N=0fN​=0 whenever sN=0s_N=0sN​=0; eventual positivity permits such zeros at finitely many indices. Although the supplied assumption allows d=1d=1d=1, the physicality requirement then cannot hold.

QAlgorithms.Papers.Independent.Extend50.P08.IsExact

For any natural numbers d,Nd,Nd,N, any complex matrix OOO on A=[d][N]A=[d]^{[N]}A=[d][N], and any family MMM of complex matrices on A×[d]A\times[d]A×[d] indexed by a failure label ⊥\bot⊥ and i∈[N]i\in[N]i∈[N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, put L=O⊗IdL=O\otimes I_dL=O⊗Id​ and Ki=L†MiLK_i=L^\dagger M_iLKi​=L†Mi​L. This predicate says that for every i∈[N]i\in[N]i∈[N] there exists a real number pi≥0p_i\ge0pi​≥0 such that, for every complex d×dd\times dd×d matrix XXX and every b,b′∈[d]b,b'\in[d]b,b′∈[d],

(dN)−1∑x,y∈Axi=b, yi=b′xj=yj for every j≠i ∑c,c′∈[d](Ki)(y,c′),(x,c)Xc,c′=piXb,b′.(d^N)^{-1} \sum_{\substack{x,y\in A\\x_i=b,\ y_i=b'\\ x_j=y_j\ \text{for every }j\ne i}} \ \sum_{c,c'\in[d]} (K_i)_{(y,c'),(x,c)}X_{c,c'} =p_iX_{b,b'}.(dN)−1x,y∈Axi​=b, yi​=b′xj​=yj​ for every j=i​∑​ c,c′∈[d]∑​(Ki​)(y,c′),(x,c)​Xc,c′​=pi​Xb,b′​.

The scalar pip_ipi​ may depend on iii but must work for all XXX; it need not be positive, unique, or bounded above. The failure matrix is unrestricted, and no physical or channel assumptions are included. All reciprocals use 0−1=00^{-1}=00−1=0. For N=0N=0N=0 the predicate holds vacuously; for d=0d=0d=0 the matrix identities have no entries and pi=0p_i=0pi​=0 satisfies the requirement.

QAlgorithms.Papers.Independent.Extend50.P08.IsPhysicalPBT

For any natural numbers d,Nd,Nd,N, any complex matrix OOO indexed by length-NNN tuples from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any family MMM of complex matrices on pairs (x,c)(x,c)(x,c) of such a tuple and an additional label, indexed by none\mathrm{none}none and by some(i)\mathrm{some}(i)some(i) for 0≤i<N0\le i<N0≤i<N, IsPhysicalPBT(O,M)\mathrm{IsPhysicalPBT}(O,M)IsPhysicalPBT(O,M) means exactly that N>0N>0N>0, d≥2d\ge2d≥2,

tr⁡(O†O)=dN,\operatorname{tr}(O^\dagger O)=d^N,tr(O†O)=dN,

and every matrix in the family MMM is positive semidefinite, with

Mnone+∑i=0N−1Msome(i)=I.M_{\mathrm{none}}+\sum_{i=0}^{N-1}M_{\mathrm{some}(i)}=I.Mnone​+i=0∑N−1​Msome(i)​=I.

Here O†O^\daggerO† denotes the conjugate transpose and the identity acts on the pair index set. The predicate is false when N=0N=0N=0 or d<2d<2d<2.

QAlgorithms.Papers.Independent.Extend50.P08.IsPrincipal

For natural numbers d,Nd,Nd,N, let Pd,N\mathcal P_{d,N}Pd,N​ consist of Young diagrams with NNN cells and at most ddd rows, and define

Q(u)=∑μ,ν∈Pd,Nu(μ)u(ν)∑α∈Pd,N−11N=(N−1)+1cells⁡(α)⊆cells⁡(μ)cells⁡(α)⊆cells⁡(ν),Q(u)= \sum_{\mu,\nu\in\mathcal P_{d,N}}u(\mu)u(\nu) \sum_{\alpha\in\mathcal P_{d,N-1}} \mathbf1_{\substack{N=(N-1)+1\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu)}},Q(u)=μ,ν∈Pd,N​∑​u(μ)u(ν)α∈Pd,N−1​∑​1N=(N−1)+1cells(α)⊆cells(μ)cells(α)⊆cells(ν)​​,

where natural-number subtraction is truncated at zero. For a real function vvv on Pd,N\mathcal P_{d,N}Pd,N​, the predicate holds exactly when every v(μ)≥0v(\mu)\ge0v(μ)≥0, ∑μv(μ)2=1\sum_\mu v(\mu)^2=1∑μ​v(μ)2=1, and Q(w)≤Q(v)Q(w)\le Q(v)Q(w)≤Q(v) for every real function www on the same set satisfying ∑μw(μ)2=1\sum_\mu w(\mu)^2=1∑μ​w(μ)2=1. The comparison functions www need not be nonnegative. No uniqueness is required. If the indexing set is empty, the normalization condition is impossible; for N=0N=0N=0, the sole diagram is empty, QQQ is zero, and the predicate requires the sole coordinate of vvv to be 111.

QAlgorithms.Papers.Independent.Extend50.P08.OneBox

For natural numbers d,n,md,n,md,n,m, a Young diagram α\alphaα with nnn cells and at most ddd rows, and a Young diagram μ\muμ with mmm cells and at most ddd rows, this predicate means exactly

m=n+1andcells⁡(α)⊆cells⁡(μ).m=n+1 \quad\text{and}\quad \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu).m=n+1andcells(α)⊆cells(μ).

The inclusion allows equality as an inclusion relation, but the stipulated cell counts and m=n+1m=n+1m=n+1 force precisely one additional cell. Zero sizes are included: n=0n=0n=0 is permitted, while m=0m=0m=0 cannot satisfy the predicate.

QAlgorithms.Papers.Independent.Extend50.P08.Ports

For natural numbers d,Nd,Nd,N, Ports(d,N)\mathrm{Ports}(d,N)Ports(d,N) is the type of functions from {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} to {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, that is, length-NNN tuples of labels with ddd possible values. When N=0N=0N=0, this type contains exactly one empty tuple, including when d=0d=0d=0; when d=0d=0d=0 and N>0N>0N>0, it is empty.

QAlgorithms.Papers.Independent.Extend50.P08.bellDeterministicFormula

For every pair of natural numbers d,Nd,Nd,N, this defines

1dN+2∑α∈Pd(N−1)(∑μ∈Pd(N)N=(N−1)+1, cells⁡(α)⊆cells⁡(μ)Dμmμ)2.\frac{1}{d^{N+2}} \sum_{\alpha\in\mathcal P_d(N-1)} \left( \sum_{\substack{\mu\in\mathcal P_d(N)\\ N=(N-1)+1,\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)}} \sqrt{D_\mu m_\mu} \right)^2.dN+21​α∈Pd​(N−1)∑​​μ∈Pd​(N)N=(N−1)+1, cells(α)⊆cells(μ)​∑​Dμ​mμ​​​2.

Here Pd(r)\mathcal P_d(r)Pd​(r) consists of Young diagrams with rrr cells and first-column length at most ddd, and mμm_\mumμ​ counts their fillings by 0,…,d−10,\ldots,d-10,…,d−1 weakly increasing along rows and strictly increasing down columns. To obtain DμD_\muDμ​, use the definition’s chosen numbering of the NNN cells, let Rμ,Cμ⊆SNR_\mu,C_\mu\subseteq\mathfrak S_NRμ​,Cμ​⊆SN​ preserve rows and columns respectively, and take the complex dimension of the image of eh↦∑u∈Rμ,v∈Cμsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\mu,v\in C_\mu}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rμ​,v∈Cμ​​sgn(v)ehuv​ in CSN\mathbb C^{\mathfrak S_N}CSN​. All dimensions and counts in the formula are viewed as real numbers. Natural-number subtraction makes N−1=0N-1=0N−1=0 when N=0N=0N=0, in which case every inner size condition is false and the result is zero. The definition also permits d=0d=0d=0, with division by zero defined as zero.

QAlgorithms.Papers.Independent.Extend50.P08.completedEffects

For any natural numbers d,Nd,Nd,N, put A=[d][N]A=[d]^{[N]}A=[d][N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, and define matrices on A×[d]A\times[d]A×[d] by

(Bi)(x,c),(y,c′)={d−1,xj=yj for all j≠i,xi=c,yi=c′,0,otherwise,Qi=(dmax⁡(N−1,0))−1Bi,R=f ⁣(∑i∈[N]Qi),(B_i)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_j=y_j\text{ for all }j\ne i,\quad x_i=c,\quad y_i=c',\\ 0,&\text{otherwise}, \end{cases} \quad Q_i=(d^{\max(N-1,0)})^{-1}B_i, \quad R=f\!\left(\sum_{i\in[N]}Q_i\right),(Bi​)(x,c),(y,c′)​={d−1,0,​xj​=yj​ for all j=i,xi​=c,yi​=c′,otherwise,​Qi​=(dmax(N−1,0))−1Bi​,R=f​i∈[N]∑​Qi​​,

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by real continuous functional calculus and is zero for t≤0t\le0t≤0. This defines a family CCC indexed by a failure label ⊥\bot⊥ and i∈[N]i\in[N]i∈[N] through

C⊥=0,Ci=RQiR+N−1(I−∑j∈[N]RQjR).C_\bot=0,\qquad C_i=RQ_iR+N^{-1}\left(I-\sum_{j\in[N]}RQ_jR\right).C⊥​=0,Ci​=RQi​R+N−1​I−j∈[N]∑​RQj​R​.

All reciprocals at zero are zero. When N=0N=0N=0, only the zero failure matrix remains; when d=0d=0d=0, the matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P08.conditionalFidelity

For natural numbers d,Nd,Nd,N with the hypothesis d>0d>0d>0, any complex matrix OOO on A=[d][N]A=[d]^{[N]}A=[d][N], and any family MMM of complex matrices on A×[d]A\times[d]A×[d] indexed by a failure label ⊥\bot⊥ and i∈[N]i\in[N]i∈[N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, put L=O⊗IdL=O\otimes I_dL=O⊗Id​ and Ki=L†MiLK_i=L^\dagger M_iLKi​=L†Mi​L. Define the matrix function Φ\PhiΦ by

(Φ(X))b,b′=(dN)−1∑i∈[N]∑x,y∈Axi=b, yi=b′xj=yj for every j≠i ∑c,c′∈[d](Ki)(y,c′),(x,c)Xc,c′.\bigl(\Phi(X)\bigr)_{b,b'} =(d^N)^{-1} \sum_{i\in[N]} \sum_{\substack{x,y\in A\\x_i=b,\ y_i=b'\\ x_j=y_j\ \text{for every }j\ne i}} \ \sum_{c,c'\in[d]} (K_i)_{(y,c'),(x,c)}X_{c,c'}.(Φ(X))b,b′​=(dN)−1i∈[N]∑​x,y∈Axi​=b, yi​=b′xj​=yj​ for every j=i​∑​ c,c′∈[d]∑​(Ki​)(y,c′),(x,c)​Xc,c′​.

Let Ω=d−1/2∑a∈[d]ea⊗ea\Omega=d^{-1/2}\sum_{a\in[d]}e_a\otimes e_aΩ=d−1/2∑a∈[d]​ea​⊗ea​, where eae_aea​ is the coordinate unit vector, and let P=ΩΩ†P=\Omega\Omega^\daggerP=ΩΩ†. The definition is the real quotient

Re⁡tr⁡ ⁣[P (id⁡⊗Φ)(P)]Re⁡tr⁡ ⁣[Φ(d−1Id)],\frac{ \operatorname{Re}\operatorname{tr}\!\left[ P\,(\operatorname{id}\otimes\Phi)(P) \right]} {\operatorname{Re}\operatorname{tr}\!\left[\Phi(d^{-1}I_d)\right]},Retr[Φ(d−1Id​)]Retr[P(id⊗Φ)(P)]​,

where id⁡⊗Φ\operatorname{id}\otimes\Phiid⊗Φ means applying Φ\PhiΦ to each matrix block indexed by the first register. No positivity, normalization, channel, or positive-denominator assumption is imposed. Real division by zero is defined to be zero, so the value is zero whenever the denominator is zero; in particular this includes N=0N=0N=0.

QAlgorithms.Papers.Independent.Extend50.P08.denseFidelity

For arbitrary natural numbers d,Nd,Nd,N and ports i,k<Ni,k<Ni,k<N, work on H={0,…,d−1}N×{0,…,d−1}\mathcal H=\{0,\ldots,d-1\}^{N}\times\{0,\ldots,d-1\}H={0,…,d−1}N×{0,…,d−1}. For each j<Nj<Nj<N, define

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for every ℓ≠j,xj=c,yj=c′,0,otherwise.(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for every }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}. \end{cases}(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for every ℓ=j,xj​=c,yj​=c′,otherwise.​

Let Aj=Bj/dN−1A_j=B_j/d^{N-1}Aj​=Bj​/dN−1, R=f(∑j<NAj)R=f(\sum_{j<N}A_j)R=f(∑j<N​Aj​), with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 applied by continuous functional calculus and f(0)=0f(0)=0f(0)=0, and set

Ei=RAiR+1N(I−∑j<NRAjR),Di=EiTdN+1,σi=(Re⁡tr⁡Di)−1Di.E_i=RA_iR+\frac1N\left(I-\sum_{j<N}RA_jR\right),\qquad D_i=\frac{E_i^{\mathsf T}}{d^{N+1}},\qquad \sigma_i=\bigl(\operatorname{Re}\operatorname{tr}D_i\bigr)^{-1}D_i.Ei​=RAi​R+N1​​I−j<N∑​RAj​R​,Di​=dN+1EiT​​,σi​=(RetrDi​)−1Di​.

The declared real number is

Fik=Re⁡tr⁡(Bkσi).F_{ik}=\operatorname{Re}\operatorname{tr}(B_k\sigma_i).Fik​=Retr(Bk​σi​).

The ports iii and kkk may coincide. Their existence forces N>0N>0N>0, while d=0d=0d=0 is allowed. All zero denominators have inverse zero, so Re⁡tr⁡Di=0\operatorname{Re}\operatorname{tr}D_i=0RetrDi​=0 gives σi=0\sigma_i=0σi​=0 and Fik=0F_{ik}=0Fik​=0.

QAlgorithms.Papers.Independent.Extend50.P08.denseProbability

For arbitrary natural numbers d,Nd,Nd,N and i<Ni<Ni<N, let H={0,…,d−1}N×{0,…,d−1}\mathcal H=\{0,\ldots,d-1\}^{N}\times\{0,\ldots,d-1\}H={0,…,d−1}N×{0,…,d−1}. Define matrices BjB_jBj​, indexed by H\mathcal HH, by

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for all ℓ≠j,xj=c,yj=c′,0,otherwise.(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for all }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}. \end{cases}(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for all ℓ=j,xj​=c,yj​=c′,otherwise.​

Put Aj=(dN−1)−1BjA_j=(d^{N-1})^{-1}B_jAj​=(dN−1)−1Bj​, R=f(∑j<NAj)R=f(\sum_{j<N}A_j)R=f(∑j<N​Aj​), where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by continuous functional calculus and f(0)=0f(0)=0f(0)=0, and

Ei=RAiR+1N(I−∑j<NRAjR),Di=1dN+1EiT.E_i=RA_iR+\frac1N\left(I-\sum_{j<N}RA_jR\right), \qquad D_i=\frac{1}{d^{N+1}}E_i^{\mathsf T}.Ei​=RAi​R+N1​​I−j<N∑​RAj​R​,Di​=dN+11​EiT​.

The declared real number is

pi=Re⁡tr⁡(Di).p_i=\operatorname{Re}\operatorname{tr}(D_i).pi​=Retr(Di​).

The transpose here does not conjugate entries. This definition imposes no separate positivity or normalization hypothesis. The port index forces N>0N>0N>0, but d=0d=0d=0 is permitted; then the index set is empty and pi=0p_i=0pi​=0. Every inverse of zero is taken to be zero.

QAlgorithms.Papers.Independent.Extend50.P08.denseState

For arbitrary natural numbers d,Nd,Nd,N and i<Ni<Ni<N, define matrices on H={0,…,d−1}N×{0,…,d−1}\mathcal H=\{0,\ldots,d-1\}^{N}\times\{0,\ldots,d-1\}H={0,…,d−1}N×{0,…,d−1} by

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for every ℓ≠j,xj=c,yj=c′,0,otherwise,Aj=BjdN−1,R=f ⁣(∑j<NAj),(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for every }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}, \end{cases} \quad A_j=\frac{B_j}{d^{N-1}}, \quad R=f\!\left(\sum_{j<N}A_j\right),(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for every ℓ=j,xj​=c,yj​=c′,otherwise,​Aj​=dN−1Bj​​,R=f​j<N∑​Aj​​,

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by continuous functional calculus, with f(0)=0f(0)=0f(0)=0. Set

Ei=RAiR+1N(I−∑j<NRAjR),Di=EiTdN+1,pi=Re⁡tr⁡(Di).E_i=RA_iR+\frac1N\left(I-\sum_{j<N}RA_jR\right), \qquad D_i=\frac{E_i^{\mathsf T}}{d^{N+1}}, \qquad p_i=\operatorname{Re}\operatorname{tr}(D_i).Ei​=RAi​R+N1​​I−j<N∑​RAj​R​,Di​=dN+1EiT​​,pi​=Retr(Di​).

The declared matrix is

σi=pi−1Di.\sigma_i=p_i^{-1}D_i.σi​=pi−1​Di​.

Here T{}^{\mathsf T}T denotes ordinary transpose. There is no hypothesis that pip_ipi​ is positive or nonzero: if pi=0p_i=0pi​=0, the declared matrix is zero because the inverse of zero is zero. The index iii requires N>0N>0N>0; d=0d=0d=0 remains allowed and gives an empty matrix.

QAlgorithms.Papers.Independent.Extend50.P08.denseTransition

For arbitrary natural numbers d,Nd,Nd,N and ports i,k<Ni,k<Ni,k<N, define matrices on H={0,…,d−1}N×{0,…,d−1}\mathcal H=\{0,\ldots,d-1\}^{N}\times\{0,\ldots,d-1\}H={0,…,d−1}N×{0,…,d−1} by

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for all ℓ≠j,xj=c,yj=c′,0,otherwise,Aj=BjdN−1,R=f ⁣(∑j<NAj),(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for all }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}, \end{cases} \qquad A_j=\frac{B_j}{d^{N-1}}, \qquad R=f\!\left(\sum_{j<N}A_j\right),(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for all ℓ=j,xj​=c,yj​=c′,otherwise,​Aj​=dN−1Bj​​,R=f​j<N∑​Aj​​,

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by continuous functional calculus with f(0)=0f(0)=0f(0)=0. Set

Ei=RAiR+1N(I−∑j<NRAjR),Di=EiTdN+1,pi=Re⁡tr⁡Di,σi=pi−1Di.E_i=RA_iR+\frac1N\left(I-\sum_{j<N}RA_jR\right),\qquad D_i=\frac{E_i^{\mathsf T}}{d^{N+1}},\qquad p_i=\operatorname{Re}\operatorname{tr}D_i,\qquad \sigma_i=p_i^{-1}D_i.Ei​=RAi​R+N1​​I−j<N∑​RAj​R​,Di​=dN+1EiT​​,pi​=RetrDi​,σi​=pi−1​Di​.

The declared real number is

Tik=d2pi Re⁡tr⁡(Bkσi).T_{ik}=d^2p_i\,\operatorname{Re}\operatorname{tr}(B_k\sigma_i).Tik​=d2pi​Retr(Bk​σi​).

No additional assertion about its sign or its row or column sums is part of this definition. The indices require N>0N>0N>0, and may be equal. Inverses of zero are zero; thus pi=0p_i=0pi​=0 gives Tik=0T_{ik}=0Tik​=0, and d=0d=0d=0 is also allowed.

QAlgorithms.Papers.Independent.Extend50.P08.denseUnnormalized

For arbitrary natural numbers d,Nd,Nd,N and i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, define a complex matrix indexed by H={0,…,d−1}N×{0,…,d−1}\mathcal H=\{0,\ldots,d-1\}^{N}\times\{0,\ldots,d-1\}H={0,…,d−1}N×{0,…,d−1} as follows. For each port j<Nj<Nj<N, let

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for every ℓ≠j,xj=c,yj=c′,0,otherwise.(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for every }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}. \end{cases}(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for every ℓ=j,xj​=c,yj​=c′,otherwise.​

Set Aj=(dN−1)−1BjA_j=(d^{N-1})^{-1}B_jAj​=(dN−1)−1Bj​, S=∑j<NAjS=\sum_{j<N}A_jS=∑j<N​Aj​, and R=f(S)R=f(S)R=f(S), where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by continuous functional calculus, with f(0)=0f(0)=0f(0)=0. Define

Ei=RAiR+1N(I−∑j<NRAjR).E_i=RA_iR+\frac1N\left(I-\sum_{j<N}RA_jR\right).Ei​=RAi​R+N1​​I−j<N∑​RAj​R​.

The declared matrix is

Di=1dN+1EiT,D_i=\frac{1}{d^{N+1}}E_i^{\mathsf T},Di​=dN+11​EiT​,

where T{}^{\mathsf T}T is the ordinary transpose, without complex conjugation. No additional hypotheses on ddd or NNN are imposed; the existence of iii forces N>0N>0N>0. Inverses of zero are interpreted as zero. In particular, d=0d=0d=0 is allowed, in which case the matrix has an empty index set.

QAlgorithms.Papers.Independent.Extend50.P08.deterministicFilter

For natural numbers d,Nd,Nd,N and any real function vvv on the set Pd,N\mathcal P_{d,N}Pd,N​ of Young diagrams with NNN cells and at most ddd rows, this defines a complex matrix indexed by words x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} by

Ov=∑μ∈Pd,NdN v(μ)fμmμ Eμ.O_v=\sum_{\mu\in\mathcal P_{d,N}} \frac{\sqrt{d^N}\,v(\mu)}{\sqrt{f_\mu m_\mu}}\,E_\mu.Ov​=μ∈Pd,N​∑​fμ​mμ​​dN​v(μ)​Eμ​.

Here mμm_\mumμ​ is the number of fillings of μ\muμ by 0,…,d−10,\ldots,d-10,…,d−1 that weakly increase along rows and strictly increase down columns. To define fμf_\mufμ​ and EμE_\muEμ​, use the supplied numbering of the NNN cells, and let Rμ,Cμ⊆SNR_\mu,C_\mu\subseteq S_NRμ​,Cμ​⊆SN​ be the permutations preserving each cell's row and column coordinate, respectively. Set Yμ(g,h)=∑a∈Rμ,b∈Cμsgn⁡(b)1g=habY_\mu(g,h)=\sum_{a\in R_\mu,b\in C_\mu}\operatorname{sgn}(b)\mathbf1_{g=hab}Yμ​(g,h)=∑a∈Rμ​,b∈Cμ​​sgn(b)1g=hab​, let Sμ=range⁡Yμ⊆CSNS_\mu=\operatorname{range}Y_\mu\subseteq\mathbb C^{S_N}Sμ​=rangeYμ​⊆CSN​, let fμ=dim⁡CSμf_\mu=\dim_{\mathbb C}S_\mufμ​=dimC​Sμ​, and let QμQ_\muQμ​ be the orthogonal projection onto SμS_\muSμ​. With Lπ(g,h)=1g=πhL_\pi(g,h)=\mathbf1_{g=\pi h}Lπ​(g,h)=1g=πh​ and χμ(π)=tr⁡(LπQμ)\chi_\mu(\pi)=\operatorname{tr}(L_\pi Q_\mu)χμ​(π)=tr(Lπ​Qμ​), the matrix used above is

Eμ(x,y)=fμN!∑π∈SNχμ(π−1) 1x=y∘π−1.E_\mu(x,y)=\frac{f_\mu}{N!} \sum_{\pi\in S_N}\chi_\mu(\pi^{-1})\, \mathbf1_{x=y\circ\pi^{-1}}.Eμ​(x,y)=N!fμ​​π∈SN​∑​χμ​(π−1)1x=y∘π−1​.

Real coefficients are embedded into C\mathbb CC. No positivity, normalization, or maximizing condition is assumed on vvv. Zero denominators give coefficient zero, empty sums give zero matrices, and d0=1d^0=1d0=1, including when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P08.inverseSqrtScalar

For every real number xxx, this defines f(x)=(x)−1f(x)=(\sqrt{x})^{-1}f(x)=(x​)−1, using the real square root and totalized reciprocal. Thus f(x)=1/xf(x)=1/\sqrt{x}f(x)=1/x​ when x>0x>0x>0, and f(x)=0f(x)=0f(x)=0 when x≤0x\le 0x≤0.

QAlgorithms.Papers.Independent.Extend50.P08.irrepDim

For natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, this defines a real number as follows. Choose the cell numbering λ→{0,…,n−1}\lambda\to\{0,\ldots,n-1\}λ→{0,…,n−1} supplied by the finite-set equivalence in the definition. Let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be, respectively, the permutations of these labels that preserve the row coordinate and the column coordinate of every labelled cell. On the complex vector space with orthonormal basis indexed by the symmetric group SnS_nSn​, define the matrix

Yλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b) 1g=hab.Y_\lambda(g,h)= \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\,\mathbf1_{g=hab}.Yλ​(g,h)=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1g=hab​.

The value is dim⁡C(range⁡Yλ)\dim_{\mathbb C}(\operatorname{range}Y_\lambda)dimC​(rangeYλ​), regarded as a real number. The parameters need not be positive: when n=0n=0n=0, the empty diagram gives a one-dimensional range and value 111; when d=0<nd=0<nd=0<n, there is no diagram satisfying the required conditions.

QAlgorithms.Papers.Independent.Extend50.P08.liftAlice

For any natural numbers d,Nd,Nd,N and any complex matrix OOO indexed by length-NNN tuples from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, liftAlice(O)\mathrm{liftAlice}(O)liftAlice(O) is the Kronecker product O⊗IdO\otimes I_dO⊗Id​. Its rows and columns are indexed by pairs (x,c)(x,c)(x,c) of such a tuple and an additional label, and its entries are (O⊗Id)(x,c),(y,e)=Ox,yδc,e(O\otimes I_d)_{(x,c),(y,e)}=O_{x,y}\delta_{c,e}(O⊗Id​)(x,c),(y,e)​=Ox,y​δc,e​. This includes N=0N=0N=0, when OOO is a scalar matrix, and d=0d=0d=0, when the resulting matrix has empty indices.

QAlgorithms.Papers.Independent.Extend50.P08.minimalEffects

For any natural numbers d,Nd,Nd,N, this defines a family of matrices indexed by a distinguished failure label ⊥\bot⊥ and the indices i∈[N]={0,…,N−1}i\in[N]=\{0,\ldots,N-1\}i∈[N]={0,…,N−1}. To specify it, put A=[d][N]A=[d]^{[N]}A=[d][N] and define matrices on A×[d]A\times[d]A×[d] by

(Bi)(x,c),(y,c′)={d−1,xj=yj for all j≠i,xi=c,yi=c′,0,otherwise,Qi=(dmax⁡(N−1,0))−1Bi,R=f ⁣(∑i∈[N]Qi),(B_i)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_j=y_j\text{ for all }j\ne i,\quad x_i=c,\quad y_i=c',\\ 0,&\text{otherwise}, \end{cases} \quad Q_i=(d^{\max(N-1,0)})^{-1}B_i, \quad R=f\!\left(\sum_{i\in[N]}Q_i\right),(Bi​)(x,c),(y,c′)​={d−1,0,​xj​=yj​ for all j=i,xi​=c,yi​=c′,otherwise,​Qi​=(dmax(N−1,0))−1Bi​,R=f​i∈[N]∑​Qi​​,

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by real continuous functional calculus and equals zero for t≤0t\le0t≤0. The family is

M⊥=I−∑i∈[N]RQiR,Mi=RQiR.M_\bot=I-\sum_{i\in[N]}RQ_iR,\qquad M_i=RQ_iR.M⊥​=I−i∈[N]∑​RQi​R,Mi​=RQi​R.

All reciprocals at zero are zero. For N=0N=0N=0, only the failure label exists and its matrix is III; for d=0d=0d=0, the matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P08.minimalSuccessFormula

For all natural numbers d,Nd,Nd,N, this defines the real number

1dN+1∑α∈Pd(N−1), μ∈Pd(N)N=(N−1)+1, cells⁡(α)⊆cells⁡(μ)Dμmα.\frac{1}{d^{N+1}} \sum_{\substack{\alpha\in\mathcal P_d(N-1),\ \mu\in\mathcal P_d(N)\\ N=(N-1)+1,\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)}} D_\mu m_\alpha.dN+11​α∈Pd​(N−1), μ∈Pd​(N)N=(N−1)+1, cells(α)⊆cells(μ)​∑​Dμ​mα​.

Here N−1N-1N−1 is natural-number subtraction, truncated at zero; Pd(r)\mathcal P_d(r)Pd​(r) consists of Young diagrams with rrr cells and first-column length at most ddd; and mαm_\alphamα​ counts fillings of α\alphaα by 0,…,d−10,\ldots,d-10,…,d−1 that are weakly increasing along rows and strictly increasing down columns. To define DμD_\muDμ​, number the cells of μ\muμ by 0,…,N−10,\ldots,N-10,…,N−1 using the bijection chosen in the definition, let Rμ,Cμ⊆SNR_\mu,C_\mu\subseteq\mathfrak S_NRμ​,Cμ​⊆SN​ be the permutations preserving rows and columns respectively, and take DμD_\muDμ​ to be the complex dimension of the image of the map on CSN\mathbb C^{\mathfrak S_N}CSN​ given by eh↦∑u∈Rμ,v∈Cμsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\mu,v\in C_\mu}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rμ​,v∈Cμ​​sgn(v)ehuv​. There are no positivity assumptions on ddd or NNN. For N=0N=0N=0 the size condition in the summation is false, giving zero; for d=0d=0d=0 division by zero is defined to give zero.

QAlgorithms.Papers.Independent.Extend50.P08.optimizedSuccessFormula

For natural numbers d,Nd,Nd,N and any real-valued function vvv on Pd(N)\mathcal P_d(N)Pd​(N), the Young diagrams with NNN cells and first-column length at most ddd, this defines

1d∑α∈Pd(N−1), μ∈Pd(N)N=(N−1)+1, cells⁡(α)⊆cells⁡(μ)mαmμ v(μ)2,\frac1d \sum_{\substack{\alpha\in\mathcal P_d(N-1),\ \mu\in\mathcal P_d(N)\\ N=(N-1)+1,\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)}} \frac{m_\alpha}{m_\mu}\,v(\mu)^2,d1​α∈Pd​(N−1), μ∈Pd​(N)N=(N−1)+1, cells(α)⊆cells(μ)​∑​mμ​mα​​v(μ)2,

where mλm_\lambdamλ​ is the number of fillings of λ\lambdaλ by 0,…,d−10,\ldots,d-10,…,d−1 that are weakly increasing along rows and strictly increasing down columns. No nonnegativity, normalization, or maximizing property is required of vvv. The subtraction N−1N-1N−1 is truncated at zero, so for N=0N=0N=0 the size condition is false and the result is zero. The case d=0d=0d=0 is included, and every scalar division by zero is defined to be zero.

QAlgorithms.Papers.Independent.Extend50.P08.pbtSchurMultiplicity

For natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, this defines the real number

∑T:cells⁡(λ)→{0,…,d−1}T weakly increases along rowsT strictly increases down columns ∏a∈cells⁡(λ)1,\sum_{\substack{T:\operatorname{cells}(\lambda)\to\{0,\ldots,d-1\}\\ T\text{ weakly increases along rows}\\ T\text{ strictly increases down columns}}} \ \prod_{a\in\operatorname{cells}(\lambda)}1,T:cells(λ)→{0,…,d−1}T weakly increases along rowsT strictly increases down columns​∑​ a∈cells(λ)∏​1,

equivalently, the number of such fillings, regarded as a real number. More precisely, cells in the same row with increasing column coordinates must have weakly increasing entries, and cells in the same column with increasing row coordinates must have strictly increasing entries. For n=0n=0n=0, there is one empty filling and its empty product is 111, so the value is 111, including when d=0d=0d=0. For d=0<nd=0<nd=0<n, there is no admissible λ\lambdaλ.

QAlgorithms.Papers.Independent.Extend50.P08.pbtSignal

For any natural numbers d,Nd,Nd,N and any i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, pbtSignal(d,N,i)\mathrm{pbtSignal}(d,N,i)pbtSignal(d,N,i) is the real scalar (dN−1)−1(d^{N-1})^{-1}(dN−1)−1 times the complex matrix indexed by (x,c),(y,e)(x,c),(y,e)(x,c),(y,e), with x,yx,yx,y length-NNN tuples from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, whose entry is d−1d^{-1}d−1 when xj=yjx_j=y_jxj​=yj​ for every j≠ij\ne ij=i, xi=cx_i=cxi​=c, and yi=ey_i=eyi​=e, and is 000 otherwise. The exponent uses natural-number subtraction, so N−1N-1N−1 is truncated at 000, although the existence of iii already requires N>0N>0N>0. Reciprocals at zero are defined to be zero. For d=0d=0d=0, the matrix has empty indices; for N=0N=0N=0, no iii exists.

QAlgorithms.Papers.Independent.Extend50.P08.pbtSignalSum

For any natural numbers d,Nd,Nd,N, pbtSignalSum(d,N)\mathrm{pbtSignalSum}(d,N)pbtSignalSum(d,N) is the complex matrix indexed by pairs (x,c)(x,c)(x,c) of a length-NNN tuple from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} and one additional label, with entries

S((x,c),(y,e))=∑i=0N−1(dN−1)−1{d−1,xj=yj for every j≠i,xi=c,yi=e,0,otherwise.S\bigl((x,c),(y,e)\bigr) = \sum_{i=0}^{N-1}(d^{N-1})^{-1} \begin{cases} d^{-1},& x_j=y_j\text{ for every }j\ne i,\quad x_i=c,\quad y_i=e,\\ 0,&\text{otherwise}. \end{cases}S((x,c),(y,e))=i=0∑N−1​(dN−1)−1{d−1,0,​xj​=yj​ for every j=i,xi​=c,yi​=e,otherwise.​

The outer reciprocal is real, the inner reciprocal is complex, and both assign value zero to the reciprocal of zero; N−1N-1N−1 uses truncated natural-number subtraction. When N=0N=0N=0, the sum is empty and gives the zero matrix on the additional-label index set. When d=0d=0d=0, the matrix has empty indices.

QAlgorithms.Papers.Independent.Extend50.P08.pbtSuccess

For any natural numbers d,Nd,Nd,N, any complex matrix OOO on A=[d][N]A=[d]^{[N]}A=[d][N], and any family MMM of complex matrices on A×[d]A\times[d]A×[d] indexed by a failure label ⊥\bot⊥ and i∈[N]i\in[N]i∈[N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, put L=O⊗IdL=O\otimes I_dL=O⊗Id​. This defines the real number obtained by applying the sum of the retained-port maps to d−1Idd^{-1}I_dd−1Id​ and taking the real part of its trace; explicitly, it is

Re⁡ ⁣[(dN)−1d−1∑i∈[N] ∑x∈A ∑c∈[d](L†MiL)(x,c),(x,c)].\operatorname{Re}\!\left[ (d^N)^{-1}d^{-1} \sum_{i\in[N]}\ \sum_{x\in A}\ \sum_{c\in[d]} \bigl(L^\dagger M_iL\bigr)_{(x,c),(x,c)} \right].Re​(dN)−1d−1i∈[N]∑​ x∈A∑​ c∈[d]∑​(L†Mi​L)(x,c),(x,c)​​.

All scalars inside the brackets are complex, with 0−1=00^{-1}=00−1=0. No positivity, normalization, or channel assumptions are imposed, so the definition does not itself assert that this number is a probability. It equals zero when N=0N=0N=0 or d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P08.portBellEffect

For any natural numbers d,Nd,Nd,N and any index i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, portBellEffect(d,N,i)\mathrm{portBellEffect}(d,N,i)portBellEffect(d,N,i) is the complex matrix indexed by pairs (x,c)(x,c)(x,c), where x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} and c∈{0,…,d−1}c\in\{0,\ldots,d-1\}c∈{0,…,d−1}, whose entries are

Bi((x,c),(y,e))={d−1,xj=yj for every j≠i,xi=c,yi=e,0,otherwise.B_i\bigl((x,c),(y,e)\bigr)= \begin{cases} d^{-1},& x_j=y_j\text{ for every }j\ne i,\quad x_i=c,\quad y_i=e,\\ 0,&\text{otherwise}. \end{cases}Bi​((x,c),(y,e))={d−1,0,​xj​=yj​ for every j=i,xi​=c,yi​=e,otherwise.​

The reciprocal is taken in C\mathbb CC, where 0−1=00^{-1}=00−1=0. For d=0d=0d=0, the matrix has empty indices. For N=0N=0N=0, there is no possible choice of iii.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticCoefficient

For natural numbers d,Nd,Nd,N and a Young diagram α\alphaα with N−1N-1N−1 cells and at most ddd rows, where N−1N-1N−1 is truncated at zero, this defines the real number

dN+1 mαNfα(∑μ∈Pd,Nmμ2)−1.\frac{d^{N+1}\,m_\alpha} {N f_\alpha} \left(\sum_{\mu\in\mathcal P_{d,N}}m_\mu^2\right)^{-1}.Nfα​dN+1mα​​​μ∈Pd,N​∑​mμ2​​−1.

Here Pd,N\mathcal P_{d,N}Pd,N​ is the set of Young diagrams with NNN cells and at most ddd rows, and mλm_\lambdamλ​, for either λ=α\lambda=\alphaλ=α or λ=μ\lambda=\muλ=μ, counts fillings of λ\lambdaλ by 0,…,d−10,\ldots,d-10,…,d−1 that weakly increase along rows and strictly increase down columns. To define fαf_\alphafα​, put r=N−1r=N-1r=N−1, number the cells of α\alphaα by {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} using the supplied finite-set equivalence, and let Rα,Cα⊆SrR_\alpha,C_\alpha\subseteq S_rRα​,Cα​⊆Sr​ be the permutations preserving each cell's row and column coordinate, respectively; then fαf_\alphafα​ is the complex dimension of the range of the matrix

Yα(g,h)=∑a∈Rα∑b∈Cαsgn⁡(b) 1g=habY_\alpha(g,h)= \sum_{a\in R_\alpha}\sum_{b\in C_\alpha} \operatorname{sgn}(b)\,\mathbf1_{g=hab}Yα​(g,h)=a∈Rα​∑​b∈Cα​∑​sgn(b)1g=hab​

acting on CSr\mathbb C^{S_r}CSr​. Natural-number quantities in the coefficient are regarded as real numbers. Every reciprocal or division by zero has value zero; in particular, at N=0N=0N=0, α\alphaα is the empty diagram and the coefficient is zero.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticEffective

For natural numbers d,Nd,Nd,N and an index i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, this defines a complex matrix indexed by pairs (a,c)(a,c)(a,c), where a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1} and c∈{0,…,d−1}c\in\{0,\ldots,d-1\}c∈{0,…,d−1}, by

Ei((a,c),(b,c′))=∑α∈Pd(N−1)dN+1Zd,NmαNDαd Πα(a∘σi,b∘σi) 1{a(i)=c, b(i)=c′}.E_i((a,c),(b,c'))= \sum_{\alpha\in\mathcal P_d(N-1)} \frac{d^{N+1}Z_{d,N}m_\alpha}{N D_\alpha d}\, \Pi_\alpha(a\circ\sigma_i,b\circ\sigma_i)\, \mathbf 1_{\{a(i)=c,\ b(i)=c'\}}.Ei​((a,c),(b,c′))=α∈Pd​(N−1)∑​NDα​ddN+1Zd,N​mα​​Πα​(a∘σi​,b∘σi​)1{a(i)=c, b(i)=c′}​.

Here Pd(r)\mathcal P_d(r)Pd​(r) consists of Young diagrams with rrr cells and first-column length at most ddd; σi(j)=j\sigma_i(j)=jσi​(j)=j for j<ij<ij<i and σi(j)=j+1\sigma_i(j)=j+1σi​(j)=j+1 otherwise, for 0≤j<N−10\le j<N-10≤j<N−1; mλm_\lambdamλ​ is the number of fillings of λ\lambdaλ by 0,…,d−10,\ldots,d-10,…,d−1 that are weakly increasing along rows and strictly increasing down columns; and Zd,N=(∑μ∈Pd(N)mμ2)−1Z_{d,N}=(\sum_{\mu\in\mathcal P_d(N)}m_\mu^2)^{-1}Zd,N​=(∑μ∈Pd​(N)​mμ2​)−1. To specify DλD_\lambdaDλ​ and Πλ\Pi_\lambdaΠλ​ explicitly, use the definition’s chosen bijection between the cells of a diagram λ\lambdaλ with rrr cells and {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be the permutations preserving respectively the row and column of each numbered cell, and let SλS_\lambdaSλ​ be the image, in CSr\mathbb C^{\mathfrak S_r}CSr​, of the linear map

eh⟼∑u∈Rλ∑v∈Cλsgn⁡(v)ehuv.e_h\longmapsto\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)e_{huv}.eh​⟼u∈Rλ​∑​v∈Cλ​∑​sgn(v)ehuv​.

Then Dλ=dim⁡CSλD_\lambda=\dim_{\mathbb C}S_\lambdaDλ​=dimC​Sλ​, QλQ_\lambdaQλ​ is orthogonal projection onto SλS_\lambdaSλ​, Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​, and

Πλ=Dλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,Tπ(y,x)=1{y=x∘π−1}.\Pi_\lambda=\frac{D_\lambda}{r!} \sum_{\pi\in\mathfrak S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi, \qquad T_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}}.Πλ​=r!Dλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,Tπ​(y,x)=1{y=x∘π−1}​.

All scalar coefficients are interpreted in C\mathbb CC. The index iii requires N>0N>0N>0, but no positivity assumption on ddd is imposed; division by zero is defined to be zero, so d=0d=0d=0 gives the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticEffects

For every pair of natural numbers d,Nd,Nd,N, this defines a family of complex matrices on pairs (a,c)(a,c)(a,c), where aaa is an NNN-letter word over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} and ccc is an additional letter, with labels consisting of a distinguished label ∅\varnothing∅ and one label for each 0≤i<N0\le i<N0≤i<N:

M∅=I−∑i=0N−1Fi,Mi=Fi,Fi=(Jd,N⊗Id)Ei(Jd,N⊗Id).M_{\varnothing}=I-\sum_{i=0}^{N-1}F_i, \qquad M_i=F_i, \qquad F_i=(J_{d,N}\otimes I_d)E_i(J_{d,N}\otimes I_d).M∅​=I−i=0∑N−1​Fi​,Mi​=Fi​,Fi​=(Jd,N​⊗Id​)Ei​(Jd,N​⊗Id​).

To specify these matrices, let Pd(r)\mathcal P_d(r)Pd​(r) comprise the Young diagrams with rrr cells and first-column length at most ddd, let mλm_\lambdamλ​ count fillings by 0,…,d−10,\ldots,d-10,…,d−1 weakly increasing along rows and strictly increasing down columns, and put Z=(∑λ∈Pd(N)mλ2)−1Z=(\sum_{\lambda\in\mathcal P_d(N)}m_\lambda^2)^{-1}Z=(∑λ∈Pd​(N)​mλ2​)−1. For each diagram λ\lambdaλ with rrr cells, use the definition’s chosen cell numbering, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve the rows and columns of numbered cells, and let SλS_\lambdaSλ​ be the image of eh↦∑u∈Rλ,v∈Cλsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\lambda,v\in C_\lambda}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rλ​,v∈Cλ​​sgn(v)ehuv​. With Dλ=dim⁡CSλD_\lambda=\dim_{\mathbb C}S_\lambdaDλ​=dimC​Sλ​, orthogonal projection QλQ_\lambdaQλ​ onto SλS_\lambdaSλ​, Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​, and Tπ(y,x)=1{y=x∘π−1}T_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}}Tπ​(y,x)=1{y=x∘π−1}​, set

Πλ=Dλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ.\Pi_\lambda=\frac{D_\lambda}{r!}\sum_{\pi\in\mathfrak S_r} \operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi.Πλ​=r!Dλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​.

Here Jd,NJ_{d,N}Jd,N​ is reciprocal real continuous functional calculus applied to ∑λ∈Pd(N)dNZmλ/Dλ Πλ\sum_{\lambda\in\mathcal P_d(N)}\sqrt{d^N}\sqrt{Zm_\lambda/D_\lambda}\,\Pi_\lambda∑λ∈Pd​(N)​dN​Zmλ​/Dλ​​Πλ​, and

Ei((a,c),(b,c′))=∑α∈Pd(N−1)dN+1ZmαNDαd Πα(a∘σi,b∘σi)1{a(i)=c, b(i)=c′},σi(j)={jj<i,j+1j≥i.E_i((a,c),(b,c'))= \sum_{\alpha\in\mathcal P_d(N-1)} \frac{d^{N+1}Zm_\alpha}{N D_\alpha d}\, \Pi_\alpha(a\circ\sigma_i,b\circ\sigma_i) \mathbf 1_{\{a(i)=c,\ b(i)=c'\}}, \quad \sigma_i(j)= \begin{cases}j&j<i,\\j+1&j\ge i.\end{cases}Ei​((a,c),(b,c′))=α∈Pd​(N−1)∑​NDα​ddN+1Zmα​​Πα​(a∘σi​,b∘σi​)1{a(i)=c, b(i)=c′}​,σi​(j)={jj+1​j<i,j≥i.​

Scalar inverses at zero are zero, real square roots of negative numbers are zero, and reciprocal functional calculus sends zero eigenvalues to zero for Hermitian arguments and defaults to zero otherwise. No positivity or normalization hypothesis is imposed. When N=0N=0N=0, there are no indexed labels and the distinguished matrix is the identity.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticFilter

For arbitrary natural numbers d,Nd,Nd,N, this defines a complex matrix indexed by words x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} by

O=∑μ∈Pd,NdNcd,Nmμfμ Eμ,cd,N=(∑ν∈Pd,Nmν2)−1,O=\sum_{\mu\in\mathcal P_{d,N}} \sqrt{d^N}\sqrt{\frac{c_{d,N}m_\mu}{f_\mu}}\,E_\mu, \qquad c_{d,N}=\left(\sum_{\nu\in\mathcal P_{d,N}}m_\nu^2\right)^{-1},O=μ∈Pd,N​∑​dN​fμ​cd,N​mμ​​​Eμ​,cd,N​=​ν∈Pd,N​∑​mν2​​−1,

where Pd,N\mathcal P_{d,N}Pd,N​ is the set of Young diagrams with NNN cells and at most ddd rows, and mμm_\mumμ​ counts fillings by 0,…,d−10,\ldots,d-10,…,d−1 that weakly increase along rows and strictly increase down columns. For each μ\muμ, use the supplied cell numbering and let Rμ,Cμ⊆SNR_\mu,C_\mu\subseteq S_NRμ​,Cμ​⊆SN​ be the permutations preserving each cell's row and column coordinate, respectively. Define Yμ(g,h)=∑a∈Rμ,b∈Cμsgn⁡(b)1g=habY_\mu(g,h)=\sum_{a\in R_\mu,b\in C_\mu}\operatorname{sgn}(b)\mathbf1_{g=hab}Yμ​(g,h)=∑a∈Rμ​,b∈Cμ​​sgn(b)1g=hab​, Sμ=range⁡Yμ⊆CSNS_\mu=\operatorname{range}Y_\mu\subseteq\mathbb C^{S_N}Sμ​=rangeYμ​⊆CSN​, fμ=dim⁡CSμf_\mu=\dim_{\mathbb C}S_\mufμ​=dimC​Sμ​, and QμQ_\muQμ​ as the orthogonal projection onto SμS_\muSμ​. With Lπ(g,h)=1g=πhL_\pi(g,h)=\mathbf1_{g=\pi h}Lπ​(g,h)=1g=πh​, the matrix in the sum is

Eμ(x,y)=fμN!∑π∈SNtr⁡(Lπ−1Qμ) 1x=y∘π−1.E_\mu(x,y)=\frac{f_\mu}{N!} \sum_{\pi\in S_N}\operatorname{tr}(L_{\pi^{-1}}Q_\mu)\, \mathbf1_{x=y\circ\pi^{-1}}.Eμ​(x,y)=N!fμ​​π∈SN​∑​tr(Lπ−1​Qμ​)1x=y∘π−1​.

The real coefficients are embedded into C\mathbb CC. Reciprocals and divisions by zero have value zero, empty sums have value zero, and d0=1d^0=1d0=1, including when d=0d=0d=0; no positivity assumption on ddd or NNN is imposed.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticInverse

For all natural numbers d,Nd,Nd,N, this defines a complex matrix Jd,NJ_{d,N}Jd,N​ on the words {0,…,N−1}→{0,…,d−1}\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}{0,…,N−1}→{0,…,d−1} by applying the real continuous functional calculus with scalar function x↦x−1x\mapsto x^{-1}x↦x−1 to

Bd,N=∑λ∈Pd(N)dN Zd,NmλDλ Πλ,Zd,N=(∑λ∈Pd(N)mλ2)−1.B_{d,N}= \sum_{\lambda\in\mathcal P_d(N)} \sqrt{d^N}\, \sqrt{\frac{Z_{d,N}m_\lambda}{D_\lambda}}\, \Pi_\lambda, \qquad Z_{d,N}=\left(\sum_{\lambda\in\mathcal P_d(N)}m_\lambda^2\right)^{-1}.Bd,N​=λ∈Pd​(N)∑​dN​Dλ​Zd,N​mλ​​​Πλ​,Zd,N​=​λ∈Pd​(N)∑​mλ2​​−1.

Here Pd(r)\mathcal P_d(r)Pd​(r) is the set of Young diagrams with rrr cells and first-column length at most ddd, and mλm_\lambdamλ​ counts their fillings by 0,…,d−10,\ldots,d-10,…,d−1 that are weakly increasing along rows and strictly increasing down columns. For a diagram λ\lambdaλ with rrr cells, fix the cell numbering chosen in the definition; let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq\mathfrak S_rRλ​,Cλ​⊆Sr​ preserve rows and columns respectively, and let SλS_\lambdaSλ​ be the image of eh↦∑u∈Rλ,v∈Cλsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\lambda,v\in C_\lambda}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rλ​,v∈Cλ​​sgn(v)ehuv​ in CSr\mathbb C^{\mathfrak S_r}CSr​. Write Dλ=dim⁡CSλD_\lambda=\dim_{\mathbb C}S_\lambdaDλ​=dimC​Sλ​, let QλQ_\lambdaQλ​ be orthogonal projection onto that image, and put

Πλ=Dλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,Lπeh=eπh,Tπ(y,x)=1{y=x∘π−1}.\Pi_\lambda=\frac{D_\lambda}{r!} \sum_{\pi\in\mathfrak S_r}\operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi, \quad L_\pi e_h=e_{\pi h}, \quad T_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}}.Πλ​=r!Dλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,Lπ​eh​=eπh​,Tπ​(y,x)=1{y=x∘π−1}​.

Thus, when Bd,NB_{d,N}Bd,N​ is Hermitian, Jd,NJ_{d,N}Jd,N​ replaces each nonzero eigenvalue by its reciprocal and replaces a zero eigenvalue by zero; the functional calculus has value zero for a non-Hermitian argument. Neither d>0d>0d>0, N>0N>0N>0, nor invertibility is assumed. All divisions use the convention 0−1=00^{-1}=00−1=0, real square roots of negative numbers are zero, and d0=1d^0=1d0=1 even when d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticNormalization

For arbitrary natural numbers d,Nd,Nd,N, let Pd,N\mathcal P_{d,N}Pd,N​ be the set of Young diagrams with NNN cells and at most ddd rows. For each such diagram μ\muμ, let mμm_\mumμ​ be the number of fillings of its cells by 0,…,d−10,\ldots,d-10,…,d−1 that weakly increase along rows and strictly increase down columns. This defines the real number

(∑μ∈Pd,Nmμ2)−1.\left(\sum_{\mu\in\mathcal P_{d,N}}m_\mu^2\right)^{-1}.​μ∈Pd,N​∑​mμ2​​−1.

The reciprocal of zero is defined to be zero, so an empty indexing set gives value zero. When N=0N=0N=0, the sole diagram is empty and has one empty filling, giving value 111, including for d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P08.probabilisticPhysical

For natural numbers d,Nd,Nd,N and i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, this defines the complex matrix

Fi=(Jd,N⊗Id) Ei (Jd,N⊗Id)F_i=(J_{d,N}\otimes I_d)\,E_i\,(J_{d,N}\otimes I_d)Fi​=(Jd,N​⊗Id​)Ei​(Jd,N​⊗Id​)

on pairs (a,c)(a,c)(a,c) consisting of an NNN-letter word over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} and one additional letter. Both outer factors are the same matrix, with no adjoint inserted. Explicitly, let Pd(r)\mathcal P_d(r)Pd​(r) be the Young diagrams with rrr cells and first-column length at most ddd, let mλm_\lambdamλ​ count fillings weakly increasing along rows and strictly increasing down columns with entries 0,…,d−10,\ldots,d-10,…,d−1, and set Zd,N=(∑λ∈Pd(N)mλ2)−1Z_{d,N}=(\sum_{\lambda\in\mathcal P_d(N)}m_\lambda^2)^{-1}Zd,N​=(∑λ∈Pd​(N)​mλ2​)−1. Using the definition’s chosen numbering of the rrr cells of λ\lambdaλ, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the row-preserving and column-preserving permutations, let SλS_\lambdaSλ​ be the image of eh↦∑u∈Rλ,v∈Cλsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\lambda,v\in C_\lambda}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rλ​,v∈Cλ​​sgn(v)ehuv​, put Dλ=dim⁡CSλD_\lambda=\dim_{\mathbb C}S_\lambdaDλ​=dimC​Sλ​, and let QλQ_\lambdaQλ​ be orthogonal projection onto SλS_\lambdaSλ​. Define

Πλ=Dλr!∑π∈Srtr⁡(Lπ−1Qλ)Tπ,Lπeh=eπh,Tπ(y,x)=1{y=x∘π−1}.\Pi_\lambda=\frac{D_\lambda}{r!}\sum_{\pi\in\mathfrak S_r} \operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi, \quad L_\pi e_h=e_{\pi h}, \quad T_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}}.Πλ​=r!Dλ​​π∈Sr​∑​tr(Lπ−1​Qλ​)Tπ​,Lπ​eh​=eπh​,Tπ​(y,x)=1{y=x∘π−1}​.

Then Jd,NJ_{d,N}Jd,N​ is the real continuous functional calculus of x↦x−1x\mapsto x^{-1}x↦x−1 at ∑λ∈Pd(N)dNZd,Nmλ/Dλ Πλ\sum_{\lambda\in\mathcal P_d(N)}\sqrt{d^N}\sqrt{Z_{d,N}m_\lambda/D_\lambda}\,\Pi_\lambda∑λ∈Pd​(N)​dN​Zd,N​mλ​/Dλ​​Πλ​, and

Ei((a,c),(b,c′))=∑α∈Pd(N−1)dN+1Zd,NmαNDαd Πα(a∘σi,b∘σi)1{a(i)=c, b(i)=c′},E_i((a,c),(b,c'))= \sum_{\alpha\in\mathcal P_d(N-1)} \frac{d^{N+1}Z_{d,N}m_\alpha}{N D_\alpha d}\, \Pi_\alpha(a\circ\sigma_i,b\circ\sigma_i) \mathbf 1_{\{a(i)=c,\ b(i)=c'\}},Ei​((a,c),(b,c′))=α∈Pd​(N−1)∑​NDα​ddN+1Zd,N​mα​​Πα​(a∘σi​,b∘σi​)1{a(i)=c, b(i)=c′}​,

where σi(j)=j\sigma_i(j)=jσi​(j)=j for j<ij<ij<i and j+1j+1j+1 otherwise. Reciprocal functional calculus sends zero eigenvalues to zero for Hermitian arguments and defaults to zero for non-Hermitian arguments; scalar division by zero and real square roots of negative numbers are zero. The index requires N>0N>0N>0, while d=0d=0d=0 is allowed and gives the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P08.pulledBackEffect

For any natural numbers d,Nd,Nd,N, any complex matrix OOO indexed by length-NNN tuples from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and any complex matrix MMM indexed by pairs of such a tuple and an additional label from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, the definition is

pulledBackEffect(O,M)=(O⊗Id)†M(O⊗Id).\mathrm{pulledBackEffect}(O,M)=(O\otimes I_d)^\dagger M(O\otimes I_d).pulledBackEffect(O,M)=(O⊗Id​)†M(O⊗Id​).

The inputs are arbitrary matrices, with no positivity or normalization hypotheses. The definition also includes N=0N=0N=0 and d=0d=0d=0; for d=0d=0d=0, the resulting matrix has empty indices.

QAlgorithms.Papers.Independent.Extend50.P08.qubitOverlapFormula

For every natural number NNN, this defines the real number

2N+26(N+1)(N+3)∑k=0⌊N/2⌋(N−2k+1) sin⁡ ⁣(π(N−2k+1)N+2).\frac{2}{N+2} \sqrt{\frac{6}{(N+1)(N+3)}} \sum_{k=0}^{\lfloor N/2\rfloor} (N-2k+1)\, \sin\!\left(\frac{\pi(N-2k+1)}{N+2}\right).N+22​(N+1)(N+3)6​​k=0∑⌊N/2⌋​(N−2k+1)sin(N+2π(N−2k+1)​).

The index bound uses natural-number division N/2=⌊N/2⌋N/2=\lfloor N/2\rfloorN/2=⌊N/2⌋, while all arithmetic inside the summand and the displayed scalar factors is real arithmetic; in particular, N−2k+1N-2k+1N−2k+1 is a real subtraction. The definition includes N=0N=0N=0, when the sum has the single term k=0k=0k=0 and the resulting value is 2\sqrt22​.

QAlgorithms.Papers.Independent.Extend50.P08.qubitPrincipal

For every natural number NNN and every Young diagram μ\muμ with NNN cells and first-column length at most 222, this defines the real number

2N+2 sin⁡ ⁣(π(r0(μ)−r1(μ)+1)N+2),\frac{2}{\sqrt{N+2}}\, \sin\!\left( \frac{\pi\bigl(r_0(\mu)-r_1(\mu)+1\bigr)}{N+2} \right),N+2​2​sin(N+2π(r0​(μ)−r1​(μ)+1)​),

where r0(μ)r_0(\mu)r0​(μ) and r1(μ)r_1(\mu)r1​(μ) are the lengths of rows numbered 000 and 111, interpreted as real numbers, with a missing row having length zero. The definition includes N=0N=0N=0; for its empty diagram the value is 2\sqrt22​. It imposes no additional condition on μ\muμ.

QAlgorithms.Papers.Independent.Extend50.P08.qubitResourceOverlap

For every natural number NNN, this defines

∣⟨(BN⊗I)ΦN, (AN⊗I)ΦN⟩∣,ΦN(a,b)=2−N/21{a=b},\left|\left\langle (B_N\otimes I)\Phi_N,\ (A_N\otimes I)\Phi_N \right\rangle\right|, \qquad \Phi_N(a,b)=2^{-N/2}\mathbf 1_{\{a=b\}},∣⟨(BN​⊗I)ΦN​, (AN​⊗I)ΦN​⟩∣,ΦN​(a,b)=2−N/21{a=b}​,

where a,b:{0,…,N−1}→{0,1}a,b:\{0,\ldots,N-1\}\to\{0,1\}a,b:{0,…,N−1}→{0,1}, the identity acts on the second word register, and

BN=∑λ∈P2(N)2NZNmλDλ Πλ,AN=∑λ∈P2(N)2N vN(λ)Dλmλ Πλ,B_N=\sum_{\lambda\in\mathcal P_2(N)} \sqrt{2^N}\sqrt{\frac{Z_Nm_\lambda}{D_\lambda}}\,\Pi_\lambda, \qquad A_N=\sum_{\lambda\in\mathcal P_2(N)} \frac{\sqrt{2^N}\,v_N(\lambda)}{\sqrt{D_\lambda m_\lambda}}\, \Pi_\lambda,BN​=λ∈P2​(N)∑​2N​Dλ​ZN​mλ​​​Πλ​,AN​=λ∈P2​(N)∑​Dλ​mλ​​2N​vN​(λ)​Πλ​, ZN=(∑λ∈P2(N)mλ2)−1,vN(λ)=2N+2sin⁡ ⁣(π(r0(λ)−r1(λ)+1)N+2).Z_N=\left(\sum_{\lambda\in\mathcal P_2(N)}m_\lambda^2\right)^{-1}, \qquad v_N(\lambda)=\frac2{\sqrt{N+2}} \sin\!\left(\frac{\pi(r_0(\lambda)-r_1(\lambda)+1)}{N+2}\right).ZN​=​λ∈P2​(N)∑​mλ2​​−1,vN​(λ)=N+2​2​sin(N+2π(r0​(λ)−r1​(λ)+1)​).

Here P2(N)\mathcal P_2(N)P2​(N) comprises Young diagrams with NNN cells and first-column length at most 222; rj(λ)r_j(\lambda)rj​(λ) is row jjj’s length, zero for an absent row; and mλm_\lambdamλ​ counts fillings by 0,10,10,1 weakly increasing along rows and strictly increasing down columns. Using the definition’s chosen numbering of the cells of λ\lambdaλ, let Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq\mathfrak S_NRλ​,Cλ​⊆SN​ preserve rows and columns respectively, let SλS_\lambdaSλ​ be the image of eh↦∑u∈Rλ,v∈Cλsgn⁡(v)ehuve_h\mapsto\sum_{u\in R_\lambda,v\in C_\lambda}\operatorname{sgn}(v)e_{huv}eh​↦∑u∈Rλ​,v∈Cλ​​sgn(v)ehuv​, put Dλ=dim⁡CSλD_\lambda=\dim_{\mathbb C}S_\lambdaDλ​=dimC​Sλ​, and let QλQ_\lambdaQλ​ be orthogonal projection onto SλS_\lambdaSλ​. The matrix appearing above is

Πλ=DλN!∑π∈SNtr⁡(Lπ−1Qλ)Tπ,Lπeh=eπh,Tπ(y,x)=1{y=x∘π−1}.\Pi_\lambda=\frac{D_\lambda}{N!}\sum_{\pi\in\mathfrak S_N} \operatorname{tr}(L_{\pi^{-1}}Q_\lambda)T_\pi, \qquad L_\pi e_h=e_{\pi h}, \qquad T_\pi(y,x)=\mathbf 1_{\{y=x\circ\pi^{-1}\}}.Πλ​=N!Dλ​​π∈SN​∑​tr(Lπ−1​Qλ​)Tπ​,Lπ​eh​=eπh​,Tπ​(y,x)=1{y=x∘π−1}​.

The inner product is conjugate-linear in its first argument, and its complex norm is the absolute value. Scalar inverses at zero are defined to be zero. No lower bound on NNN is assumed; in particular, N=0N=0N=0 is included and gives 2\sqrt22​.

QAlgorithms.Papers.Independent.Extend50.P08.redistribute

For any natural numbers d,Nd,Nd,N, let A=[d][N]A=[d]^{[N]}A=[d][N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, and let MMM be any family of complex matrices on A×[d]A\times[d]A×[d] indexed by a failure label ⊥\bot⊥ and indices i∈[N]i\in[N]i∈[N]. This defines a new family M~\widetilde MM by

M~⊥=0,M~i=Mi+N−1M⊥(i∈[N]),\widetilde M_\bot=0,\qquad \widetilde M_i=M_i+N^{-1}M_\bot\quad(i\in[N]),M⊥​=0,Mi​=Mi​+N−1M⊥​(i∈[N]),

where N−1N^{-1}N−1 is a real scalar and 0−1=00^{-1}=00−1=0. No positivity, normalization, or other condition on MMM is assumed. When N=0N=0N=0, there are no port indices and the resulting family consists solely of the zero matrix at ⊥\bot⊥; d=0d=0d=0 is also included.

QAlgorithms.Papers.Independent.Extend50.P08.resource

For any natural numbers d,Nd,Nd,N, a hypothesis hd:0<dh_d:0<dhd​:0<d, and any complex matrix OOO indexed by length-NNN tuples from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, resource(hd,O)\mathrm{resource}(h_d,O)resource(hd​,O) is the vector in the complex Euclidean space indexed by pairs of these tuples given by

(O⊗I)(1dN∑x∣x,x⟩),(O\otimes I)\left(\frac{1}{\sqrt{d^N}}\sum_x |x,x\rangle\right),(O⊗I)(dN​1​x∑​∣x,x⟩),

where III is the identity on the tuple index set and ∣x,x⟩|x,x\rangle∣x,x⟩ has value 111 at (x,x)(x,x)(x,x) and 000 elsewhere. Equivalently, its coordinate at (x,y)(x,y)(x,y) is Ox,y/dNO_{x,y}/\sqrt{d^N}Ox,y​/dN​. The matrix OOO is arbitrary. The case N=0N=0N=0 is included: there is one pair of empty tuples, and the vector’s sole coordinate is the sole entry of OOO.

QAlgorithms.Papers.Independent.Extend50.P08.resourceOverlap

For natural numbers d,Nd,Nd,N, a hypothesis d>0d>0d>0, and arbitrary complex matrices O,PO,PO,P indexed by the words a:{0,…,N−1}→{0,…,d−1}a:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}a:{0,…,N−1}→{0,…,d−1}, this defines the real number

∣⟨(O⊗I)Φd,N,(P⊗I)Φd,N⟩∣,Φd,N(a,b)={(dN)−1a=b,0a≠b.\left|\left\langle (O\otimes I)\Phi_{d,N}, (P\otimes I)\Phi_{d,N}\right\rangle\right|, \qquad \Phi_{d,N}(a,b)= \begin{cases} (\sqrt{d^N})^{-1}&a=b,\\ 0&a\ne b. \end{cases}∣⟨(O⊗I)Φd,N​,(P⊗I)Φd,N​⟩∣,Φd,N​(a,b)={(dN​)−10​a=b,a=b.​

The identity acts on a second copy of the word register, the matrices act by ordinary matrix-vector multiplication, and the complex inner product is conjugate-linear in its first argument. Equivalently, the value is d−N∣tr⁡(O†P)∣d^{-N}|\operatorname{tr}(O^\dagger P)|d−N∣tr(O†P)∣. No unitarity or normalization assumption is imposed on OOO or PPP. The case N=0N=0N=0 is included: each word register then has one element, and the value is the absolute value of the inner product of the two resulting scalar vectors.

QAlgorithms.Papers.Independent.Extend50.P08.retainedPortBranch

For any natural numbers d,Nd,Nd,N, any complex matrix OOO on A=[d][N]A=[d]^{[N]}A=[d][N], any complex matrix MMM on A×[d]A\times[d]A×[d], and any i∈[N]i\in[N]i∈[N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, let L=O⊗IdL=O\otimes I_dL=O⊗Id​ and K=L†MLK=L^\dagger MLK=L†ML. This defines a function Φi\Phi_iΦi​ from complex d×dd\times dd×d matrices to complex d×dd\times dd×d matrices by requiring, for every input matrix XXX and every b,b′∈[d]b,b'\in[d]b,b′∈[d],

(Φi(X))b,b′=(dN)−1∑x,y∈Axi=b, yi=b′xj=yj for every j≠i ∑c,c′∈[d]K(y,c′),(x,c)Xc,c′.\bigl(\Phi_i(X)\bigr)_{b,b'} =(d^N)^{-1} \sum_{\substack{x,y\in A\\x_i=b,\ y_i=b'\\ x_j=y_j\ \text{for every }j\ne i}} \ \sum_{c,c'\in[d]} K_{(y,c'),(x,c)}X_{c,c'}.(Φi​(X))b,b′​=(dN)−1x,y∈Axi​=b, yi​=b′xj​=yj​ for every j=i​∑​ c,c′∈[d]∑​K(y,c′),(x,c)​Xc,c′​.

Here †\dagger† denotes conjugate transpose, the powers and reciprocal in the prefactor are complex, and 0−1=00^{-1}=00−1=0. There are no positivity, normalization, unitarity, or channel assumptions on OOO, MMM, or XXX. When N=0N=0N=0, no index iii exists; when d=0d=0d=0, the input and output matrices have empty index sets.

QAlgorithms.Papers.Independent.Extend50.P08.skipPort

For any natural number NNN, any index i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, and any index j∈{0,…,N−2}j\in\{0,\ldots,N-2\}j∈{0,…,N−2}, with the latter set interpreted as having N−1N-1N−1 elements using subtraction truncated at zero, this defines an index in {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} whose numerical value is

{j,j<i,j+1,j≥i.\begin{cases} j,&j<i,\\ j+1,&j\ge i. \end{cases}{j,j+1,​j<i,j≥i.​

Thus the resulting index skips iii. For N=0N=0N=0, there is no possible argument iii; for N=1N=1N=1, the argument iii exists but there is no possible argument jjj.

QAlgorithms.Papers.Independent.Extend50.P08.srm

For any natural numbers d,Nd,Nd,N and any i∈[N]={0,…,N−1}i\in[N]=\{0,\ldots,N-1\}i∈[N]={0,…,N−1}, put A=[d][N]A=[d]^{[N]}A=[d][N] and define matrices on A×[d]A\times[d]A×[d] by

(Bj)(x,c),(y,c′)={d−1,xℓ=yℓ for all ℓ≠j,xj=c,yj=c′,0,otherwise,Qj=(dmax⁡(N−1,0))−1Bj.(B_j)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_\ell=y_\ell\text{ for all }\ell\ne j,\quad x_j=c,\quad y_j=c',\\ 0,&\text{otherwise}, \end{cases} \qquad Q_j=(d^{\max(N-1,0)})^{-1}B_j.(Bj​)(x,c),(y,c′)​={d−1,0,​xℓ​=yℓ​ for all ℓ=j,xj​=c,yj​=c′,otherwise,​Qj​=(dmax(N−1,0))−1Bj​.

Let R=f(∑j∈[N]Qj)R=f(\sum_{j\in[N]}Q_j)R=f(∑j∈[N]​Qj​) under real continuous functional calculus, where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1, equal to zero for t≤0t\le0t≤0. This defines the matrix RQiRRQ_iRRQi​R. All reciprocals use 0−1=00^{-1}=00−1=0. There is no possible index iii when N=0N=0N=0; when d=0d=0d=0, these are matrices on an empty index set.

QAlgorithms.Papers.Independent.Extend50.P08.srmFailureEffect

For any natural numbers d,Nd,Nd,N, put A=[d][N]A=[d]^{[N]}A=[d][N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, and define matrices on A×[d]A\times[d]A×[d] by

(Bi)(x,c),(y,c′)={d−1,xj=yj for all j≠i,xi=c,yi=c′,0,otherwise,Qi=(dmax⁡(N−1,0))−1Bi.(B_i)_{(x,c),(y,c')}= \begin{cases} d^{-1},&x_j=y_j\text{ for all }j\ne i,\quad x_i=c,\quad y_i=c',\\ 0,&\text{otherwise}, \end{cases} \qquad Q_i=(d^{\max(N-1,0)})^{-1}B_i.(Bi​)(x,c),(y,c′)​={d−1,0,​xj​=yj​ for all j=i,xi​=c,yi​=c′,otherwise,​Qi​=(dmax(N−1,0))−1Bi​.

Let R=f(∑i∈[N]Qi)R=f(\sum_{i\in[N]}Q_i)R=f(∑i∈[N]​Qi​) under real continuous functional calculus, with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 and f(t)=0f(t)=0f(t)=0 for t≤0t\le0t≤0. This defines

I−∑i∈[N]RQiR,I-\sum_{i\in[N]}RQ_iR,I−i∈[N]∑​RQi​R,

where III is the identity matrix on A×[d]A\times[d]A×[d]. Reciprocals at zero are zero. When N=0N=0N=0, the sum is empty and the result is III; d=0d=0d=0 is also allowed and gives an empty matrix index set.

QAlgorithms.Papers.Independent.Extend50.P08.successfulMap

For any natural numbers d,Nd,Nd,N, any complex matrix OOO on A=[d][N]A=[d]^{[N]}A=[d][N], and any family MMM of complex matrices on A×[d]A\times[d]A×[d] indexed by a failure label ⊥\bot⊥ and i∈[N]i\in[N]i∈[N], where [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, put L=O⊗IdL=O\otimes I_dL=O⊗Id​ and Ki=L†MiLK_i=L^\dagger M_iLKi​=L†Mi​L. This defines a function Φ\PhiΦ on complex d×dd\times dd×d matrices by

(Φ(X))b,b′=(dN)−1∑i∈[N]∑x,y∈Axi=b, yi=b′xj=yj for every j≠i ∑c,c′∈[d](Ki)(y,c′),(x,c)Xc,c′\bigl(\Phi(X)\bigr)_{b,b'} =(d^N)^{-1} \sum_{i\in[N]} \sum_{\substack{x,y\in A\\x_i=b,\ y_i=b'\\ x_j=y_j\ \text{for every }j\ne i}} \ \sum_{c,c'\in[d]} (K_i)_{(y,c'),(x,c)}X_{c,c'}(Φ(X))b,b′​=(dN)−1i∈[N]∑​x,y∈Axi​=b, yi​=b′xj​=yj​ for every j=i​∑​ c,c′∈[d]∑​(Ki​)(y,c′),(x,c)​Xc,c′​

for every matrix XXX and every b,b′∈[d]b,b'\in[d]b,b′∈[d]. The failure matrix M⊥M_\botM⊥​ does not enter this expression. The reciprocal is complex and totalized at zero, and no physical or channel assumptions are imposed. When N=0N=0N=0, Φ\PhiΦ is the zero function; d=0d=0d=0 is also allowed.

QAlgorithms.Papers.Independent.Extend50.P08.supportInverseSqrt

For any natural numbers d,Nd,Nd,N, including zero, let [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, let A=[d][N]A=[d]^{[N]}A=[d][N] be the set of port configurations, and index matrices by A×[d]A\times[d]A×[d]. For each i∈[N]i\in[N]i∈[N], define BiB_iBi​ by

(Bi)(x,c),(y,c′)={d−1,xj=yj for every j≠i,xi=c,yi=c′,0,otherwise.(B_i)_{(x,c),(y,c')}= \begin{cases} d^{-1},& x_j=y_j\text{ for every }j\ne i,\quad x_i=c,\quad y_i=c',\\ 0,&\text{otherwise}. \end{cases}(Bi​)(x,c),(y,c′)​={d−1,0,​xj​=yj​ for every j=i,xi​=c,yi​=c′,otherwise.​

Set S=(dmax⁡(N−1,0))−1∑i∈[N]BiS=(d^{\max(N-1,0)})^{-1}\sum_{i\in[N]}B_iS=(dmax(N−1,0))−1∑i∈[N]​Bi​. This defines the matrix R=f(S)R=f(S)R=f(S) by real continuous functional calculus, where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 with f(t)=0f(t)=0f(t)=0 for t≤0t\le0t≤0. Equivalently, on each eigenspace of the Hermitian matrix SSS, RRR acts by the reciprocal square root of a positive eigenvalue and by zero at eigenvalue zero. All reciprocals are totalized, so 0−1=00^{-1}=00−1=0. When N=0N=0N=0, S=R=0S=R=0S=R=0; when d=0d=0d=0, the matrix index set is empty.

QAlgorithms.Papers.Independent.Extend50.P08.teleportationMatrix

For any natural numbers d,Nd,Nd,N, this defines a real matrix whose rows and columns are indexed by Young diagrams with NNN cells and at most ddd rows. For row μ\muμ and column ν\nuν, its entry is

Td,N(μ,ν)=∑α a Young diagram∣α∣=N−1, α has at most d rows1N=(N−1)+1cells⁡(α)⊆cells⁡(μ)cells⁡(α)⊆cells⁡(ν).T_{d,N}(\mu,\nu)= \sum_{\substack{\alpha\text{ a Young diagram}\\ |\alpha|=N-1,\ \alpha\text{ has at most }d\text{ rows}}} \mathbf1_{\substack{N=(N-1)+1\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu)}}.Td,N​(μ,ν)=α a Young diagram∣α∣=N−1, α has at most d rows​∑​1N=(N−1)+1cells(α)⊆cells(μ)cells(α)⊆cells(ν)​​.

Here N−1N-1N−1 is natural-number subtraction, truncated at zero. Thus, for N>0N>0N>0, the entry counts diagrams obtained by deleting one cell from both μ\muμ and ν\nuν. For N=0N=0N=0, the equality inside the indicator becomes 0=10=10=1, so every entry is zero. If there are no indexing diagrams, the result is a matrix with empty row and column index sets.

QAlgorithms.Papers.Independent.Extend50.P08.teleportationRayleigh

For natural numbers d,Nd,Nd,N and any real-valued function vvv on the set Pd,N\mathcal P_{d,N}Pd,N​ of Young diagrams with NNN cells and at most ddd rows, this defines

∑μ,ν∈Pd,Nv(μ)v(ν)∑α∈Pd,N−11N=(N−1)+1cells⁡(α)⊆cells⁡(μ)cells⁡(α)⊆cells⁡(ν).\sum_{\mu,\nu\in\mathcal P_{d,N}} v(\mu)v(\nu) \sum_{\alpha\in\mathcal P_{d,N-1}} \mathbf1_{\substack{N=(N-1)+1\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\mu)\\ \operatorname{cells}(\alpha)\subseteq\operatorname{cells}(\nu)}}.μ,ν∈Pd,N​∑​v(μ)v(ν)α∈Pd,N−1​∑​1N=(N−1)+1cells(α)⊆cells(μ)cells(α)⊆cells(ν)​​.

The subtraction N−1N-1N−1 is truncated at zero. There is no nonnegativity or normalization assumption on vvv. Empty sums are zero; in particular, the value is zero if Pd,N\mathcal P_{d,N}Pd,N​ is empty, and it is also zero for N=0N=0N=0 because the indicated equality then fails.

QAlgorithms.Papers.Independent.Extend50.P08.unnormalizedBell

For every natural number ddd, this defines a vector in the complex Euclidean space indexed by {0,…,d−1}×{0,…,d−1}\{0,\ldots,d-1\}\times\{0,\ldots,d-1\}{0,…,d−1}×{0,…,d−1} whose coordinate at (a,b)(a,b)(a,b) is 111 if a=ba=ba=b and 000 otherwise; equivalently, it is ∑a=0d−1e(a,a)\sum_{a=0}^{d-1}e_{(a,a)}∑a=0d−1​e(a,a)​. No normalization factor is included. The case d=0d=0d=0 is allowed and gives the zero vector in the zero-dimensional space.

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