Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Efficient multi port-based teleportation schemes

Definition
QAlgorithms_Papers_Independent_Extend50_P18

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

prove2quantum

The objects the formalized statements of Efficient multi port-based teleportation schemes (arXiv:2008.00984) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • ProtocolIndex: Alice's N ports and the ordered k input registers (PDF pp.5-6).
  • PortChoice: Ordered distinct port choices; l-th input is paired with i(l) (PDF p.5, (4)).
  • mpbtSignal: Signal density (7), in computational coordinates. The Bell projectors each contribute 1/d and the unused registers contribute 1/d^(N-k), giving 1/d^N (PDF p.6). This definition is used only under k <= N and d > 0.
  • mpbtOperator: Sum of all ordered signals, without an ensemble-probability factor (PDF p.6, (8)).
  • inverseRoot: Support inverse square root, with value zero at the zero eigenvalue (PDF p.6, (10)).
  • srmRaw: Uncompleted square-root measurement effect, distinct from the completed Pi (PDF p.6, (10)-(11)).
  • srmRemainder: Equal distribution of the support-complement effect (PDF p.6, (11)).
  • srmEffect: Completed deterministic SRM effect (PDF p.6, (10)).
  • protocolFidelity: Entanglement fidelity functional (9), valid for the fixed normalized Bell resource and Bob's ordered port selection, with no further correction (PDF pp.5-6). The real part extracts the real trace of physical products.
  • irrepDim: Physical irrep dimension, not an independently supplied scalar (PDF p.9, (28),(30)).
  • mpbtSchurMultiplicity: Physical Schur-Weyl multiplicity, including all tensor copies (PDF p.9, (29)-(30)).
  • YoungPaths: Saturated paths in the height-d Young lattice from alpha to mu. A path has one box added at each step, and is counted once, not weighted by its length (PDF pp.8-9, (58)-(59)).
  • pathCount: Number of saturated paths (PDF pp.8-9, (58)-(59)).
  • fidelityExpression: Explicit value of the deterministic performance formula. The outer sum is outside the square and path multiplicities are outside the square root (PDF p.18, (134), independently (140),(154)).
  • ContractionIndex: Contraction registers: r untouched, k middle, k output, so n=r+2k (PDF p.9, (37)).
  • reverseWord: Reversal of the output order in the explicitly paired systems of (37) (PDF p.9).
  • pairedContraction: Product of partially transposed swaps, namely d^k times the normalized Bell projector on the paired registers, with untouched identities (37). Its entries are 0 or 1; there is no additional normalization (PDF p.9).
  • liftInput: Embed an arbitrary operator on the first r+k registers, adding identity on the final k outputs (PDF p.9, (38)).
  • liftSurvivor: Embed an operator on the untouched r registers by identities on both paired blocks (PDF p.9, (38)).
  • spechtActionMatrix: Irrep matrices in the frozen orthonormal Specht basis. Fact 2 is independent of any branching convention (PDF pp.9-10, (32),(42)).
  • physicalBlock: The physical block I_(U_lambda) tensor X, extended by zero, expressed via the frozen independently constructed Schur transform, not defined by the Fourier sum whose identity is being stated (PDF pp.9-10, (30),(42)).
  • includePermutation: Embed S(t) into S(t+1), fixing the final register (PDF p.10, (50)-(51)).
  • restrictionProjector: Character-defined beta-restriction projector inside the actual mu Specht module. This is the coordinate-independent restriction block of Lemma 3, not an arbitrarily supplied projection (PDF p.10, (46),(51)).
  • weightedTranspositions: Weighted transposition sum: a=n contributes d times the identity, not one (PDF p.10, (45),(47)).
  • traceFinalQudits: Unnormalized trace of the last k factors of an r+k factor operator. In Lemma 9/Corollary 10 these are the middle registers of n=r+2k (PDF pp.12-13).
  • permuteChoice: Relabel all ordered selected ports by the actual permutation, preserving input order (PDF p.7, (22)).
  • portPermutation: Physical permutation of Alice's ports, leaving the ordered inputs fixed (PDF p.7, (22)-(23)).
  • mixedTensorAction: U on every Alice register and entrywise conjugate U on every input (PDF p.7, §IV).
  • eigenvalueExpression: Eigenvalue expression (119), computed from physical dimensions (PDF p.17). The count |I| is (r+k)!/r!, with N=r+k.
  • reciprocalMinimum: Minimum of the entire reciprocal eigenvalue expression over occurring extensions. Under d>0, every alpha admits an extension (add k boxes to row 1), the set is finite nonempty and all eigenvalues are positive. Thus no empty or unbounded sInf default is involved on theorem inputs (PDF pp.19-20, (141),(144)).
  • successExpression: Optimal success probability expression, the minimum applies to the whole quotient m_alpha*d_alpha/lambda_mu(alpha) (PDF p.19, (141)).
  • PortFrames: Coordinate conventions for selected and unused ports. These are arbitrary register enumerations, with selected registers in the specified input order; they do not constrain measurements or the resource (PDF pp.5-7).
  • successEffect: Selected Bell projector tensor an operator on the remaining registers, transported through an explicit port enumeration (PDF p.6, (13)).
  • FeasibleSuccess: Complete feasible family in the source's perfect-success model: each theta is PSD and the residual failure effect is PSD (PDF pp.6-7, (13)-(15)).
  • mpbtAverageSuccess: Average success (12), or equivalently (14) since each Bell projector has trace one (PDF pp.6-7).
  • optimalTheta: Proof-supported optimal unused-register effect: coefficient (d^k/d^N)*b_alpha, not the probability prefactor printed in (142). Printed: |I|/d^(2N); changed: d^(k-N). Why: (143)-(145) give the feasible saturating coefficient and (146)-(149) its matching upper bound (PDF pp.19-20). Independent moderation of this correction remains required.
  • FiniteUnitaryRepresentation: Finite-dimensional unitary matrix representation (PDF p.11, (60)).
  • MatrixIrreducible: Irreducibility for a unitary representation: only trivial invariant orthogonal projections. Positive dimension excludes the zero module (PDF p.11).
  • SubgroupBlockIndex: Coordinate space grouped first by H-irrep type, then multiplicity copy, then irrep coordinate (PDF p.11, (60)-(61)).
  • subgroupBlockMatrix: Repeated copies use the same fixed realization; zero off each diagonal copy, including distinct copies of the same irrep (PDF p.11, (60)-(61)).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition

noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P18

attribute [local instance] Classical.propDecidable

/-- Alice's N ports and the ordered k input registers (PDF pp.5-6). -/
abbrev ProtocolIndex (d N k : ℕ) := (Fin N → Fin d) × (Fin k → Fin d)

/-- Ordered distinct port choices; l-th input is paired with i(l) (PDF p.5, (4)). -/
abbrev PortChoice (N k : ℕ) := Fin k ↪ Fin N

/-- Signal density (7), in computational coordinates. The Bell projectors each
contribute 1/d and the unused registers contribute 1/d^(N-k), giving 1/d^N
(PDF p.6). This definition is used only under k <= N and d > 0. -/
def mpbtSignal {d N k : ℕ} (i : PortChoice N k) :
    Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  Matrix.of fun x y =>
    if (∀ a : Fin N, (∀ l : Fin k, i l ≠ a) → x.1 a = y.1 a) ∧
        (∀ l : Fin k, x.1 (i l) = x.2 l) ∧
        (∀ l : Fin k, y.1 (i l) = y.2 l)
    then ((d : ℂ) ^ N)⁻¹ else 0

/-- Sum of all ordered signals, without an ensemble-probability factor
(PDF p.6, (8)). -/
def mpbtOperator (d N k : ℕ) : Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  ∑ i : PortChoice N k, mpbtSignal i

/-- Support inverse square root, with value zero at the zero eigenvalue
(PDF p.6, (10)). -/
def inverseRoot (d N k : ℕ) : Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  cfc (fun t : ℝ => (Real.sqrt t)⁻¹) (mpbtOperator d N k)

/-- Uncompleted square-root measurement effect, distinct from the completed Pi
(PDF p.6, (10)-(11)). -/
def srmRaw {d N k : ℕ} (i : PortChoice N k) :
    Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  inverseRoot d N k * mpbtSignal i * inverseRoot d N k

/-- Equal distribution of the support-complement effect (PDF p.6, (11)). -/
def srmRemainder (d N k : ℕ) : Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  ((Fintype.card (PortChoice N k) : ℂ)⁻¹) •
    (1 - ∑ i : PortChoice N k, srmRaw (d := d) i)

/-- Completed deterministic SRM effect (PDF p.6, (10)). -/
def srmEffect {d N k : ℕ} (i : PortChoice N k) :
    Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  srmRaw i + srmRemainder d N k

/-- Entanglement fidelity functional (9), valid for the fixed normalized Bell
resource and Bob's ordered port selection, with no further correction
(PDF pp.5-6). The real part extracts the real trace of physical products. -/
def protocolFidelity {d N k : ℕ}
    (effects : PortChoice N k → Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ) : ℝ :=
  (∑ i : PortChoice N k, (effects i * mpbtSignal i).trace.re) / (d : ℝ) ^ (2*k)

/-- A positive local dimension has a single scalar signal when d=1. -/
example {N k : ℕ} (i : PortChoice N k) :
    mpbtSignal (d := 1) i = (1 : Matrix (ProtocolIndex 1 N k) (ProtocolIndex 1 N k) ℂ) := by
  ext x y
  have hxy : x = y := Subsingleton.elim _ _
  subst y
  have hlocal : ∀ a b : Fin 1, a = b := fun _ _ => Subsingleton.elim _ _
  have hpaired : ∀ l : Fin k, x.1 (i l) = x.2 l := fun _ => hlocal _ _
  simp [mpbtSignal, Matrix.one_apply, hpaired]

/-- Physical irrep dimension, not an independently supplied scalar
(PDF p.9, (28),(30)). -/
def irrepDim {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) : ℕ :=
  Module.finrank ℂ (QAlgorithms.Schur.spechtSpace lambda)

/-- Physical Schur-Weyl multiplicity, including all tensor copies
(PDF p.9, (29)-(30)). -/
def mpbtSchurMultiplicity {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) : ℕ :=
  Module.finrank ℂ (QAlgorithms.Schur.schurModule lambda)

/-- Saturated paths in the height-d Young lattice from alpha to mu. A path has
one box added at each step, and is counted once, not weighted by its length
(PDF pp.8-9, (58)-(59)). -/
def YoungPaths {d r k : ℕ} (alpha : QAlgorithms.Schur.Partition d r)
    (mu : QAlgorithms.Schur.Partition d (r+k)) :=
  {p : (j : Fin (k+1)) → QAlgorithms.Schur.Partition d (r+j.val) //
    (p 0).val = alpha.val ∧ (p (Fin.last k)).val = mu.val ∧
      ∀ j : Fin k, (p j.castSucc).val ≤ (p j.succ).val}

/-- Paths form a finite type, ruling out Nat.card's infinite-type default. -/
instance youngPathsFinite {d r k : ℕ} (alpha : QAlgorithms.Schur.Partition d r)
    (mu : QAlgorithms.Schur.Partition d (r+k)) : Finite (YoungPaths alpha mu) := by
  unfold YoungPaths
  infer_instance

/-- Number of saturated paths (PDF pp.8-9, (58)-(59)). -/
def pathCount {d r k : ℕ} (alpha : QAlgorithms.Schur.Partition d r)
    (mu : QAlgorithms.Schur.Partition d (r+k)) : ℕ :=
  Nat.card (YoungPaths alpha mu)

/-- Explicit value of the deterministic performance formula. The outer sum is
outside the square and path multiplicities are outside the square root
(PDF p.18, (134), independently (140),(154)). -/
def fidelityExpression (d r k : ℕ) : ℝ :=
  (∑ alpha : QAlgorithms.Schur.Partition d r,
    (∑ mu : QAlgorithms.Schur.Partition d (r+k),
      (pathCount alpha mu : ℝ) *
        Real.sqrt ((mpbtSchurMultiplicity mu : ℝ) * (irrepDim mu : ℝ))) ^ 2) /
    (d : ℝ) ^ (r+k+2*k)

/-- Contraction registers: r untouched, k middle, k output, so n=r+2k
(PDF p.9, (37)). -/
abbrev ContractionIndex (d r k : ℕ) := (Fin r → Fin d) × ((Fin k → Fin d) × (Fin k → Fin d))

/-- Reversal of the output order in the explicitly paired systems of (37)
(PDF p.9). -/
def reverseWord {d k : ℕ} (w : (Fin k → Fin d)) : (Fin k → Fin d) := fun l => w l.rev

/-- Product of partially transposed swaps, namely d^k times the normalized
Bell projector on the paired registers, with untouched identities (37).
Its entries are 0 or 1; there is no additional normalization (PDF p.9). -/
def pairedContraction (d r k : ℕ) :
    Matrix (ContractionIndex d r k) (ContractionIndex d r k) ℂ :=
  Matrix.of fun x y => if x.1 = y.1 ∧ x.2.1 = reverseWord x.2.2 ∧
    y.2.1 = reverseWord y.2.2 then 1 else 0

/-- Embed an arbitrary operator on the first r+k registers, adding identity
on the final k outputs (PDF p.9, (38)). -/
def liftInput {d r k : ℕ} (X : Matrix ((Fin r → Fin d) × (Fin k → Fin d)) ((Fin r → Fin d) × (Fin k → Fin d)) ℂ) :
    Matrix (ContractionIndex d r k) (ContractionIndex d r k) ℂ :=
  Matrix.of fun x y => X (x.1,x.2.1) (y.1,y.2.1) * if x.2.2 = y.2.2 then 1 else 0

/-- Embed an operator on the untouched r registers by identities on both
paired blocks (PDF p.9, (38)). -/
def liftSurvivor {d r k : ℕ} (X : Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ) :
    Matrix (ContractionIndex d r k) (ContractionIndex d r k) ℂ :=
  Matrix.of fun x y => X x.1 y.1 * if x.2 = y.2 then 1 else 0

/-- In local dimension one the contraction has exactly the scalar value one. -/
example (r k : ℕ) (x y : ContractionIndex 1 r k) : pairedContraction 1 r k x y = 1 := by
  simp [pairedContraction, Subsingleton.elim x.1 y.1,
    Subsingleton.elim x.2.1 (reverseWord x.2.2),
    Subsingleton.elim y.2.1 (reverseWord y.2.2)]

/-- Irrep matrices in the frozen orthonormal Specht basis. Fact 2 is independent
of any branching convention (PDF pp.9-10, (32),(42)). -/
def spechtActionMatrix {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n)
    (pi : Equiv.Perm (Fin n)) : Matrix (Fin (irrepDim lambda)) (Fin (irrepDim lambda)) ℂ :=
  Matrix.of fun i j => inner ℂ
    (stdOrthonormalBasis ℂ (QAlgorithms.Schur.spechtSpace lambda) i)
    (QAlgorithms.Schur.spechtRepresentation lambda pi
      (stdOrthonormalBasis ℂ (QAlgorithms.Schur.spechtSpace lambda) j))

/-- The physical block I_(U_lambda) tensor X, extended by zero, expressed via
the frozen independently constructed Schur transform, not defined by the
Fourier sum whose identity is being stated (PDF pp.9-10, (30),(42)). -/
def physicalBlock {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n)
    (X : Matrix (Fin (irrepDim lambda)) (Fin (irrepDim lambda)) ℂ) :
    Matrix ((Fin n → Fin d)) ((Fin n → Fin d)) ℂ :=
  Matrix.of fun x y =>
    ∑ a : Fin (mpbtSchurMultiplicity lambda), ∑ i : Fin (irrepDim lambda),
      ∑ j : Fin (irrepDim lambda),
        star (QAlgorithms.Schur.decomposition d n ⟨lambda,(i,a)⟩ x) * X i j *
          QAlgorithms.Schur.decomposition d n ⟨lambda,(j,a)⟩ y

/-- The independently defined physical block sends the zero operator to zero. -/
example {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :
    physicalBlock lambda 0 = 0 := by
  ext x y
  simp [physicalBlock]

/-- Embed S(t) into S(t+1), fixing the final register (PDF p.10, (50)-(51)). -/
def includePermutation {t : ℕ} (tau : Equiv.Perm (Fin t)) : Equiv.Perm (Fin (t+1)) :=
  finSumFinEquiv.symm.trans
    ((Equiv.sumCongr tau (Equiv.refl (Fin 1))).trans finSumFinEquiv)

/-- Character-defined beta-restriction projector inside the actual mu Specht
module. This is the coordinate-independent restriction block of Lemma 3,
not an arbitrarily supplied projection (PDF p.10, (46),(51)). -/
def restrictionProjector {d t : ℕ} (mu : QAlgorithms.Schur.Partition d (t+1))
    (beta : QAlgorithms.Schur.Partition d t) :
    Matrix (Fin (irrepDim mu)) (Fin (irrepDim mu)) ℂ :=
  ((irrepDim beta : ℂ) / (t.factorial : ℂ)) •
    ∑ tau : Equiv.Perm (Fin t),
      QAlgorithms.Schur.spechtCharacter beta tau⁻¹ • spechtActionMatrix mu (includePermutation tau)

/-- Weighted transposition sum: a=n contributes d times the identity, not one
(PDF p.10, (45),(47)). -/
def weightedTranspositions {d t : ℕ} (mu : QAlgorithms.Schur.Partition d (t+1)) :
    Matrix (Fin (irrepDim mu)) (Fin (irrepDim mu)) ℂ :=
  ∑ a : Fin (t+1), (if a = Fin.last t then (d : ℂ) else 1) •
    spechtActionMatrix mu (Equiv.swap a (Fin.last t))

/-- Unnormalized trace of the last k factors of an r+k factor operator. In
Lemma 9/Corollary 10 these are the middle registers of n=r+2k (PDF pp.12-13). -/
def traceFinalQudits {d r k : ℕ} (X : Matrix ((Fin (r+k) → Fin d)) ((Fin (r+k) → Fin d)) ℂ) :
    Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ :=
  QAlgorithms.traceRight (Matrix.of fun (a b : (Fin r → Fin d) × (Fin k → Fin d)) =>
    X (Fin.addCases a.1 a.2) (Fin.addCases b.1 b.2))

/-- Relabel all ordered selected ports by the actual permutation, preserving
input order (PDF p.7, (22)). -/
def permuteChoice {N k : ℕ} (tau : Equiv.Perm (Fin N)) (i : PortChoice N k) : PortChoice N k :=
  ⟨fun l => tau (i l), tau.injective.comp i.injective⟩

/-- Physical permutation of Alice's ports, leaving the ordered inputs fixed
(PDF p.7, (22)-(23)). -/
def portPermutation {d N k : ℕ} (tau : Equiv.Perm (Fin N)) :
    Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  Matrix.of fun x y => if x.1 = y.1 ∘ tau.symm ∧ x.2 = y.2 then 1 else 0

/-- U on every Alice register and entrywise conjugate U on every input
(PDF p.7, §IV). -/
def mixedTensorAction {d N k : ℕ} (U : Matrix.unitaryGroup (Fin d) ℂ) :
    Matrix (ProtocolIndex d N k) (ProtocolIndex d N k) ℂ :=
  Matrix.of fun x y =>
    (∏ a : Fin N, (U : Matrix (Fin d) (Fin d) ℂ) (x.1 a) (y.1 a)) *
      ∏ l : Fin k, star ((U : Matrix (Fin d) (Fin d) ℂ) (x.2 l) (y.2 l))

/-- Eigenvalue expression (119), computed from physical dimensions (PDF p.17).
The count |I| is (r+k)!/r!, with N=r+k. -/
def eigenvalueExpression {d r k : ℕ} (alpha : QAlgorithms.Schur.Partition d r)
    (mu : QAlgorithms.Schur.Partition d (r+k)) : ℝ :=
  ((r+k).factorial : ℝ) / (r.factorial : ℝ) / (d : ℝ) ^ (r+k) *
    ((mpbtSchurMultiplicity mu : ℝ) * (irrepDim alpha : ℝ)) /
      ((mpbtSchurMultiplicity alpha : ℝ) * (irrepDim mu : ℝ))

/-- Minimum of the entire reciprocal eigenvalue expression over occurring
extensions. Under d>0, every alpha admits an extension (add k boxes to row 1),
the set is finite nonempty and all eigenvalues are positive. Thus no empty or
unbounded sInf default is involved on theorem inputs (PDF pp.19-20, (141),(144)). -/
def reciprocalMinimum {d r k : ℕ} (alpha : QAlgorithms.Schur.Partition d r) : ℝ :=
  sInf {b : ℝ | ∃ mu : QAlgorithms.Schur.Partition d (r+k),
    0 < pathCount alpha mu ∧ b = (eigenvalueExpression alpha mu)⁻¹}

/-- Optimal success probability expression, the minimum applies to the whole
quotient m_alpha*d_alpha/lambda_mu(alpha) (PDF p.19, (141)). -/
def successExpression (d r k : ℕ) : ℝ :=
  ((r+k).factorial : ℝ) / (r.factorial : ℝ) / (d : ℝ) ^ (2*(r+k)) *
    ∑ alpha : QAlgorithms.Schur.Partition d r,
      (mpbtSchurMultiplicity alpha : ℝ) * (irrepDim alpha : ℝ) * reciprocalMinimum (k := k) alpha

/-- Coordinate conventions for selected and unused ports. These are arbitrary
register enumerations, with selected registers in the specified input order;
they do not constrain measurements or the resource (PDF pp.5-7). -/
def PortFrames (N k r : ℕ) :=
  (i : PortChoice N k) → {e : Fin N ≃ Fin k ⊕ Fin r // ∀ l : Fin k, e (i l) = Sum.inl l}

/-- Selected Bell projector tensor an operator on the remaining registers,
transported through an explicit port enumeration (PDF p.6, (13)). -/
def successEffect {d r k : ℕ} (frames : PortFrames (r+k) k r)
    (theta : (i : PortChoice (r+k) k) → Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ)
    (i : PortChoice (r+k) k) :
    Matrix (ProtocolIndex d (r+k) k) (ProtocolIndex d (r+k) k) ℂ :=
  Matrix.of fun x y =>
    if (∀ l : Fin k, x.1 (i l) = x.2 l) ∧ (∀ l : Fin k, y.1 (i l) = y.2 l)
    then ((d : ℂ) ^ k)⁻¹ * theta i
      (fun a => x.1 ((frames i).val.symm (Sum.inr a)))
      (fun a => y.1 ((frames i).val.symm (Sum.inr a)))
    else 0

/-- Complete feasible family in the source's perfect-success model: each theta
is PSD and the residual failure effect is PSD (PDF pp.6-7, (13)-(15)). -/
def FeasibleSuccess {d r k : ℕ} (frames : PortFrames (r+k) k r)
    (theta : (i : PortChoice (r+k) k) → Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ) : Prop :=
  (∀ i, (theta i).PosSemidef) ∧
    (1 - ∑ i : PortChoice (r+k) k, successEffect frames theta i).PosSemidef

/-- Average success (12), or equivalently (14) since each Bell projector has
trace one (PDF pp.6-7). -/
def mpbtAverageSuccess {d r k : ℕ} (frames : PortFrames (r+k) k r)
    (theta : (i : PortChoice (r+k) k) → Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ) : ℝ :=
  (∑ i : PortChoice (r+k) k, (successEffect frames theta i).trace.re) /
    (d : ℝ) ^ (r+2*k)

/-- Proof-supported optimal unused-register effect: coefficient
(d^k/d^N)*b_alpha, not the probability prefactor printed in (142).
Printed: |I|/d^(2N); changed: d^(k-N). Why: (143)-(145) give the feasible
saturating coefficient and (146)-(149) its matching upper bound
(PDF pp.19-20). Independent moderation of this correction remains required. -/
def optimalTheta (d r k : ℕ) : Matrix ((Fin r → Fin d)) ((Fin r → Fin d)) ℂ :=
  ∑ alpha : QAlgorithms.Schur.Partition d r,
    (((d : ℂ)^k / (d : ℂ)^(r+k)) * (reciprocalMinimum (k := k) alpha : ℂ)) •
      QAlgorithms.Schur.isotypicProjector alpha

/-- Zero unused-register operator gives zero success effect, including all
possible off-diagonal Bell entries. -/
example {d r k : ℕ} (frames : PortFrames (r+k) k r) (i : PortChoice (r+k) k) :
    successEffect (d := d) frames (fun _ => 0) i = 0 := by
  ext x y
  simp [successEffect]

/-- Finite-dimensional unitary matrix representation (PDF p.11, (60)). -/
structure FiniteUnitaryRepresentation (G : Type*) [Group G] (m : ℕ) where
  matrix : G → Matrix (Fin m) (Fin m) ℂ
  map_one : matrix 1 = 1
  map_mul : ∀ g h, matrix (g*h) = matrix g * matrix h
  unitary : ∀ g, (matrix g)ᴴ * matrix g = 1 ∧ matrix g * (matrix g)ᴴ = 1

/-- Irreducibility for a unitary representation: only trivial invariant
orthogonal projections. Positive dimension excludes the zero module
(PDF p.11). -/
def MatrixIrreducible {G : Type*} [Group G] {m : ℕ} (rho : FiniteUnitaryRepresentation G m) : Prop :=
  0 < m ∧ ∀ P : Matrix (Fin m) (Fin m) ℂ,
    Pᴴ = P → P*P = P → (∀ g, P * rho.matrix g = rho.matrix g * P) → P = 0 ∨ P = 1

/-- Coordinate space grouped first by H-irrep type, then multiplicity copy,
then irrep coordinate (PDF p.11, (60)-(61)). -/
abbrev SubgroupBlockIndex {a : ℕ} (dims copies : Fin a → ℕ) :=
  (label : Fin a) × (Fin (copies label) × Fin (dims label))

/-- Repeated copies use the same fixed realization; zero off each diagonal
copy, including distinct copies of the same irrep (PDF p.11, (60)-(61)). -/
def subgroupBlockMatrix {G : Type*} [Group G] {a : ℕ} (dims copies : Fin a → ℕ)
    (reps : (label : Fin a) → FiniteUnitaryRepresentation G (dims label)) (g : G) :
    Matrix (SubgroupBlockIndex dims copies) (SubgroupBlockIndex dims copies) ℂ :=
  Matrix.of fun x y => if h : y.1 = x.1 then
    if x.2.1 = h ▸ y.2.1 then (reps x.1).matrix g x.2.2 (h ▸ y.2.2) else 0 else 0

end QAlgorithms.Papers.Independent.Extend50.P18
Source
Efficient multi port-based teleportation schemes, arXiv:2008.00984v4, https://arxiv.org/abs/2008.00984v4
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P18.ContractionIndex

For arbitrary natural numbers d,r,kd,r,kd,r,k, writing [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1}, the defined index type is the set of triples

(u,(v,w)),u:[r]→[d],v:[k]→[d],w:[k]→[d].(u,(v,w)),\qquad u:[r]\to[d],\quad v:[k]\to[d],\quad w:[k]\to[d].(u,(v,w)),u:[r]→[d],v:[k]→[d],w:[k]→[d].

A word of length zero is the unique empty function. Thus, when d=0d=0d=0, this index set is empty if either r>0r>0r>0 or k>0k>0k>0, and is a singleton if r=k=0r=k=0r=k=0.

QAlgorithms.Papers.Independent.Extend50.P18.FeasibleSuccess

For natural numbers d,r,kd,r,kd,r,k, let eie_iei​, for every injection i:{0,…,k−1}↪{0,…,r+k−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,r+k-1\}i:{0,…,k−1}↪{0,…,r+k−1}, be a bijection from {0,…,r+k−1}\{0,\ldots,r+k-1\}{0,…,r+k−1} to {0,…,k−1}⊔{0,…,r−1}\{0,\ldots,k-1\}\sqcup\{0,\ldots,r-1\}{0,…,k−1}⊔{0,…,r−1} satisfying ei(i(l))=inl⁡(l)e_i(i(l))=\operatorname{inl}(l)ei​(i(l))=inl(l), and let θi\theta_iθi​ be arbitrary complex matrices indexed by length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. This predicate means that every θi\theta_iθi​ is positive semidefinite and that

I−∑iEiI-\sum_i E_iI−i∑​Ei​

is positive semidefinite. Here EiE_iEi​ is indexed by pairs x=(u,v)x=(u,v)x=(u,v) of words of lengths r+kr+kr+k and kkk, respectively, and its entry at x=(u,v)x=(u,v)x=(u,v), y=(u′,v′)y=(u',v')y=(u′,v′) is (dk)−1θi(ui,ui′)(d^k)^{-1}\theta_i(u_i,u'_i)(dk)−1θi​(ui​,ui′​) if u(i(l))=v(l)u(i(l))=v(l)u(i(l))=v(l) and u′(i(l))=v′(l)u'(i(l))=v'(l)u′(i(l))=v′(l) for every l<kl<kl<k, and is zero otherwise, where ui(a)=u(ei−1(inr⁡(a)))u_i(a)=u(e_i^{-1}(\operatorname{inr}(a)))ui​(a)=u(ei−1​(inr(a))) and likewise for ui′u'_iui′​. The identity matrix acts on this pair-indexed space. Zero parameters are allowed, with empty conditions interpreted vacuously, 00=10^0=100=1, and zero inverse equal to zero.

QAlgorithms.Papers.Independent.Extend50.P18.FiniteUnitaryRepresentation

For a type GGG equipped with a group structure and a natural number mmm, this structure consists of a function assigning each g∈Gg\in Gg∈G a complex m×mm\times mm×m matrix ρ(g)\rho(g)ρ(g), together with the requirements

ρ(1)=Im,ρ(gh)=ρ(g)ρ(h)(g,h∈G),\rho(1)=I_m,\qquad \rho(gh)=\rho(g)\rho(h)\quad(g,h\in G),ρ(1)=Im​,ρ(gh)=ρ(g)ρ(h)(g,h∈G),

and

ρ(g)†ρ(g)=Imandρ(g)ρ(g)†=Im(g∈G),\rho(g)^\dagger\rho(g)=I_m \quad\text{and}\quad \rho(g)\rho(g)^\dagger=I_m \quad(g\in G),ρ(g)†ρ(g)=Im​andρ(g)ρ(g)†=Im​(g∈G),

where †\dagger† denotes conjugate transpose. The group GGG is not required to be finite, and m=0m=0m=0 is allowed, in which case the matrices have empty index sets.

QAlgorithms.Papers.Independent.Extend50.P18.MatrixIrreducible

For any type GGG equipped with a group structure, any natural number mmm, and a function ρ:G→Mm(C)\rho:G\to M_m(\mathbb C)ρ:G→Mm​(C) supplied with the identities ρ(1)=Im\rho(1)=I_mρ(1)=Im​, ρ(gh)=ρ(g)ρ(h)\rho(gh)=\rho(g)\rho(h)ρ(gh)=ρ(g)ρ(h), and ρ(g)†ρ(g)=ρ(g)ρ(g)†=Im\rho(g)^\dagger\rho(g)=\rho(g)\rho(g)^\dagger=I_mρ(g)†ρ(g)=ρ(g)ρ(g)†=Im​, this predicate means that m>0m>0m>0 and every complex m×mm\times mm×m matrix PPP satisfying

P†=P,P2=P,Pρ(g)=ρ(g)Pfor every g∈GP^\dagger=P,\qquad P^2=P,\qquad P\rho(g)=\rho(g)P\quad\text{for every }g\in GP†=P,P2=P,Pρ(g)=ρ(g)Pfor every g∈G

satisfies P=0P=0P=0 or P=ImP=I_mP=Im​. There is no finiteness assumption on GGG; when m=0m=0m=0, the predicate is false because of the explicit requirement m>0m>0m>0.

QAlgorithms.Papers.Independent.Extend50.P18.PortChoice

For any natural numbers N,kN,kN,k, this defines the set of injective functions i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}. Thus the selected positions are distinct and indexed in order by {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}. This set is empty when k>Nk>Nk>N and contains exactly one function when k=0k=0k=0, including when N=0N=0N=0.

QAlgorithms.Papers.Independent.Extend50.P18.PortFrames

For natural numbers N,k,rN,k,rN,k,r, this defines the type of families assigning to every injection i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1} a bijection

ei:{0,…,N−1}  ⟶  {0,…,k−1}⊔{0,…,r−1}e_i:\{0,\ldots,N-1\} \;\longrightarrow\; \{0,\ldots,k-1\}\sqcup\{0,\ldots,r-1\}ei​:{0,…,N−1}⟶{0,…,k−1}⊔{0,…,r−1}

such that ei(i(l))e_i(i(l))ei​(i(l)) is the element lll in the first summand for every l<kl<kl<k. Thus the inverse images of the second summand enumerate the remaining rrr positions. No equation N=k+rN=k+rN=k+r is assumed in the definition: if injections iii exist but N≠k+rN\ne k+rN=k+r, no such family exists; if k>Nk>Nk>N, there are no such injections and the family requirement is vacuous. Zero values of any of the three parameters are allowed.

QAlgorithms.Papers.Independent.Extend50.P18.ProtocolIndex

For any natural numbers d,N,kd,N,kd,N,k, this defines the index set ({0,…,d−1}{0,…,N−1})×({0,…,d−1}{0,…,k−1})(\{0,\ldots,d-1\}^{\{0,\ldots,N-1\}})\times(\{0,\ldots,d-1\}^{\{0,\ldots,k-1\}})({0,…,d−1}{0,…,N−1})×({0,…,d−1}{0,…,k−1}): an index consists of a word of length NNN and a word of length kkk, both with symbols in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. Zero values are allowed. There is exactly one word of length zero, including when d=0d=0d=0; when d=0d=0d=0 and either word has positive length, the index set is empty.

QAlgorithms.Papers.Independent.Extend50.P18.SubgroupBlockIndex

For a natural number aaa and functions dims,copies:{0,…,a−1}→N\mathrm{dims},\mathrm{copies}:\{0,\ldots,a-1\}\to\mathbb Ndims,copies:{0,…,a−1}→N, this abbreviates the type of triples (ℓ,c,j)(\ell,c,j)(ℓ,c,j) with

0≤ℓ<a,0≤c<copies(ℓ),0≤j<dims(ℓ).0\le\ell<a,\qquad 0\le c<\mathrm{copies}(\ell),\qquad 0\le j<\mathrm{dims}(\ell).0≤ℓ<a,0≤c<copies(ℓ),0≤j<dims(ℓ).

Thus each label ℓ\ellℓ contributes one index for every pair consisting of a copy index and a dimension index. No positivity assumptions are imposed: a=0a=0a=0 gives an empty type, and a label contributes no indices if either its copy count or its dimension is zero.

QAlgorithms.Papers.Independent.Extend50.P18.YoungPaths

For any natural numbers d,r,kd,r,kd,r,k, any Young diagram α\alphaα with rrr cells and first-column length at most ddd, and any Young diagram μ\muμ with r+kr+kr+k cells and first-column length at most ddd, this defines the type of sequences (λ0,…,λk)(\lambda_0,\ldots,\lambda_k)(λ0​,…,λk​) such that λj\lambda_jλj​ is a Young diagram with exactly r+jr+jr+j cells and first-column length at most ddd, λ0=α\lambda_0=\alphaλ0​=α, λk=μ\lambda_k=\muλk​=μ, and λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​ as sets of cells for every 0≤j<k0\leq j<k0≤j<k. The inclusions are non-strict conditions; the specified sizes differ by one at each step. The type may be empty. When k=0k=0k=0, there are no inclusion conditions, and a sequence exists exactly when α=μ\alpha=\muα=μ, in which case it consists of that single diagram.

QAlgorithms.Papers.Independent.Extend50.P18.eigenvalueExpression

For natural numbers d,r,kd,r,kd,r,k, a Young diagram α\alphaα with rrr cells and at most ddd rows, and a Young diagram μ\muμ with r+kr+kr+k cells and at most ddd rows, this defines the real number

Eα,μ=(r+k)!r! dr+k mμfαmαfμ.E_{\alpha,\mu} =\frac{(r+k)!}{r!\,d^{r+k}}\, \frac{m_\mu f_\alpha}{m_\alpha f_\mu}.Eα,μ​=r!dr+k(r+k)!​mα​fμ​mμ​fα​​.

Here the numbers fλ,mλf_\lambda,m_\lambdafλ​,mλ​ are defined as follows for each diagram λ\lambdaλ with nnn cells: use the chosen bijection between its cells and {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ be the permutations preserving each cell’s row and column, respectively, and define fλf_\lambdafλ​ as the complex dimension of the range of the operator on CSn\mathbb C^{S_n}CSn​ sending

eh⟼∑a∈Rλ∑b∈Cλsgn⁡(b)ehab.e_h\longmapsto \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)e_{hab}.eh​⟼a∈Rλ​∑​b∈Cλ​∑​sgn(b)ehab​.

Define mλm_\lambdamλ​ as the complex dimension of the range of ∑a∈Rλ,b∈Cλsgn⁡(b)Pab\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)P_{ab}∑a∈Rλ​,b∈Cλ​​sgn(b)Pab​ on C{0,…,d−1}{0,…,n−1}\mathbb C^{\{0,\ldots,d-1\}^{\{0,\ldots,n-1\}}}C{0,…,d−1}{0,…,n−1}, where Pπex=ex∘π−1P_\pi e_x=e_{x\circ\pi^{-1}}Pπ​ex​=ex∘π−1​. There are no positivity assumptions on d,r,kd,r,kd,r,k or these dimensions; zero parameters are allowed whenever the specified diagrams exist, division by zero is defined to be zero, and 00=10^0=100=1.

QAlgorithms.Papers.Independent.Extend50.P18.fidelityExpression

For arbitrary natural numbers d,r,kd,r,kd,r,k, let Pd(n)\mathcal P_d(n)Pd​(n) be the set of Young diagrams with nnn cells and at most ddd rows, and write [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1}. For λ∈Pd(n)\lambda\in\mathcal P_d(n)λ∈Pd​(n), use the cell numbering selected in the definitions to identify its cells with [n][n][n], and let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ be the permutations preserving, respectively, the row and column of every numbered cell. Define sλs_\lambdasλ​ to be the complex dimension of the range of the operator on CSn\mathbb C^{S_n}CSn​ sending each coordinate vector ehe_heh​ to ∑a∈Rλ∑b∈Cλsgn⁡(b)ehab\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)e_{hab}∑a∈Rλ​​∑b∈Cλ​​sgn(b)ehab​. Define mλm_\lambdamλ​ to be the complex dimension of the range of ∑a∈Rλ∑b∈Cλsgn⁡(b)Tab\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)T_{ab}∑a∈Rλ​​∑b∈Cλ​​sgn(b)Tab​ on C[n]→[d]\mathbb C^{[n]\to[d]}C[n]→[d], where Tπex=ex∘π−1T_\pi e_x=e_{x\circ\pi^{-1}}Tπ​ex​=ex∘π−1​. If pαμp_{\alpha\mu}pαμ​ counts the sequences of nested diagrams from α\alphaα to μ\muμ, with intermediate diagram sizes r,r+1,…,r+kr,r+1,\ldots,r+kr,r+1,…,r+k and at most ddd rows, then the defined real number is

fidelityExpression⁡(d,r,k)=∑α∈Pd(r)(∑μ∈Pd(r+k)pαμmμsμ)2d r+k+2k.\operatorname{fidelityExpression}(d,r,k)= \frac{\displaystyle\sum_{\alpha\in\mathcal P_d(r)} \left(\sum_{\mu\in\mathcal P_d(r+k)} p_{\alpha\mu}\sqrt{m_\mu s_\mu}\right)^2} {d^{\,r+k+2k}}.fidelityExpression(d,r,k)=dr+k+2kα∈Pd​(r)∑​​μ∈Pd​(r+k)∑​pαμ​mμ​sμ​​​2​.

No positivity assumptions are imposed on d,r,kd,r,kd,r,k. Empty sums are zero, zeroth powers are 111, and division by zero in this real-valued definition gives zero.

QAlgorithms.Papers.Independent.Extend50.P18.includePermutation

For every natural number ttt and every permutation τ\tauτ of {0,…,t−1}\{0,\ldots,t-1\}{0,…,t−1}, this definition gives the permutation τ^\widehat\tauτ of {0,…,t}\{0,\ldots,t\}{0,…,t} that applies τ\tauτ to the first ttt elements and fixes the last element:

τ^(a)={τ(a),a<t,t,a=t.\widehat\tau(a)= \begin{cases} \tau(a),&a<t,\\ t,&a=t. \end{cases}τ(a)={τ(a),t,​a<t,a=t.​

This includes t=0t=0t=0, when the resulting permutation is the identity on the singleton {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Extend50.P18.inverseRoot

For any natural numbers d,N,kd,N,kd,N,k, this defines a complex matrix HHH by applying continuous functional calculus with the real scalar function f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 to the matrix B=∑iSiB=\sum_i S_iB=∑i​Si​. Here iii ranges over injections from {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1} into {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, and, on pairs of words (u,v),(u′,v′)(u,v),(u',v')(u,v),(u′,v′) of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, SiS_iSi​ has entry (dN)−1(d^N)^{-1}(dN)−1 when u,u′u,u'u,u′ agree outside the range of iii and ui(l)=vlu_{i(l)}=v_lui(l)​=vl​, ui(l)′=vl′u'_{i(l)}=v'_lui(l)′​=vl′​ for every lll, and has entry zero otherwise. The scalar conventions are t=0\sqrt t=0t​=0 for t≤0t\leq0t≤0, 0−1=00^{-1}=00−1=0, and d0=1d^0=1d0=1; in particular, the functional calculus assigns zero to a zero eigenvalue rather than requiring invertibility. Zero dimensions and empty index sets are permitted, and when k>Nk>Nk>N, B=0B=0B=0 and H=0H=0H=0.

QAlgorithms.Papers.Independent.Extend50.P18.irrepDim

For any natural numbers d,nd,nd,n and any Young diagram λ\lambdaλ with exactly nnn cells and first-column length at most ddd, this defines a natural number as the complex dimension of the following subspace of CSn\mathbb C^{S_n}CSn​, equipped with its Euclidean inner product. Use the chosen bijection ccc from the cells of λ\lambdaλ to {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, let RλR_\lambdaRλ​ be the permutations preserving the row coordinate of every numbered cell, and let CλC_\lambdaCλ​ be those preserving its column coordinate. Define the matrix

Yg,h=∑a∈Rλ∑b∈Cλ{sgn⁡(b),g=hab,0,otherwise,g,h∈Sn.Y_{g,h}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \begin{cases} \operatorname{sgn}(b),&g=hab,\\ 0,&\text{otherwise}, \end{cases} \qquad g,h\in S_n.Yg,h​=a∈Rλ​∑​b∈Cλ​∑​{sgn(b),0,​g=hab,otherwise,​g,h∈Sn​.

The subspace whose dimension is taken is the range of multiplication by YYY. There is no positivity assumption on ddd or nnn: when n=0n=0n=0, the diagram is empty and this range has dimension 111; when d=0<nd=0<nd=0<n, no diagram argument satisfies the required conditions.

QAlgorithms.Papers.Independent.Extend50.P18.liftInput

For all natural numbers d,r,kd,r,kd,r,k, write [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1}. Given any complex matrix XXX indexed by pairs (u,v)(u,v)(u,v), with u:[r]→[d]u:[r]\to[d]u:[r]→[d] and v:[k]→[d]v:[k]\to[d]v:[k]→[d], its defined lift is the matrix on triples (u,(v,w))(u,(v,w))(u,(v,w)), where also w:[k]→[d]w:[k]\to[d]w:[k]→[d], whose entries are

LX((u,(v,w)),(u′,(v′,w′)))={X((u,v),(u′,v′)),w=w′,0,w≠w′.L_X\bigl((u,(v,w)),(u',(v',w'))\bigr)= \begin{cases} X((u,v),(u',v')),&w=w',\\ 0,&w\ne w'. \end{cases}LX​((u,(v,w)),(u′,(v′,w′)))={X((u,v),(u′,v′)),0,​w=w′,w=w′.​

No Hermitian, positivity, or normalization assumption is imposed on XXX. Empty words are allowed, so for k=0k=0k=0 this agrees with XXX under the identification with words of length rrr; empty index sets are also allowed.

QAlgorithms.Papers.Independent.Extend50.P18.liftSurvivor

For all natural numbers d,r,kd,r,kd,r,k, write [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1}. Given any complex matrix XXX indexed by words u:[r]→[d]u:[r]\to[d]u:[r]→[d], its defined lift to triples (u,(v,w))(u,(v,w))(u,(v,w)), with v,w:[k]→[d]v,w:[k]\to[d]v,w:[k]→[d], has entries

KX((u,(v,w)),(u′,(v′,w′)))={X(u,u′),v=v′ and w=w′,0,otherwise.K_X\bigl((u,(v,w)),(u',(v',w'))\bigr)= \begin{cases} X(u,u'),&v=v'\text{ and }w=w',\\ 0,&\text{otherwise}. \end{cases}KX​((u,(v,w)),(u′,(v′,w′)))={X(u,u′),0,​v=v′ and w=w′,otherwise.​

There are no additional assumptions on XXX. For k=0k=0k=0, both extra words are empty and the lift agrees with XXX under the natural identification; the definition also permits empty index sets.

QAlgorithms.Papers.Independent.Extend50.P18.mixedTensorAction

For all natural numbers d,N,kd,N,kd,N,k and every unitary complex d×dd\times dd×d matrix UUU, meaning U†U=UU†=IU^\dagger U=UU^\dagger=IU†U=UU†=I, this definition gives the complex matrix indexed by pairs of words x=(xA,xB)x=(x_A,x_B)x=(xA​,xB​) of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, with entries

MU(x,y)=(∏a=0N−1UxA(a),yA(a))(∏l=0k−1UxB(l),yB(l)‾).M_U(x,y)= \left(\prod_{a=0}^{N-1}U_{x_A(a),y_A(a)}\right) \left(\prod_{l=0}^{k-1}\overline{U_{x_B(l),y_B(l)}}\right).MU​(x,y)=(a=0∏N−1​UxA​(a),yA​(a)​)(l=0∏k−1​UxB​(l),yB​(l)​​).

Zero values of all three parameters are allowed, and each empty product equals 111. In particular, when N=k=0N=k=0N=k=0 the resulting matrix is the singleton matrix with entry 111; if d=0d=0d=0 and either word length is positive, its index set is empty.

QAlgorithms.Papers.Independent.Extend50.P18.mpbtAverageSuccess

For natural numbers d,r,kd,r,kd,r,k, a family of bijections ei:{0,…,r+k−1}→{0,…,k−1}⊔{0,…,r−1}e_i:\{0,\ldots,r+k-1\}\to\{0,\ldots,k-1\}\sqcup\{0,\ldots,r-1\}ei​:{0,…,r+k−1}→{0,…,k−1}⊔{0,…,r−1}, one for every injection i:{0,…,k−1}↪{0,…,r+k−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,r+k-1\}i:{0,…,k−1}↪{0,…,r+k−1}, satisfying ei(i(l))=inl⁡(l)e_i(i(l))=\operatorname{inl}(l)ei​(i(l))=inl(l), and arbitrary complex matrices θi\theta_iθi​ indexed by length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines

A(e,θ)=∑iRe⁡tr⁡(Ei)dr+2k.A(e,\theta)= \frac{\sum_i\operatorname{Re}\operatorname{tr}(E_i)} {d^{r+2k}}.A(e,θ)=dr+2k∑i​Retr(Ei​)​.

The matrix EiE_iEi​ has indices x=(u,v)x=(u,v)x=(u,v), with uuu a length-(r+k)(r+k)(r+k) word and vvv a length-kkk word over that alphabet. Its entry at x=(u,v)x=(u,v)x=(u,v), y=(u′,v′)y=(u',v')y=(u′,v′) is (dk)−1θi(ui,ui′)(d^k)^{-1}\theta_i(u_i,u'_i)(dk)−1θi​(ui​,ui′​) if u(i(l))=v(l)u(i(l))=v(l)u(i(l))=v(l) and u′(i(l))=v′(l)u'(i(l))=v'(l)u′(i(l))=v′(l) for all l<kl<kl<k, and zero otherwise, where ui(a)=u(ei−1(inr⁡(a)))u_i(a)=u(e_i^{-1}(\operatorname{inr}(a)))ui​(a)=u(ei−1​(inr(a))). No feasibility or positivity assumption is imposed. Zero parameters are included; empty sums are zero, 00=10^0=100=1, and division by zero is zero.

QAlgorithms.Papers.Independent.Extend50.P18.mpbtOperator

For any natural numbers d,N,kd,N,kd,N,k, this defines the complex matrix B=∑iSiB=\sum_i S_iB=∑i​Si​, where the sum runs over all injections i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}. Rows and columns are pairs (u,v)(u,v)(u,v) of length-NNN and length-kkk words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and (Si)(u,v),(u′,v′)(S_i)_{(u,v),(u',v')}(Si​)(u,v),(u′,v′)​ equals (dN)−1(d^N)^{-1}(dN)−1 precisely when uuu and u′u'u′ agree outside the range of iii, ui(l)=vlu_{i(l)}=v_lui(l)​=vl​ for every lll, and ui(l)′=vl′u'_{i(l)}=v'_lui(l)′​=vl′​ for every lll; otherwise it is zero. All scalars here are complex, with 0−1=00^{-1}=00−1=0 and d0=1d^0=1d0=1. If k>Nk>Nk>N, the sum is empty and B=0B=0B=0. If k=0k=0k=0, there is one summand and B=(dN)−1IB=(d^N)^{-1}IB=(dN)−1I. The matrix index set is empty when d=0d=0d=0 and N+k>0N+k>0N+k>0.

QAlgorithms.Papers.Independent.Extend50.P18.mpbtSchurMultiplicity

For any natural numbers d,nd,nd,n and any Young diagram λ\lambdaλ with exactly nnn cells and first-column length at most ddd, this defines a natural number as the complex dimension of a subspace of the Euclidean space whose coordinates are 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}. Using the chosen bijection from the cells of λ\lambdaλ to {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be the permutations preserving, respectively, every cell’s row coordinate and every cell’s column coordinate. The subspace is the range of the matrix

Ty,x=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{ y=x∘(ab)−1 }.T_{y,x}=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\, \mathbf 1_{\{\,y=x\circ(ab)^{-1}\,\}}.Ty,x​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{y=x∘(ab)−1}​.

Zero values of d,nd,nd,n are allowed: when n=0n=0n=0, there is one empty word and this range has dimension 111, including when d=0d=0d=0; when d=0<nd=0<nd=0<n, no diagram argument satisfies the required conditions.

QAlgorithms.Papers.Independent.Extend50.P18.mpbtSignal

For any natural numbers d,N,kd,N,kd,N,k and any injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, this defines a complex matrix SiS_iSi​ indexed by pairs x=(u,v)x=(u,v)x=(u,v) and y=(u′,v′)y=(u',v')y=(u′,v′), where u,u′u,u'u,u′ are length-NNN words and v,v′v,v'v,v′ are length-kkk words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. Its entry is

(Si)(u,v),(u′,v′)={(dN)−1,ua=ua′ for every a∉range⁡(i), ui(l)=vl for every l, ui(l)′=vl′ for every l,0,otherwise.(S_i)_{(u,v),(u',v')}= \begin{cases} (d^N)^{-1},& u_a=u'_a\text{ for every }a\notin\operatorname{range}(i),\ u_{i(l)}=v_l\text{ for every }l,\ u'_{i(l)}=v'_l\text{ for every }l,\\ 0,&\text{otherwise}. \end{cases}(Si​)(u,v),(u′,v′)​={(dN)−1,0,​ua​=ua′​ for every a∈/range(i), ui(l)​=vl​ for every l, ui(l)′​=vl′​ for every l,otherwise.​

The coefficient is computed in C\mathbb CC, with 0−1=00^{-1}=00−1=0 and d0=1d^0=1d0=1, including 00=10^0=100=1. When k=0k=0k=0, the conditions indexed by lll are vacuous and the matrix is (dN)−1I(d^N)^{-1}I(dN)−1I. When d=0d=0d=0, its index set is empty unless N=k=0N=k=0N=k=0, in which case it is the one-by-one matrix with entry 111. An injection argument cannot exist when k>Nk>Nk>N.

QAlgorithms.Papers.Independent.Extend50.P18.optimalTheta

For all natural numbers d,r,kd,r,kd,r,k, this defines the complex matrix on length-rrr words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}

Θ∗=∑α: ∣α∣=rα has at most d rowsdkdr+k qα Πα,Πα=fαr!∑π∈Srχα(π−1)Pπ.\Theta^*=\sum_{\substack{\alpha:\ |\alpha|=r\\ \alpha\text{ has at most }d\text{ rows}}} \frac{d^k}{d^{r+k}}\,q_\alpha\,\Pi_\alpha, \qquad \Pi_\alpha=\frac{f_\alpha}{r!} \sum_{\pi\in S_r}\chi_\alpha(\pi^{-1})P_\pi.Θ∗=α: ∣α∣=rα has at most d rows​∑​dr+kdk​qα​Πα​,Πα​=r!fα​​π∈Sr​∑​χα​(π−1)Pπ​.

For any nnn-cell diagram λ\lambdaλ, use its chosen cell numbering to define the row-preserving and column-preserving groups Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​. Let YλY_\lambdaYλ​ on CSn\mathbb C^{S_n}CSn​ send ehe_heh​ to ∑a∈Rλ,b∈Cλsgn⁡(b)ehab\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)e_{hab}∑a∈Rλ​,b∈Cλ​​sgn(b)ehab​, let QλQ_\lambdaQλ​ be the orthogonal projection onto its range, and put fλ=dim⁡Crange⁡(Yλ)f_\lambda=\dim_{\mathbb C}\operatorname{range}(Y_\lambda)fλ​=dimC​range(Yλ​). Let Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​ and χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​). On the space with basis the length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, put Pπex=ex∘π−1P_\pi e_x=e_{x\circ\pi^{-1}}Pπ​ex​=ex∘π−1​ and mλ=dim⁡Crange⁡(∑a,bsgn⁡(b)Pab)m_\lambda=\dim_{\mathbb C}\operatorname{range}(\sum_{a,b}\operatorname{sgn}(b)P_{ab})mλ​=dimC​range(∑a,b​sgn(b)Pab​). Finally,

qα=inf⁡μ: ∣μ∣=r+k, μ has at most d rowspα,μ>0((r+k)!r! dr+kmμfαmαfμ)−1,q_\alpha= \inf_{\substack{\mu:\ |\mu|=r+k,\ \mu\text{ has at most }d\text{ rows}\\ p_{\alpha,\mu}>0}} \left(\frac{(r+k)!}{r!\,d^{r+k}} \frac{m_\mu f_\alpha}{m_\alpha f_\mu}\right)^{-1},qα​=μ: ∣μ∣=r+k, μ has at most d rowspα,μ​>0​inf​(r!dr+k(r+k)!​mα​fμ​mμ​fα​​)−1,

where pα,μp_{\alpha,\mu}pα,μ​ counts nested sequences of diagrams from α\alphaα to μ\muμ, with r+jr+jr+j cells at step jjj and at most ddd rows throughout. Real coefficients in these formulas are embedded in C\mathbb CC when used as matrix scalars. Zero parameters are allowed; empty sums and empty real infima are zero, division and inversion at zero give zero, and 00=10^0=100=1.

QAlgorithms.Papers.Independent.Extend50.P18.pairedContraction

For arbitrary natural numbers d,r,kd,r,kd,r,k, write [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1} and index rows and columns by triples x=(u,(v,w))x=(u,(v,w))x=(u,(v,w)), where u:[r]→[d]u:[r]\to[d]u:[r]→[d] and v,w:[k]→[d]v,w:[k]\to[d]v,w:[k]→[d]. The defined complex matrix CCC has entries

C((u,(v,w)),(u′,(v′,w′)))={1,u=u′, v(l)=w(k−1−l), v′(l)=w′(k−1−l) for every l∈[k],0,otherwise.C\bigl((u,(v,w)),(u',(v',w'))\bigr)= \begin{cases} 1,&u=u',\ v(l)=w(k-1-l),\ v'(l)=w'(k-1-l)\text{ for every }l\in[k],\\ 0,&\text{otherwise}. \end{cases}C((u,(v,w)),(u′,(v′,w′)))={1,0,​u=u′, v(l)=w(k−1−l), v′(l)=w′(k−1−l) for every l∈[k],otherwise.​

For k=0k=0k=0, the reversal conditions are vacuous and this is the identity matrix on the words of length rrr. When the index set is empty, the definition gives the unique matrix with that empty index set.

QAlgorithms.Papers.Independent.Extend50.P18.pathCount

For all natural numbers d,r,kd,r,kd,r,k, a Young diagram α\alphaα with rrr cells and at most ddd rows, and a Young diagram μ\muμ with r+kr+kr+k cells and at most ddd rows, pathCount⁡(α,μ)\operatorname{pathCount}(\alpha,\mu)pathCount(α,μ) is the natural-number cardinality of the finite set of sequences (λ0,…,λk)(\lambda_0,\ldots,\lambda_k)(λ0​,…,λk​) satisfying ∣λj∣=r+j|\lambda_j|=r+j∣λj​∣=r+j, having at most ddd rows at every step, starting at α\alphaα, ending at μ\muμ, and satisfying λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​ for 0≤j<k0\le j<k0≤j<k. Its value is zero when no such sequence exists; for k=0k=0k=0, it is 111 if α=μ\alpha=\muα=μ and 000 otherwise.

QAlgorithms.Papers.Independent.Extend50.P18.permuteChoice

For all natural numbers N,kN,kN,k, every permutation τ\tauτ of {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, and every injection i:{0,…,k−1}↪{0,…,N−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,N-1\}i:{0,…,k−1}↪{0,…,N−1}, this definition gives the injection

l⟼τ(i(l)).l\longmapsto\tau(i(l)).l⟼τ(i(l)).

It includes k=0k=0k=0, when the injection has empty domain. If k>Nk>Nk>N, there is no injection iii to which the definition can be applied.

QAlgorithms.Papers.Independent.Extend50.P18.physicalBlock

For all natural numbers d,nd,nd,n, write [m]={0,…,m−1}[m]=\{0,\ldots,m-1\}[m]={0,…,m−1} and let Pd(n)\mathcal P_d(n)Pd​(n) be the Young diagrams with nnn cells and at most ddd rows. For each ν∈Pd(n)\nu\in\mathcal P_d(n)ν∈Pd​(n), use its selected cell numbering to define row-preserving and column-preserving permutation sets Rν,Cν⊆SnR_\nu,C_\nu\subseteq S_nRν​,Cν​⊆Sn​. Let Vν⊆CSnV_\nu\subseteq\mathbb C^{S_n}Vν​⊆CSn​ be the range of eh↦∑a∈Rν,b∈Cνsgn⁡(b)ehabe_h\mapsto\sum_{a\in R_\nu,b\in C_\nu}\operatorname{sgn}(b)e_{hab}eh​↦∑a∈Rν​,b∈Cν​​sgn(b)ehab​, and let Wν⊆C[n]→[d]W_\nu\subseteq\mathbb C^{[n]\to[d]}Wν​⊆C[n]→[d] be the range of ∑a∈Rν,b∈Cνsgn⁡(b)Tab\sum_{a\in R_\nu,b\in C_\nu}\operatorname{sgn}(b)T_{ab}∑a∈Rν​,b∈Cν​​sgn(b)Tab​, where Tπex=ex∘π−1T_\pi e_x=e_{x\circ\pi^{-1}}Tπ​ex​=ex∘π−1​. Write sν=dim⁡CVνs_\nu=\dim_{\mathbb C}V_\nusν​=dimC​Vν​, mν=dim⁡CWνm_\nu=\dim_{\mathbb C}W_\numν​=dimC​Wν​, and let bν,ib_{\nu,i}bν,i​ and cν,ac_{\nu,a}cν,a​ be the orthonormal bases selected by the standard orthonormal basis construction for these spaces. Define a matrix YYY, with rows indexed by words x:[n]→[d]x:[n]\to[d]x:[n]→[d] and columns indexed by triples (ν,i,a)(\nu,i,a)(ν,i,a), by

Yx,(ν,i,a)=∑g∈Snbν,i(g) (Tgcν,a)(x),D=f(Y†Y)Y†,f(t)=(t)−1,Y_{x,(\nu,i,a)} =\sum_{g\in S_n}b_{\nu,i}(g)\,(T_g c_{\nu,a})(x), \qquad D=f(Y^\dagger Y)Y^\dagger,\quad f(t)=(\sqrt t)^{-1},Yx,(ν,i,a)​=g∈Sn​∑​bν,i​(g)(Tg​cν,a​)(x),D=f(Y†Y)Y†,f(t)=(t​)−1,

where f(Y†Y)f(Y^\dagger Y)f(Y†Y) uses continuous functional calculus and f(0)=0f(0)=0f(0)=0. For every λ∈Pd(n)\lambda\in\mathcal P_d(n)λ∈Pd​(n) and every complex sλ×sλs_\lambda\times s_\lambdasλ​×sλ​ matrix XXX, the defined matrix on words of length nnn has entries

Bλ(X)x,y=∑a=0mλ−1∑i=0sλ−1∑j=0sλ−1D(λ,i,a),x‾ Xij D(λ,j,a),y.B_\lambda(X)_{x,y} = \sum_{a=0}^{m_\lambda-1} \sum_{i=0}^{s_\lambda-1} \sum_{j=0}^{s_\lambda-1} \overline{D_{(\lambda,i,a),x}}\, X_{ij}\, D_{(\lambda,j,a),y}.Bλ​(X)x,y​=a=0∑mλ​−1​i=0∑sλ​−1​j=0∑sλ​−1​D(λ,i,a),x​​Xij​D(λ,j,a),y​.

There are no further assumptions on XXX. The definition includes n=0n=0n=0, with its single empty word, and any sum over a zero-dimensional space is zero.

QAlgorithms.Papers.Independent.Extend50.P18.portPermutation

For all natural numbers d,N,kd,N,kd,N,k and every permutation τ\tauτ of {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, this definition gives a complex matrix indexed by pairs x=(xA,xB)x=(x_A,x_B)x=(xA​,xB​), where xA:{0,…,N−1}→{0,…,d−1}x_A:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}xA​:{0,…,N−1}→{0,…,d−1} and xB:{0,…,k−1}→{0,…,d−1}x_B:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}xB​:{0,…,k−1}→{0,…,d−1}, with entries

Pτ(x,y)={1,xA=yA∘τ−1 and xB=yB,0,otherwise.P_\tau(x,y)= \begin{cases} 1,&x_A=y_A\circ\tau^{-1}\ \text{and }x_B=y_B,\\ 0,&\text{otherwise}. \end{cases}Pτ​(x,y)={1,0,​xA​=yA​∘τ−1 and xB​=yB​,otherwise.​

All zero parameter values are allowed. A word of length zero is unique; if d=0d=0d=0 and either word length is positive, the matrix’s index set is empty.

QAlgorithms.Papers.Independent.Extend50.P18.protocolFidelity

For any natural numbers d,N,kd,N,kd,N,k and any assignment of a complex matrix EiE_iEi​ to each injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, with all matrices indexed by pairs of words of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines the real number

∑iRe⁡tr⁡(EiSi)d2k.\frac{\displaystyle\sum_i\operatorname{Re}\operatorname{tr}(E_iS_i)}{d^{2k}}.d2ki∑​Retr(Ei​Si​)​.

Here (Si)(u,v),(u′,v′)(S_i)_{(u,v),(u',v')}(Si​)(u,v),(u′,v′)​ equals the complex scalar (dN)−1(d^N)^{-1}(dN)−1 exactly when u,u′u,u'u,u′ agree outside range⁡(i)\operatorname{range}(i)range(i) and ui(l)=vlu_{i(l)}=v_lui(l)​=vl​, ui(l)′=vl′u'_{i(l)}=v'_lui(l)′​=vl′​ for every lll, and is zero otherwise. No positivity, normalization, or sum condition is imposed on the matrices EiE_iEi​. Empty sums are zero, inverses of zero are zero, and zeroth powers are one. Consequently, the value is zero when k>Nk>Nk>N, and also when d=0d=0d=0 and k>0k>0k>0, since division by zero in R\mathbb RR gives zero.

QAlgorithms.Papers.Independent.Extend50.P18.reciprocalMinimum

For natural numbers d,r,kd,r,kd,r,k and a Young diagram α\alphaα with rrr cells and at most ddd rows, this defines

qα=inf⁡{((r+k)!r! dr+kmμfαmαfμ)−1: μ has r+k cells and at most d rows, pα,μ>0}.q_\alpha =\inf\left\{ \left(\frac{(r+k)!}{r!\,d^{r+k}} \frac{m_\mu f_\alpha}{m_\alpha f_\mu}\right)^{-1} :\ \mu\text{ has }r+k\text{ cells and at most }d\text{ rows}, \ p_{\alpha,\mu}>0 \right\}.qα​=inf{(r!dr+k(r+k)!​mα​fμ​mμ​fα​​)−1: μ has r+k cells and at most d rows, pα,μ​>0}.

Here pα,μp_{\alpha,\mu}pα,μ​ is the number of sequences of Young diagrams (λ0,…,λk)(\lambda_0,\ldots,\lambda_k)(λ0​,…,λk​), each with at most ddd rows, such that λj\lambda_jλj​ has r+jr+jr+j cells, λ0=α\lambda_0=\alphaλ0​=α, λk=μ\lambda_k=\muλk​=μ, and λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​ for every j<kj<kj<k. To define fλ,mλf_\lambda,m_\lambdafλ​,mλ​ for an nnn-cell diagram, number its cells by the chosen bijection with {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve rows and columns, respectively. Then fλf_\lambdafλ​ is the complex dimension of the range of eh↦∑a∈Rλ,b∈Cλsgn⁡(b)ehabe_h\mapsto\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)e_{hab}eh​↦∑a∈Rλ​,b∈Cλ​​sgn(b)ehab​ on CSn\mathbb C^{S_n}CSn​, and mλm_\lambdamλ​ is the complex dimension of the range of ∑a,bsgn⁡(b)Pab\sum_{a,b}\operatorname{sgn}(b)P_{ab}∑a,b​sgn(b)Pab​ on the space with basis 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}, where Pπex=ex∘π−1P_\pi e_x=e_{x\circ\pi^{-1}}Pπ​ex​=ex∘π−1​. The infimum is the real infimum, with value zero for the empty set; inverses and divisions by zero are zero, and 00=10^0=100=1. In particular, the definition does not require any eligible μ\muμ to exist.

QAlgorithms.Papers.Independent.Extend50.P18.restrictionProjector

For natural numbers d,td,td,t, a Young diagram μ\muμ with t+1t+1t+1 cells and at most ddd rows, and a Young diagram β\betaβ with ttt cells and at most ddd rows, this definition gives the complex sμ×sμs_\mu\times s_\musμ​×sμ​ matrix

Qμ,β=sβt!∑τ∈Stχβ(τ−1)Aμ(τ^).Q_{\mu,\beta} =\frac{s_\beta}{t!}\sum_{\tau\in S_t}\chi_\beta(\tau^{-1})A_\mu(\widehat\tau).Qμ,β​=t!sβ​​τ∈St​∑​χβ​(τ−1)Aμ​(τ).

Here τ^\widehat\tauτ acts as τ\tauτ on {0,…,t−1}\{0,\ldots,t-1\}{0,…,t−1} and fixes ttt. To define the other quantities, for either diagram λ\lambdaλ of size qqq, use its fixed cell numbering to let Rλ,Cλ⊆SqR_\lambda,C_\lambda\subseteq S_qRλ​,Cλ​⊆Sq​ be the permutations preserving each numbered cell’s row and column, respectively. Let Jλ(g,h)=∑a∈Rλ∑b∈Cλsgn⁡(b)1g=habJ_\lambda(g,h)=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{g=hab}Jλ​(g,h)=∑a∈Rλ​​∑b∈Cλ​​sgn(b)1g=hab​, let Sλ=range⁡Jλ⊆CSqS_\lambda=\operatorname{range}J_\lambda\subseteq\mathbb C^{S_q}Sλ​=rangeJλ​⊆CSq​, and put sλ=dim⁡CSλs_\lambda=\dim_{\mathbb C}S_\lambdasλ​=dimC​Sλ​. Write PλP_\lambdaPλ​ for orthogonal projection onto SλS_\lambdaSλ​, and let Lπ(g,h)=1g=πhL_\pi(g,h)=\mathbf1_{g=\pi h}Lπ​(g,h)=1g=πh​. Then χλ(π)=tr⁡(LπPλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi P_\lambda)χλ​(π)=tr(Lπ​Pλ​), and, in the chosen standard orthonormal basis eλ,ie_{\lambda,i}eλ,i​ of SλS_\lambdaSλ​, Aλ(π)ij=⟨eλ,i,PλLπeλ,j⟩A_\lambda(\pi)_{ij}=\langle e_{\lambda,i},P_\lambda L_\pi e_{\lambda,j}\rangleAλ​(π)ij​=⟨eλ,i​,Pλ​Lπ​eλ,j​⟩. There is no containment assumption relating β\betaβ and μ\muμ. The definition includes t=0t=0t=0, with 0!=10!=10!=1; for d=0d=0d=0, no diagram μ\muμ of the required positive size exists.

QAlgorithms.Papers.Independent.Extend50.P18.reverseWord

For all natural numbers d,kd,kd,k and every word w:{0,…,k−1}→{0,…,d−1}w:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}w:{0,…,k−1}→{0,…,d−1}, the defined reversed word is

reverseWord⁡(w)(l)=w(k−1−l)(0≤l<k).\operatorname{reverseWord}(w)(l)=w(k-1-l) \qquad(0\le l<k).reverseWord(w)(l)=w(k−1−l)(0≤l<k).

For k=0k=0k=0, this is the unique empty word. If d=0d=0d=0 and k>0k>0k>0, there is no word www to which the definition can be applied.

QAlgorithms.Papers.Independent.Extend50.P18.spechtActionMatrix

For all natural numbers d,nd,nd,n, every Young diagram λ\lambdaλ with nnn cells and at most ddd rows, and every permutation π∈Sn\pi\in S_nπ∈Sn​, use the cell numbering selected in the definitions to let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving each numbered cell’s row and column, respectively. In the Euclidean space CSn\mathbb C^{S_n}CSn​, let VλV_\lambdaVλ​ be the range of the operator

eh⟼∑a∈Rλ∑b∈Cλsgn⁡(b)ehab,e_h\longmapsto \sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)e_{hab},eh​⟼a∈Rλ​∑​b∈Cλ​∑​sgn(b)ehab​,

let sλ=dim⁡CVλs_\lambda=\dim_{\mathbb C}V_\lambdasλ​=dimC​Vλ​, and let (bi)i=0sλ−1(b_i)_{i=0}^{s_\lambda-1}(bi​)i=0sλ​−1​ be the orthonormal basis selected by the standard orthonormal basis construction. If PλP_\lambdaPλ​ is orthogonal projection onto VλV_\lambdaVλ​ and Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​, then the defined sλ×sλs_\lambda\times s_\lambdasλ​×sλ​ complex matrix has entries

Aλ(π)ij=⟨bi,PλLπbj⟩,A_\lambda(\pi)_{ij} =\langle b_i,P_\lambda L_\pi b_j\rangle,Aλ​(π)ij​=⟨bi​,Pλ​Lπ​bj​⟩,

with the inner product conjugate-linear in its first argument. This includes n=0n=0n=0; if the resulting dimension is zero, the matrix has an empty index set.

QAlgorithms.Papers.Independent.Extend50.P18.srmEffect

For any natural numbers d,N,kd,N,kd,N,k and any injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, this defines

Ei=HSiH+∣I∣−1(I−∑j∈IHSjH),E_i=HS_iH+|\mathcal I|^{-1}\left(I-\sum_{j\in\mathcal I}HS_jH\right),Ei​=HSi​H+∣I∣−1​I−j∈I∑​HSj​H​,

where I\mathcal II is the set of all such injections and all matrices are indexed by pairs of words of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The entry (Sj)(u,v),(u′,v′)(S_j)_{(u,v),(u',v')}(Sj​)(u,v),(u′,v′)​ is (dN)−1(d^N)^{-1}(dN)−1 when u,u′u,u'u,u′ agree outside range⁡(j)\operatorname{range}(j)range(j) and uj(l)=vlu_{j(l)}=v_luj(l)​=vl​, uj(l)′=vl′u'_{j(l)}=v'_luj(l)′​=vl′​ for every lll, and is zero otherwise. The matrix HHH is the continuous functional calculus of ∑jSj\sum_jS_j∑j​Sj​ for t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1. Cardinalities and coefficients in the matrix formula are complex scalars; inverses of zero and square roots of nonpositive reals are zero, and zeroth powers are one. The definition allows d=0d=0d=0 and empty matrix index sets, but its injection argument cannot exist when k>Nk>Nk>N.

QAlgorithms.Papers.Independent.Extend50.P18.srmRaw

For any natural numbers d,N,kd,N,kd,N,k and any injection i:{0,…,k−1}→{0,…,N−1}i:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}i:{0,…,k−1}→{0,…,N−1}, this defines the complex matrix Ri=HSiHR_i=HS_iHRi​=HSi​H. Its rows and columns are pairs (u,v)(u,v)(u,v) of words of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. For every injection jjj, the entry (Sj)(u,v),(u′,v′)(S_j)_{(u,v),(u',v')}(Sj​)(u,v),(u′,v′)​ is (dN)−1(d^N)^{-1}(dN)−1 if u,u′u,u'u,u′ agree outside range⁡(j)\operatorname{range}(j)range(j) and uj(l)=vlu_{j(l)}=v_luj(l)​=vl​, uj(l)′=vl′u'_{j(l)}=v'_luj(l)′​=vl′​ for every lll, and is zero otherwise; HHH is the continuous functional calculus of ∑jSj\sum_jS_j∑j​Sj​ for t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1. Real square roots are zero for nonpositive inputs, inverses of zero are zero, and zeroth powers are one. Thus singular matrices are included in the definition. The index set is empty if d=0d=0d=0 and N+k>0N+k>0N+k>0; when N=k=0N=k=0N=k=0, RiR_iRi​ is the one-by-one identity matrix. There is no injection argument when k>Nk>Nk>N.

QAlgorithms.Papers.Independent.Extend50.P18.srmRemainder

For any natural numbers d,N,kd,N,kd,N,k, let I\mathcal II be the finite set of injections from {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1} to {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}. This defines

C=∣I∣−1(I−∑i∈IHSiH)C=|\mathcal I|^{-1}\left(I-\sum_{i\in\mathcal I}HS_iH\right)C=∣I∣−1(I−i∈I∑​HSi​H)

as a complex matrix on pairs of words of lengths N,kN,kN,k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, with the cardinality cast into C\mathbb CC. Here (Si)(u,v),(u′,v′)(S_i)_{(u,v),(u',v')}(Si​)(u,v),(u′,v′)​ equals (dN)−1(d^N)^{-1}(dN)−1 when u,u′u,u'u,u′ agree outside range⁡(i)\operatorname{range}(i)range(i) and ui(l)=vlu_{i(l)}=v_lui(l)​=vl​, ui(l)′=vl′u'_{i(l)}=v'_lui(l)′​=vl′​ for every lll, and equals zero otherwise; HHH is obtained from ∑iSi\sum_iS_i∑i​Si​ by continuous functional calculus for t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1. Square roots of nonpositive reals and inverses of zero are zero, and zeroth powers are one. In particular, if k>Nk>Nk>N, then I\mathcal II is empty, its cardinality has inverse zero, and C=0C=0C=0. Empty matrix index sets, including those arising from d=0d=0d=0 and N+k>0N+k>0N+k>0, are allowed.

QAlgorithms.Papers.Independent.Extend50.P18.subgroupBlockMatrix

For any group GGG, any natural number aaa, any functions d,c:{0,…,a−1}→Nd,c:\{0,\ldots,a-1\}\to\mathbb Nd,c:{0,…,a−1}→N, any family of representations Rℓ:G→Mdℓ(C)R_\ell:G\to M_{d_\ell}(\mathbb C)Rℓ​:G→Mdℓ​​(C) satisfying Rℓ(1)=IR_\ell(1)=IRℓ​(1)=I, Rℓ(gh)=Rℓ(g)Rℓ(h)R_\ell(gh)=R_\ell(g)R_\ell(h)Rℓ​(gh)=Rℓ​(g)Rℓ​(h), and Rℓ(g)∗Rℓ(g)=Rℓ(g)Rℓ(g)∗=IR_\ell(g)^*R_\ell(g)=R_\ell(g)R_\ell(g)^*=IRℓ​(g)∗Rℓ​(g)=Rℓ​(g)Rℓ​(g)∗=I for every g,h∈Gg,h\in Gg,h∈G, and any g∈Gg\in Gg∈G, this defines a complex matrix B(g)B(g)B(g) indexed by triples (ℓ,s,i)(\ell,s,i)(ℓ,s,i) with 0≤ℓ<a0\leq\ell<a0≤ℓ<a, 0≤s<cℓ0\leq s<c_\ell0≤s<cℓ​, and 0≤i<dℓ0\leq i<d_\ell0≤i<dℓ​, whose entries are

B(g)(ℓ,s,i),(ℓ′,s′,j)={(Rℓ(g))ij,ℓ=ℓ′ and s=s′,0,otherwise.B(g)_{(\ell,s,i),(\ell',s',j)} = \begin{cases} (R_\ell(g))_{ij},&\ell=\ell'\text{ and }s=s',\\ 0,&\text{otherwise}. \end{cases}B(g)(ℓ,s,i),(ℓ′,s′,j)​={(Rℓ​(g))ij​,0,​ℓ=ℓ′ and s=s′,otherwise.​

Here ∗*∗ denotes conjugate transpose; indices belonging to equal labels are identified when comparing their copy indices or evaluating the entry. Thus each label contributes cℓc_\ellcℓ​ copies of its representation matrix. The definition permits a=0a=0a=0, zero dimensions, and zero copy counts; these yield no indices for the affected labels, and the entire indexing set may be empty. The group GGG need not be finite.

QAlgorithms.Papers.Independent.Extend50.P18.successEffect

For natural numbers d,r,kd,r,kd,r,k, suppose that every injection i:{0,…,k−1}↪{0,…,r+k−1}i:\{0,\ldots,k-1\}\hookrightarrow\{0,\ldots,r+k-1\}i:{0,…,k−1}↪{0,…,r+k−1} has an assigned bijection ei:{0,…,r+k−1}→{0,…,k−1}⊔{0,…,r−1}e_i:\{0,\ldots,r+k-1\}\to\{0,\ldots,k-1\}\sqcup\{0,\ldots,r-1\}ei​:{0,…,r+k−1}→{0,…,k−1}⊔{0,…,r−1} satisfying ei(i(l))=inl⁡(l)e_i(i(l))=\operatorname{inl}(l)ei​(i(l))=inl(l). Given any family of complex matrices θi\theta_iθi​ indexed in both coordinates by words {0,…,r−1}→{0,…,d−1}\{0,\ldots,r-1\}\to\{0,\ldots,d-1\}{0,…,r−1}→{0,…,d−1}, and one such injection iii, this defines a complex matrix EiE_iEi​. Its indices are pairs x=(u,v)x=(u,v)x=(u,v), where u:{0,…,r+k−1}→{0,…,d−1}u:\{0,\ldots,r+k-1\}\to\{0,\ldots,d-1\}u:{0,…,r+k−1}→{0,…,d−1} and v:{0,…,k−1}→{0,…,d−1}v:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}v:{0,…,k−1}→{0,…,d−1}. For y=(u′,v′)y=(u',v')y=(u′,v′), its entries are

(Ei)x,y={(dk)−1 θi ⁣(a↦u(ei−1(inr⁡(a))),a↦u′(ei−1(inr⁡(a)))),if u(i(l))=v(l) and u′(i(l))=v′(l) for every l<k,0,otherwise.(E_i)_{x,y}= \begin{cases} (d^k)^{-1}\, \theta_i\!\left( a\mapsto u(e_i^{-1}(\operatorname{inr}(a))), a\mapsto u'(e_i^{-1}(\operatorname{inr}(a))) \right), &\text{if }u(i(l))=v(l)\text{ and }u'(i(l))=v'(l) \text{ for every }l<k,\\ 0,&\text{otherwise}. \end{cases}(Ei​)x,y​={(dk)−1θi​(a↦u(ei−1​(inr(a))),a↦u′(ei−1​(inr(a)))),0,​if u(i(l))=v(l) and u′(i(l))=v′(l) for every l<k,otherwise.​

The scalar is taken in C\mathbb CC. There are no positivity or normalization assumptions on θi\theta_iθi​; zero parameters are allowed, universal conditions over empty sets are vacuous, 00=10^0=100=1, and the inverse of zero is zero.

QAlgorithms.Papers.Independent.Extend50.P18.successExpression

For all natural numbers d,r,kd,r,kd,r,k, this defines the real number

S(d,r,k)=(r+k)!r! d2(r+k)∑α: ∣α∣=rα has at most d rowsmαfαinf⁡μ: ∣μ∣=r+k, μ has at most d rowspα,μ>0((r+k)!r! dr+kmμfαmαfμ)−1.S(d,r,k) =\frac{(r+k)!}{r!\,d^{2(r+k)}} \sum_{\substack{\alpha:\ |\alpha|=r\\ \alpha\text{ has at most }d\text{ rows}}} m_\alpha f_\alpha \inf_{\substack{\mu:\ |\mu|=r+k,\ \mu\text{ has at most }d\text{ rows}\\ p_{\alpha,\mu}>0}} \left(\frac{(r+k)!}{r!\,d^{r+k}} \frac{m_\mu f_\alpha}{m_\alpha f_\mu}\right)^{-1}.S(d,r,k)=r!d2(r+k)(r+k)!​α: ∣α∣=rα has at most d rows​∑​mα​fα​μ: ∣μ∣=r+k, μ has at most d rowspα,μ​>0​inf​(r!dr+k(r+k)!​mα​fμ​mμ​fα​​)−1.

The number pα,μp_{\alpha,\mu}pα,μ​ counts sequences λ0=α,…,λk=μ\lambda_0=\alpha,\ldots,\lambda_k=\muλ0​=α,…,λk​=μ of diagrams with at most ddd rows, with ∣λj∣=r+j|\lambda_j|=r+j∣λj​∣=r+j and λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​. For an nnn-cell diagram λ\lambdaλ, use its chosen cell numbering to form the row-preserving and column-preserving permutation groups Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​. The number fλf_\lambdafλ​ is the complex dimension of the range of the operator eh↦∑a∈Rλ,b∈Cλsgn⁡(b)ehabe_h\mapsto\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)e_{hab}eh​↦∑a∈Rλ​,b∈Cλ​​sgn(b)ehab​ on CSn\mathbb C^{S_n}CSn​; the number mλm_\lambdamλ​ is the complex dimension of the range of ∑a,bsgn⁡(b)Pab\sum_{a,b}\operatorname{sgn}(b)P_{ab}∑a,b​sgn(b)Pab​ on the space with basis the length-nnn words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, where Pπex=ex∘π−1P_\pi e_x=e_{x\circ\pi^{-1}}Pπ​ex​=ex∘π−1​. All zero parameters are included. Empty sums and empty real infima are zero, division or inversion at zero gives zero, and 00=10^0=100=1.

QAlgorithms.Papers.Independent.Extend50.P18.traceFinalQudits

For all natural numbers d,r,kd,r,kd,r,k and every complex matrix XXX indexed by words of length r+kr+kr+k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this definition gives the matrix indexed by words a,ba,ba,b of length rrr whose entries are

(Tr⁡final kX)a,b=∑h:{0,…,k−1}→{0,…,d−1}Xa∥h, b∥h,\bigl(\operatorname{Tr}_{\mathrm{final}\ k}X\bigr)_{a,b} =\sum_{h:\{0,\ldots,k-1\}\to\{0,\ldots,d-1\}} X_{a\mathbin{\|}h,\ b\mathbin{\|}h},(Trfinal k​X)a,b​=h:{0,…,k−1}→{0,…,d−1}∑​Xa∥h, b∥h​,

where a∥ha\mathbin{\|}ha∥h is the word taking its first rrr entries from aaa and its final kkk entries from hhh. No positivity, Hermitian, or normalization assumption is imposed on XXX. Zero values of d,r,kd,r,kd,r,k are allowed: there is exactly one word of length zero, while there are no positive-length words over an empty alphabet; the displayed sum follows these conventions.

QAlgorithms.Papers.Independent.Extend50.P18.weightedTranspositions

For natural numbers d,td,td,t and a Young diagram μ\muμ with t+1t+1t+1 cells and at most ddd rows, this definition gives the complex sμ×sμs_\mu\times s_\musμ​×sμ​ matrix

Wμ=∑a=0tcaAμ((a t)),ca={d,a=t,1,a≠t,W_\mu=\sum_{a=0}^{t}c_aA_\mu((a\ t)), \qquad c_a= \begin{cases} d,&a=t,\\ 1,&a\ne t, \end{cases}Wμ​=a=0∑t​ca​Aμ​((a t)),ca​={d,1,​a=t,a=t,​

where (a t)(a\ t)(a t) swaps aaa and ttt, and is the identity when a=ta=ta=t. Here the fixed numbering of μ\muμ’s cells determines the row-preserving and column-preserving permutation sets Rμ,Cμ⊆St+1R_\mu,C_\mu\subseteq S_{t+1}Rμ​,Cμ​⊆St+1​; the space Sμ⊆CSt+1S_\mu\subseteq\mathbb C^{S_{t+1}}Sμ​⊆CSt+1​ is the range of the matrix Jμ(g,h)=∑u∈Rμ∑v∈Cμsgn⁡(v)1g=huvJ_\mu(g,h)=\sum_{u\in R_\mu}\sum_{v\in C_\mu}\operatorname{sgn}(v)\mathbf1_{g=huv}Jμ​(g,h)=∑u∈Rμ​​∑v∈Cμ​​sgn(v)1g=huv​, and sμ=dim⁡CSμs_\mu=\dim_{\mathbb C}S_\musμ​=dimC​Sμ​. If PμP_\muPμ​ is orthogonal projection onto this space, Lπ(g,h)=1g=πhL_\pi(g,h)=\mathbf1_{g=\pi h}Lπ​(g,h)=1g=πh​, and eie_iei​ is its chosen standard orthonormal basis, then Aμ(π)ij=⟨ei,PμLπej⟩A_\mu(\pi)_{ij}=\langle e_i,P_\mu L_\pi e_j\rangleAμ​(π)ij​=⟨ei​,Pμ​Lπ​ej​⟩. This includes t=0t=0t=0, when the sum has only its a=t=0a=t=0a=t=0 term; for d=0d=0d=0, no required diagram μ\muμ exists.

QAlgorithms.Papers.Independent.Extend50.P18.youngPathsFinite

For all natural numbers d,r,kd,r,kd,r,k, every Young diagram α\alphaα with rrr cells and at most ddd rows, and every Young diagram μ\muμ with r+kr+kr+k cells and at most ddd rows, the following set is finite: sequences (λ0,…,λk)(\lambda_0,\ldots,\lambda_k)(λ0​,…,λk​) of Young diagrams such that λj\lambda_jλj​ has r+jr+jr+j cells and at most ddd rows, λ0=α\lambda_0=\alphaλ0​=α, λk=μ\lambda_k=\muλk​=μ, and λj⊆λj+1\lambda_j\subseteq\lambda_{j+1}λj​⊆λj+1​ for every 0≤j<k0\le j<k0≤j<k. The set may be empty. When k=0k=0k=0, its only possible sequence consists of a single diagram, and it exists exactly when α=μ\alpha=\muα=μ.

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