Definitions for Optimal Port-based Teleportation
DefinitionQAlgorithms_Papers_Independent_Extend50_P27The objects the formalized statements of Optimal Port-based Teleportation (arXiv:1707.08456) are stated in. Each was checked against the paper by a blind read-back and a moderator.
Predecessor: One-box inclusion, on actual cells (PDF pp.3,5).BoxMove: Moving one box between distinct shapes (PDF pp.5,7).removableCount: Removable corners, counted independently of any height cutoff (PDF p.7).teleportEntry: Definition 3, evaluated on diagrams, independently of any incidence Gram matrix (PDF p.7).teleportMatrix: Definition 10: all shapes of height at most d, with the original diagonal (PDF p.11).fullMatrix: Full matrix, containing all size-N shapes (PDF pp.7,10).incidence: Rectangular physical branching incidence, Definition 18 (PDF p.13).columnGram: Column Gram matrix, Definition 21 (PDF p.14).rowGram: Row Gram matrix, Definition 21 (PDF p.14).heightCorrection: Shape-restricted diagonal correction. The printed height=d in Eq.(54) must be height<d, as Lemma 27 and Eq.(55) require (PDF p.15).topValue: Largest real spectral value. Every use below is on a nonempty finite symmetric matrix; PSD and attainment are conclusions, not fields of this definition (PDF pp.19,27).spectralFidelity: Entanglement-fidelity value singled out by Eq.(78), with one eigenvalue, not its square.maxRowSum: Explicit maximum absolute row sum, the source's norm in Eq.(43) (PDF p.12).includePermutation: Last-letter-fixing embedding S_K into S_(K+1) (PDF pp.5–6).irrepDim: Actual Specht dimension, not an arbitrary shape weight (PDF pp.3–5).pbtIntertwinerSpace: Intertwiners between two actual finite actions. No branching counts are supplied as data; multiplicity is the dimension of this subspace (PDF pp.5,8–9).tensorMultiplicity: Tensor-space multiplicity m_mu, computed by actual intertwiners (PDF pp.3–4).restrictedAction: Restriction of a concrete Specht action to the subgroup fixing the last letter (PDF p.5).inducedAction: Induction in the explicit coset basis of Eqs.(20)–(21); N copies of the actual alpha Specht module, not an array of assumed branching multiplicities (PDF p.6).restrictionMultiplicity: Multiplicity in the restricted Specht module, defined through intertwiners (PDF p.5).inductionMultiplicity: Multiplicity in the explicit induced module, defined through intertwiners (PDF pp.5–6).fixedCount: Number of fixed points, including zero, as in the proof of Lemma 2 (PDF pp.6–7).characterTable: Definition 6 uses literal, unweighted Specht characters (PDF p.9).cycleClassCount: Count of cycle types with exactly k fixed points. Each xi_l is bounded by N; the equation is written without truncated N-k (PDF p.10).AliceIndex: Alice's N local registers.SignalIndex: Alice plus the input register C, with N=K+1.liftAlice: Extend an Alice operator by identity on C (PDF pp.4,16).pbtSignal: Normalized signals sigma_a = d^(-N) V^{t_C}(a,C), Eq.(4) (PDF p.3). The equalities couple a with C on each side; other Alice coordinates are unchanged.effectFidelity: Entanglement fidelity of effective effects, Eq.(57) (PDF p.16).PBTPrimalFeasible: All primal variables; positivity includes Hermiticity. The inequality is a positive-semidefinite difference, not entrywise order (PDF pp.4,16).primalValues: Attainable primal values; no spectral ansatz restricts the variables (PDF p.16).pbtOptimalFidelity: Optimal value of the actual primal program; its greatest element is asserted below, so the real supremum is not used as a substitute for attainment (PDF pp.16–19).PBTDualFeasible: Full dual feasible set, Eq.(80), without the proof's block ansatz (PDF pp.19–20).pbtDualObjective: The Euclidean operator norm in Eq.(79), on a Hermitian positive partial trace. Using the largest real eigenvalue avoids the unrelated maximum row-sum norm.pbtDualValues: Actual dual objective values, Eq.(79) (PDF p.19).projectorSeed: Concrete unnormalized P_alpha tensor tilde P+ seed (PDF p.31, Eq.(145)).etaBlock: Eta(alpha), the explicit sum of transported seeds in Eq.(145) (PDF pp.4,31).pbtGammaValue: Nonzero physical eigenvalue gamma_mu(alpha), Eq.(8) (PDF p.4).lambdaValue: Lambda_mu(alpha)=gamma_mu(alpha)/d^N, Eq.(10) (PDF p.4).physicalProjector: Concrete physical F_mu(alpha), Eq.(145); no projector or spectral identities are assumed as structure fields (PDF p.31). Used only for one-box-compatible labels.blockPower: Spectral power of the physical alpha block, extended by zero off its nonzero support, even at exponent zero or a negative exponent (PDF pp.24,29).blockSignal: Alpha-resolved sigma_a. This is constructed from the seed, not postulated as an eigenspace decomposition (PDF pp.24–25).coefficientFilter: Spectral filter with actual block coefficients p_mu(alpha), Eq.(61) (PDF p.17).filterEffects: Effective effects Pi sigma_a Pi, Eq.(60) (PDF p.17).powerEffects: The general block power-filter effects, Eq.(110). Feasibility is never inferred for arbitrary z,y (PDF pp.24–25).contractionConstant: The scalar contraction coefficient, Eqs.(113),(139) (PDF pp.24,29).eprFormula: Formula (120), with physical labels and actual dimensions (PDF p.26).coefficientFidelity: The scalar expression before maximization in Eq.(68) (PDF p.18).IsOptimalVector: Source-normalized positive Perron vector, with Euclidean unit norm, Eq.(76).optimalFilter: The explicit optimal filter, Eq.(97), with sqrt(m_alpha/d_alpha) times v_mu/m_mu (PDF p.22). Both v_mu and m_mu are outside the radical, also confirmed by Eq.(74).optimalResourceOperator: Positive optimal Alice filter O_A, Eq.(99), with sqrt(d^N) (PDF p.22).resourceState: Actual resource amplitudes (O_A tensor I)|Phi+>^tensor N, Eq.(98) (PDF pp.4,22).absorbedEffects: Absorb the resource filter into physical identity-summing Alice effects (PDF pp.4,16). Bob's operation is solely to retain the named port.positiveInverse: Moore–Penrose inverse of a positive optimizer, zero on its kernel (PDF pp.16–18).completedMeasurement: Deterministic physical POVM obtained by inverse filtering and uniformly completing the residual positive effect (PDF pp.3–4,16–18).pbtBellEmbedding: Normalized Bell embedding on the last two factors, identity on the first K (PDF p.29, Fact 39).powerIterate: Sum-normalized power iteration, Eq.(124), with the source's initial vector and no unspecified normalization convention (PDF p.27).powerOutput: The v_(m+1) in Eq.(124), avoiding an undefined v_0 (PDF pp.27–28).OptimalConstruction: Operational content of Eqs.(96)–(99): explicit filter and resource, the unrestricted optimal value, and support completion to a deterministic physical POVM (PDF pp.21–22).squareRootEffects: Global support inverse square root of rho, Eq.(1), for the fixed EPR resource (PDF pp.3,26). Its value on the zero eigenvalue is zero.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P26
import Definitions.Def_QAlgorithms_Papers_Independent_Gap20_P01
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P28
/-!
Statements from Mozrzymas–Studzinski–Strelchuk–Horodecki,
Optimal Port-based Teleportation, arXiv:1707.08456v1.
All paper-local objects below have complete bodies. Theorems are statement targets.
N = K+1 is used in physical-register formulas to include N=1 without an invalid last index.
-/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
open Filter Topology
open QAlgorithms.Schur
namespace QAlgorithms.Papers.Independent.Extend50.P27
-- Exact accepted interfaces; unrelated short-name homonyms remain paper-specific.
open QAlgorithms.Papers.Independent.Renew46.P26 (deleteLast)
open QAlgorithms.Papers.Independent.Gap20.P01 (spechtMatrix)
open QAlgorithms.Papers.Independent.Claimed50.P28 (traceInput)
attribute [local instance] Classical.propDecidable
/-- One-box inclusion, on actual cells (PDF pp.3,5). -/
def Predecessor (alpha mu : YoungDiagram) : Prop :=
alpha.cells ⊆ mu.cells ∧ (mu.cells \ alpha.cells).card = 1
/-- Moving one box between distinct shapes (PDF pp.5,7). -/
def BoxMove (mu nu : YoungDiagram) : Prop :=
mu ≠ nu ∧ (mu.cells \ nu.cells).card = 1 ∧ (nu.cells \ mu.cells).card = 1
/-- Removable corners, counted independently of any height cutoff (PDF p.7). -/
def removableCount (mu : YoungDiagram) : ℕ :=
((Finset.range mu.card).filter fun i => mu.rowLen (i+1) < mu.rowLen i).card
/-- Definition 3, evaluated on diagrams, independently of any incidence Gram matrix (PDF p.7). -/
def teleportEntry (mu nu : YoungDiagram) : ℝ :=
if mu = nu then removableCount mu else if BoxMove mu nu then 1 else 0
/-- Definition 10: all shapes of height at most d, with the original diagonal (PDF p.11). -/
def teleportMatrix (d N : ℕ) : Matrix (Partition d N) (Partition d N) ℝ :=
fun mu nu => teleportEntry mu.val nu.val
/-- Full matrix, containing all size-N shapes (PDF pp.7,10). -/
def fullMatrix (N : ℕ) : Matrix (Partition N N) (Partition N N) ℝ :=
teleportMatrix N N
/-- Rectangular physical branching incidence, Definition 18 (PDF p.13). -/
def incidence (d N : ℕ) : Matrix (Partition d (N-1)) (Partition d N) ℝ :=
fun alpha mu => if Predecessor alpha.val mu.val then 1 else 0
/-- Column Gram matrix, Definition 21 (PDF p.14). -/
def columnGram (d N : ℕ) := (incidence d N).transpose * incidence d N
/-- Row Gram matrix, Definition 21 (PDF p.14). -/
def rowGram (d N : ℕ) := incidence d N * (incidence d N).transpose
/-- Shape-restricted diagonal correction. The printed height=d in Eq.(54) must be
height<d, as Lemma 27 and Eq.(55) require (PDF p.15). -/
def heightCorrection (d N : ℕ) : Matrix (Partition d (N-1)) (Partition d (N-1)) ℝ :=
Matrix.diagonal fun alpha => if alpha.val.colLen 0 < d then 1 else 0
/-- Largest real spectral value. Every use below is on a nonempty finite symmetric
matrix; PSD and attainment are conclusions, not fields of this definition (PDF pp.19,27). -/
def topValue {I : Type*} [Fintype I] [DecidableEq I] (A : Matrix I I ℝ) : ℝ :=
sSup (spectrum ℝ A)
/-- Entanglement-fidelity value singled out by Eq.(78), with one eigenvalue, not its square. -/
def spectralFidelity (d N : ℕ) : ℝ := topValue (teleportMatrix d N) / (d : ℝ)^2
/-- Explicit maximum absolute row sum, the source's norm in Eq.(43) (PDF p.12). -/
def maxRowSum {I : Type*} [Fintype I] (A : Matrix I I ℝ) : ℝ :=
sSup (Set.range (fun i => ∑ j, |A i j|))
/-- Last-letter-fixing embedding S_K into S_(K+1) (PDF pp.5–6). -/
def includePermutation {K : ℕ} (pi : Equiv.Perm (Fin K)) : Equiv.Perm (Fin (K+1)) :=
finSuccEquivLast.trans ((Equiv.optionCongr pi).trans finSuccEquivLast.symm)
/-- Actual Specht dimension, not an arbitrary shape weight (PDF pp.3–5). -/
def irrepDim {d N : ℕ} (mu : Partition d N) : ℕ := Module.finrank ℂ (spechtSpace mu)
/-- Intertwiners between two actual finite actions. No branching counts are supplied
as data; multiplicity is the dimension of this subspace (PDF pp.5,8–9). -/
def pbtIntertwinerSpace {G I J : Type*} [Fintype I] [Fintype J]
(A : G → Matrix I I ℂ) (B : G → Matrix J J ℂ) : Submodule ℂ (Matrix J I ℂ) where
carrier := {T | ∀ g, B g * T = T * A g}
zero_mem' := by intro g; simp
add_mem' := by
intro T S hT hS g
simp only [Matrix.mul_add, Matrix.add_mul, hT g, hS g]
smul_mem' := by
intro c T hT g
simp only [Matrix.mul_smul, Matrix.smul_mul, hT g]
/-- Tensor-space multiplicity m_mu, computed by actual intertwiners (PDF pp.3–4). -/
def tensorMultiplicity {d N : ℕ} (mu : Partition d N) : ℕ :=
Module.finrank ℂ (pbtIntertwinerSpace (spechtMatrix mu) (tensorPermutation d N))
/-- Restriction of a concrete Specht action to the subgroup fixing the last letter (PDF p.5). -/
def restrictedAction {d K : ℕ} (mu : Partition d (K+1)) (pi : Equiv.Perm (Fin K)) :=
spechtMatrix mu (includePermutation pi)
/-- Induction in the explicit coset basis of Eqs.(20)–(21); N copies of the
actual alpha Specht module, not an array of assumed branching multiplicities (PDF p.6). -/
def inducedAction {d K : ℕ} (alpha : Partition d K) (pi : Equiv.Perm (Fin (K+1))) :
Matrix (Fin (K+1) × Fin (irrepDim alpha)) (Fin (K+1) × Fin (irrepDim alpha)) ℂ :=
fun a b =>
let tau := Equiv.swap a.1 (Fin.last K) * pi * Equiv.swap b.1 (Fin.last K)
if tau (Fin.last K) = Fin.last K then
spechtMatrix alpha (deleteLast K tau) a.2 b.2 else 0
/-- Multiplicity in the restricted Specht module, defined through intertwiners (PDF p.5). -/
def restrictionMultiplicity {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1)) : ℕ :=
Module.finrank ℂ (pbtIntertwinerSpace (spechtMatrix alpha) (restrictedAction mu))
/-- Multiplicity in the explicit induced module, defined through intertwiners (PDF pp.5–6). -/
def inductionMultiplicity {d K : ℕ} (mu : Partition d (K+1)) (alpha : Partition d K) : ℕ :=
Module.finrank ℂ (pbtIntertwinerSpace (spechtMatrix mu) (inducedAction alpha))
/-- Number of fixed points, including zero, as in the proof of Lemma 2 (PDF pp.6–7). -/
def fixedCount {N : ℕ} (pi : Equiv.Perm (Fin N)) : ℕ :=
(Finset.univ.filter fun i => pi i = i).card
/-- Definition 6 uses literal, unweighted Specht characters (PDF p.9). -/
def characterTable (N : ℕ) :
Matrix (Partition N N) (ConjClasses (Equiv.Perm (Fin N))) ℂ :=
fun mu C => spechtCharacter mu (Quotient.out C)
/-- Count of cycle types with exactly k fixed points. Each xi_l is bounded by N;
the equation is written without truncated N-k (PDF p.10). -/
def cycleClassCount (N k : ℕ) : ℕ :=
(Finset.univ.filter fun xi : Fin (N+1) → Fin (N+1) =>
xi 0 = 0 ∧ xi 1 = 0 ∧ k + ∑ l : Fin (N+1), l.val * (xi l).val = N).card
/-- Alice's N local registers. -/
abbrev AliceIndex (d N : ℕ) := Fin N → Fin d
/-- Alice plus the input register C, with N=K+1. -/
abbrev SignalIndex (d K : ℕ) := AliceIndex d (K+1) × Fin d
/-- Extend an Alice operator by identity on C (PDF pp.4,16). -/
def liftAlice {d K : ℕ} (A : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
fun x y => if x.2 = y.2 then A x.1 y.1 else 0
/-- Normalized signals sigma_a = d^(-N) V^{t_C}(a,C), Eq.(4) (PDF p.3).
The equalities couple a with C on each side; other Alice coordinates are unchanged. -/
def pbtSignal (d K : ℕ) (a : Fin (K+1)) : Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
fun x y => if x.1 a = x.2 ∧ y.1 a = y.2 ∧ (∀ i, i ≠ a → x.1 i = y.1 i)
then ((d : ℂ)^(K+1))⁻¹ else 0
/-- Entanglement fidelity of effective effects, Eq.(57) (PDF p.16). -/
def effectFidelity {d K : ℕ}
(E : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ) : ℝ :=
(∑ a, (Matrix.trace (E a * pbtSignal d K a)).re) / (d : ℝ)^2
/-- All primal variables; positivity includes Hermiticity. The inequality is a
positive-semidefinite difference, not entrywise order (PDF pp.4,16). -/
def PBTPrimalFeasible {d K : ℕ}
(X : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(E : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ) : Prop :=
X.PosSemidef ∧ X.trace = (d : ℂ)^(K+1) ∧
(∀ a, (E a).PosSemidef) ∧ (liftAlice X - ∑ a, E a).PosSemidef
/-- Attainable primal values; no spectral ansatz restricts the variables (PDF p.16). -/
def primalValues (d K : ℕ) : Set ℝ :=
{f | ∃ (X : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(E : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ),
PBTPrimalFeasible (d := d) (K := K) X E ∧ f = effectFidelity (d := d) (K := K) E}
/-- Optimal value of the actual primal program; its greatest element is asserted
below, so the real supremum is not used as a substitute for attainment (PDF pp.16–19). -/
def pbtOptimalFidelity (d N : ℕ) : ℝ := sSup (primalValues d (N-1))
/-- Full dual feasible set, Eq.(80), without the proof's block ansatz (PDF pp.19–20). -/
def PBTDualFeasible {d K : ℕ} (Omega : Matrix (SignalIndex d K) (SignalIndex d K) ℂ) : Prop :=
Omega.IsHermitian ∧ ∀ a, (Omega - pbtSignal d K a).PosSemidef
/-- The Euclidean operator norm in Eq.(79), on a Hermitian positive partial trace.
Using the largest real eigenvalue avoids the unrelated maximum row-sum norm. -/
def pbtDualObjective {d K : ℕ} (Omega : Matrix (SignalIndex d K) (SignalIndex d K) ℂ) : ℝ :=
(d : ℝ)^(K+1) / (d : ℝ)^2 * sSup (spectrum ℝ (traceInput Omega))
/-- Actual dual objective values, Eq.(79) (PDF p.19). -/
def pbtDualValues (d K : ℕ) : Set ℝ :=
{f | ∃ Omega : Matrix (SignalIndex d K) (SignalIndex d K) ℂ,
PBTDualFeasible (d := d) (K := K) Omega ∧
f = pbtDualObjective (d := d) (K := K) Omega}
/-- Concrete unnormalized P_alpha tensor tilde P+ seed (PDF p.31, Eq.(145)). -/
def projectorSeed {d K : ℕ} (alpha : Partition d K) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
fun x y => if x.1 (Fin.last K) = x.2 ∧ y.1 (Fin.last K) = y.2 then
isotypicProjector alpha (fun i => x.1 i.castSucc) (fun i => y.1 i.castSucc) else 0
/-- Eta(alpha), the explicit sum of transported seeds in Eq.(145) (PDF pp.4,31). -/
def etaBlock {d K : ℕ} (alpha : Partition d K) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
∑ a : Fin (K+1),
let V := liftAlice (tensorPermutation d (K+1) (Equiv.swap a (Fin.last K)))
V * projectorSeed alpha * Vᴴ
/-- Nonzero physical eigenvalue gamma_mu(alpha), Eq.(8) (PDF p.4). -/
def pbtGammaValue {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1)) : ℝ :=
(K+1 : ℝ) * tensorMultiplicity mu * irrepDim alpha /
((tensorMultiplicity alpha : ℝ) * irrepDim mu)
/-- Lambda_mu(alpha)=gamma_mu(alpha)/d^N, Eq.(10) (PDF p.4). -/
def lambdaValue {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1)) : ℝ :=
pbtGammaValue alpha mu / (d : ℝ)^(K+1)
/-- Concrete physical F_mu(alpha), Eq.(145); no projector or spectral identities
are assumed as structure fields (PDF p.31). Used only for one-box-compatible labels. -/
def physicalProjector {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1)) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
((pbtGammaValue alpha mu : ℂ)⁻¹) •
(liftAlice (isotypicProjector mu) * etaBlock alpha * liftAlice (isotypicProjector mu))
/-- Spectral power of the physical alpha block, extended by zero off its nonzero
support, even at exponent zero or a negative exponent (PDF pp.24,29). -/
def blockPower {d K : ℕ} (alpha : Partition d K) (t : ℝ) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
∑ mu : Partition d (K+1), if Predecessor alpha.val mu.val then
((Real.rpow (lambdaValue alpha mu) t : ℝ) : ℂ) • physicalProjector alpha mu else 0
/-- Alpha-resolved sigma_a. This is constructed from the seed, not postulated as
an eigenspace decomposition (PDF pp.24–25). -/
def blockSignal {d K : ℕ} (alpha : Partition d K) (a : Fin (K+1)) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
let V := liftAlice (tensorPermutation d (K+1) (Equiv.swap a (Fin.last K)))
((d : ℂ)^(K+1))⁻¹ • (V * projectorSeed alpha * Vᴴ)
/-- Spectral filter with actual block coefficients p_mu(alpha), Eq.(61) (PDF p.17). -/
def coefficientFilter {d K : ℕ} (p : Partition d K → Partition d (K+1) → ℝ) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
∑ alpha : Partition d K, ∑ mu : Partition d (K+1),
if Predecessor alpha.val mu.val then (p alpha mu : ℂ) • physicalProjector alpha mu else 0
/-- Effective effects Pi sigma_a Pi, Eq.(60) (PDF p.17). -/
def filterEffects {d K : ℕ} (P : Matrix (SignalIndex d K) (SignalIndex d K) ℂ)
(a : Fin (K+1)) := P * pbtSignal d K a * P
/-- The general block power-filter effects, Eq.(110). Feasibility is never inferred
for arbitrary z,y (PDF pp.24–25). -/
def powerEffects {d K : ℕ} (z y : Partition d K → ℝ) (a : Fin (K+1)) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
∑ alpha : Partition d K, (z alpha : ℂ) •
(blockPower alpha (-(y alpha)⁻¹) * blockSignal alpha a * blockPower alpha (-(y alpha)⁻¹))
/-- The scalar contraction coefficient, Eqs.(113),(139) (PDF pp.24,29). -/
def contractionConstant {d K : ℕ} (alpha : Partition d K) (y : ℝ) : ℝ :=
(∑ mu : Partition d (K+1), if Predecessor alpha.val mu.val then
Real.rpow (lambdaValue alpha mu) (-y⁻¹) * tensorMultiplicity mu /
(tensorMultiplicity alpha : ℝ) else 0) / d
/-- Formula (120), with physical labels and actual dimensions (PDF p.26). -/
def eprFormula (d K : ℕ) : ℝ :=
(∑ alpha : Partition d K,
(∑ mu : Partition d (K+1), if Predecessor alpha.val mu.val then
Real.sqrt ((irrepDim mu : ℝ) * tensorMultiplicity mu) else 0)^2) / (d : ℝ)^(K+3)
/-- The scalar expression before maximization in Eq.(68) (PDF p.18). -/
def coefficientFidelity {d K : ℕ} (p : Partition d K → Partition d (K+1) → ℝ) : ℝ :=
(K+1 : ℝ) / (d : ℝ)^(2*(K+1)+2) *
∑ alpha : Partition d K, (irrepDim alpha : ℝ) / tensorMultiplicity alpha *
(∑ mu : Partition d (K+1), if Predecessor alpha.val mu.val then
p alpha mu * tensorMultiplicity mu else 0)^2
/-- Source-normalized positive Perron vector, with Euclidean unit norm, Eq.(76). -/
def IsOptimalVector {d N : ℕ} (v : Partition d N → ℝ) : Prop :=
(∀ mu, 0 < v mu) ∧ (∑ mu, (v mu)^2) = 1 ∧
(teleportMatrix d N) *ᵥ v = topValue (teleportMatrix d N) • v
/-- The explicit optimal filter, Eq.(97), with sqrt(m_alpha/d_alpha) times v_mu/m_mu
(PDF p.22). Both v_mu and m_mu are outside the radical, also confirmed by Eq.(74). -/
def optimalFilter {d K : ℕ} (v : Partition d (K+1) → ℝ) :=
coefficientFilter (fun alpha mu =>
(d : ℝ)^(K+1) / Real.sqrt (K+1) *
Real.sqrt ((tensorMultiplicity alpha : ℝ) / irrepDim alpha) * v mu / tensorMultiplicity mu)
/-- Positive optimal Alice filter O_A, Eq.(99), with sqrt(d^N) (PDF p.22). -/
def optimalResourceOperator {d N : ℕ} (v : Partition d N → ℝ) :
Matrix (AliceIndex d N) (AliceIndex d N) ℂ :=
∑ mu : Partition d N,
((Real.sqrt ((d : ℝ)^N) * v mu /
Real.sqrt ((irrepDim mu : ℝ) * tensorMultiplicity mu) : ℝ) : ℂ) • isotypicProjector mu
/-- Actual resource amplitudes (O_A tensor I)|Phi+>^tensor N, Eq.(98) (PDF pp.4,22). -/
def resourceState {d N : ℕ} (O : Matrix (AliceIndex d N) (AliceIndex d N) ℂ) :
EuclideanSpace ℂ (AliceIndex d N × AliceIndex d N) :=
WithLp.toLp 2 (fun xy => O xy.1 xy.2 / (Real.sqrt ((d : ℝ)^N) : ℂ))
/-- Absorb the resource filter into physical identity-summing Alice effects
(PDF pp.4,16). Bob's operation is solely to retain the named port. -/
def absorbedEffects {d K : ℕ}
(O : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(M : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ) (a : Fin (K+1)) :=
(liftAlice O)ᴴ * M a * liftAlice O
/-- Moore–Penrose inverse of a positive optimizer, zero on its kernel (PDF pp.16–18). -/
def positiveInverse {I : Type*} [Fintype I] [DecidableEq I] (A : Matrix I I ℂ) : Matrix I I ℂ :=
cfc (fun t : ℝ => if t = 0 then 0 else t⁻¹) A
/-- Deterministic physical POVM obtained by inverse filtering and uniformly
completing the residual positive effect (PDF pp.3–4,16–18). -/
def completedMeasurement {d K : ℕ}
(O : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(E : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ) (a : Fin (K+1)) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
let Q := liftAlice (positiveInverse O)
Q * E a * Q + ((K+1 : ℂ)⁻¹) • (1 - ∑ b, Q * E b * Q)
/-- Normalized Bell embedding on the last two factors, identity on the first K
(PDF p.29, Fact 39). -/
def pbtBellEmbedding (d K : ℕ) : Matrix (SignalIndex d K) (AliceIndex d K) ℂ :=
fun x y => if (fun i => x.1 i.castSucc) = y ∧ x.1 (Fin.last K) = x.2
then ((Real.sqrt d)⁻¹ : ℂ) else 0
/-- Sum-normalized power iteration, Eq.(124), with the source's initial vector
and no unspecified normalization convention (PDF p.27). -/
def powerIterate {I : Type*} [Fintype I] (A : Matrix I I ℝ) (w0 : I → ℝ) : ℕ → I → ℝ
| 0 => w0
| m+1 => let v := A *ᵥ powerIterate A w0 m; fun i => v i / ∑ j, v j
/-- The v_(m+1) in Eq.(124), avoiding an undefined v_0 (PDF pp.27–28). -/
def powerOutput {I : Type*} [Fintype I] (A : Matrix I I ℝ) (w0 : I → ℝ) (m : ℕ) :=
A *ᵥ powerIterate A w0 m
example (mu : YoungDiagram) : ¬ BoxMove mu mu := by simp [BoxMove]
example (mu : YoungDiagram) : teleportEntry mu mu = removableCount mu := by
simp [teleportEntry]
example {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1))
(h : Predecessor alpha.val mu.val) : incidence d (K+1) alpha mu = 1 := by
simp [incidence, h]
example {K : ℕ} (pi : Equiv.Perm (Fin K)) :
includePermutation pi (Fin.last K) = Fin.last K := by simp [includePermutation]
example {I : Type*} [Fintype I] (A : Matrix I I ℝ) (w : I → ℝ) :
powerIterate A w 0 = w := rfl
example {d K : ℕ} : liftAlice (0 : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ) = 0 := by
ext x y
simp [liftAlice]
example {d K : ℕ} (alpha : Partition d K) (mu : Partition d (K+1)) :
lambdaValue alpha mu = pbtGammaValue alpha mu / (d : ℝ)^(K+1) := rfl
example {d K : ℕ} (O : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(M : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ) :
absorbedEffects O M = fun a => (liftAlice O)ᴴ * M a * liftAlice O := rfl
/-- Operational content of Eqs.(96)–(99): explicit filter and resource, the unrestricted
optimal value, and support completion to a deterministic physical POVM (PDF pp.21–22). -/
def OptimalConstruction {d K : ℕ} (v : Partition d (K+1) → ℝ) : Prop :=
let O := optimalResourceOperator v
let E := filterEffects (optimalFilter v)
let M := completedMeasurement O E
O.PosSemidef ∧ (Oᴴ * O).trace = (d : ℂ)^(K+1) ∧
‖resourceState O‖ = 1 ∧ PBTPrimalFeasible (Oᴴ * O) E ∧
effectFidelity E = spectralFidelity d (K+1) ∧
IsGreatest (primalValues d K) (spectralFidelity d (K+1)) ∧
QAlgorithms.IsPOVM M ∧
effectFidelity (absorbedEffects O M) = spectralFidelity d (K+1) ∧
(∀ (Oother : Matrix (AliceIndex d (K+1)) (AliceIndex d (K+1)) ℂ)
(Mother : Fin (K+1) → Matrix (SignalIndex d K) (SignalIndex d K) ℂ),
(Ootherᴴ * Oother).trace = (d : ℂ)^(K+1) → QAlgorithms.IsPOVM Mother →
effectFidelity (absorbedEffects Oother Mother) ≤ spectralFidelity d (K+1))
/-- Global support inverse square root of rho, Eq.(1), for the fixed EPR resource
(PDF pp.3,26). Its value on the zero eigenvalue is zero. -/
def squareRootEffects (d K : ℕ) (a : Fin (K+1)) :
Matrix (SignalIndex d K) (SignalIndex d K) ℂ :=
let P := cfc (fun t : ℝ => if t = 0 then 0 else (Real.sqrt t)⁻¹) (∑ b, pbtSignal d K b)
P * pbtSignal d K a * P
end QAlgorithms.Papers.Independent.Extend50.P27
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P27.AliceIndex
For natural numbers , this denotes the set of functions assigning one of values to each of positions. When , it contains exactly the empty function, including when ; when , it is empty.
QAlgorithms.Papers.Independent.Extend50.P27.BoxMove
For any Young diagrams and , means that , exactly one cell belongs to but not , and exactly one cell belongs to but not :
Neither diagram can be empty when this condition holds.
QAlgorithms.Papers.Independent.Extend50.P27.IsOptimalVector
For arbitrary natural numbers , let be the set of Young diagrams with boxes and at most rows. Define a real matrix , indexed by , as follows: is the number of integers with for which row of is shorter than row ; for distinct , set if each diagram has exactly one box absent from the other, and set it to otherwise. For any function , the predicate holds exactly when
The supremum is taken in , with its total supremum convention, including value for an empty spectrum. There is no positivity assumption on or . If the indexing set is empty, the normalization condition is impossible; when , the indexing set consists of the empty diagram, , and the predicate requires its sole coordinate to equal .
QAlgorithms.Papers.Independent.Extend50.P27.OptimalConstruction
For arbitrary natural numbers , put , , , and let consist of Young diagrams with boxes and at most rows. The input is unrestricted. To specify the matrices in this predicate, number each diagram’s boxes using the chosen bijection with , and let preserve the row and column coordinates, respectively. Define as the range of the matrix with entries , let , let be its orthogonal projection, and put , where . Let be the matrix of in its chosen standard orthonormal basis, define on , and set
where is linear. For a matrix on , write . For , let when and , and zero otherwise; put , , and
Writing for inclusion of their box sets with exactly one additional box in , define
Real coefficients are embedded in . Let , for , , with defined by the total real continuous functional calculus, and put
Finally, define the real matrix on by taking to be the number of for which row is shorter than row , and, for distinct diagrams, taking precisely when each has exactly one box absent from the other, and zero otherwise; put . The predicate is the conjunction of all the following requirements:
It additionally requires that, for every complex matrix on and every family on , if , every is positive semidefinite, and , then
There is no additional positivity requirement on , and no separate optimal-vector hypothesis on . All divisions are total with division by zero equal to zero, and empty sums equal zero; the real functional calculus gives zero on non-Hermitian inputs. The parameters include and ; when , the resource index set is empty and the required resource-vector norm cannot equal .
QAlgorithms.Papers.Independent.Extend50.P27.PBTDualFeasible
For arbitrary natural numbers and a complex matrix indexed by pairs , where and , this predicate means that is Hermitian and that is positive semidefinite for every , where
The inverse is the complex inverse, including . For there is one positive semidefinite inequality; for the matrix index set is empty and the predicate holds for its unique matrix.
QAlgorithms.Papers.Independent.Extend50.P27.PBTPrimalFeasible
For natural numbers , a complex matrix indexed by functions , and a family , , of complex matrices indexed by pairs with , this predicate means precisely that is positive semidefinite, as a complex equality, every is positive semidefinite, and
The final condition is an inequality in the positive semidefinite order, rather than an equality. The definition permits ; for , all these matrix index sets are empty and the conditions hold for their unique matrices.
QAlgorithms.Papers.Independent.Extend50.P27.Predecessor
For any Young diagrams and , means that the cells of form a subset of the cells of , and exactly one cell of is absent from :
The empty diagram is allowed as either argument, although the condition cannot hold when is empty.
QAlgorithms.Papers.Independent.Extend50.P27.SignalIndex
For natural numbers , this denotes the set of pairs , where and . Thus there are function positions and one additional coordinate. The set is empty when ; gives one function position and the additional coordinate.
QAlgorithms.Papers.Independent.Extend50.P27.absorbedEffects
For arbitrary natural numbers , let and . Given any complex matrix on , any family of complex matrices on , indexed by , and any such index , define the lifted matrix by
The returned matrix is
where is conjugate transpose. No positivity, completeness, normalization, or invertibility assumption is made on or the family ; and , with their resulting singleton outcome set or empty signal index set, are included.
QAlgorithms.Papers.Independent.Extend50.P27.blockPower
For natural numbers , a Young diagram with cells and first-column length at most , and any real , the definition gives , a complex matrix on ; the sum ranges over diagrams of size with the same height bound, and means that the cells of are contained in those of and exactly one cell belongs to . The powers are the total real-power function, converted to complex scalars. Here are the full constructions of the summands. For each diagram of size , number its cells using the supplied fixed numbering; let preserve their rows and columns, set , and let , , and its orthogonal projection. Put and . In the chosen standard orthonormal basis of , define ; let be the complex dimension of . Set , , , and . Finally, , , and . Empty sums are zero, zero inverses are zero, and is unrestricted, including zero and negative values.
QAlgorithms.Papers.Independent.Extend50.P27.blockSignal
For natural numbers , a Young diagram with cells and first-column length at most , and an index , the definition produces on , where the scalar is the complex inverse of . The matrix has entries , with the transposition of and . The seed equals if and , and zero otherwise. To define , use the fixed cell numbering of ; let be the permutations preserving the row and column coordinates, and set . Let , , and its orthogonal projection. With and , put . The definition includes , when and the swap is the identity. If , the normalizing inverse is zero.
QAlgorithms.Papers.Independent.Extend50.P27.characterTable
For every natural number , this defines a complex matrix whose rows are Young diagrams with cells and at most rows and whose columns are conjugacy classes of . To specify its entry, number the cells of using the selected bijection with , let preserve their rows and columns, set , and let . Write for the matrix of orthogonal projection onto , so that . Choose the representative of supplied by the quotient representative selection, and let . The -entry is . The case is included: the sole diagram is empty and has one conjugacy class.
QAlgorithms.Papers.Independent.Extend50.P27.coefficientFidelity
For natural numbers and any real-valued function on pairs of Young diagrams of sizes , each with first-column length at most , the definition gives . Here means that 's cells are contained in 's cells and their difference contains exactly one cell. For each diagram of size , use its fixed numbering of cells, let preserve row and column coordinates, and set , , and . Let be its orthogonal projection, , and the chosen standard orthonormal basis of ; put . On words of length over , put . The number is the complex dimension of all matrices satisfying for every . All arithmetic in the displayed formula is real, and has no sign, normalization, or other restrictions. The definition includes ; empty sums and zero-denominator quotients are zero, so the value at is zero.
QAlgorithms.Papers.Independent.Extend50.P27.coefficientFilter
For natural numbers and an arbitrary real-valued function on pairs of Young diagrams of sizes , each with first-column length at most , the definition produces the complex matrix on . Here means cell containment with exactly one new cell. To specify , for each diagram of size , use its fixed cell numbering, let preserve rows and columns, set , and let , , and its orthogonal projection. Define , , and in the chosen standard orthonormal basis of . Let be the complex dimension of , and put . On , set , , and . Then , where . Real coefficients are converted to complex scalars; they have no sign or normalization restrictions. Empty sums and zero-denominator quotients are zero, and is included.
QAlgorithms.Papers.Independent.Extend50.P27.columnGram
For all natural numbers , let be the real matrix whose rows are Young diagrams with cells and first-column length at most , whose columns are Young diagrams with cells and the same column bound, and whose entry is one exactly when 's cells are contained in 's with exactly one additional cell in , and zero otherwise. The matrix is ; thus its entry counts the row diagrams satisfying that condition with both and . Subtraction is truncated at zero, and for this is a one-by-one zero matrix.
QAlgorithms.Papers.Independent.Extend50.P27.completedMeasurement
For arbitrary natural numbers , let and . Given any complex matrix on , any family of complex matrices on for , and any , let denote the total real continuous functional calculus with and for , and define
The returned matrix is
For Hermitian , inverts its nonzero eigenvalues; for non-Hermitian , this real functional calculus returns zero. No positivity or completeness hypothesis is imposed on or , and the definition asserts no such property of . The denominator is always nonzero; when , the sole returned matrix is .
QAlgorithms.Papers.Independent.Extend50.P27.contractionConstant
For natural numbers , a Young diagram of size with first-column length at most , and any real , the definition gives , where ranges over diagrams of size with the same height bound, means that 's cells are contained in 's cells with exactly one additional cell, and . These are real quotients and total real powers. For each diagram of size , use its fixed cell numbering, let preserve row and column coordinates, and define . Let , , its orthogonal projection, and . In the chosen standard orthonormal basis of , set , and on words of length over symbols set . Then is the complex dimension of all matrices satisfying for every . The definition imposes no sign or nonzero condition on ; at the exponent is zero. Empty sums and divisions by zero are zero, including the outer division when .
QAlgorithms.Papers.Independent.Extend50.P27.cycleClassCount
For arbitrary natural numbers , this defines the number of functions satisfying , , and , where the function values in the sum are their natural-number representatives. The argument is interpreted modulo ; thus, when , both specified arguments are , and the value is if and otherwise. For every , the value is when .
QAlgorithms.Papers.Independent.Extend50.P27.effectFidelity
For arbitrary natural numbers and any family , , of complex matrices indexed by pairs with and , this defines the real number
No positivity, completeness, or normalization condition is imposed on the family . Both inverses and division are total, with division by zero equal to zero; in particular, the defined value is zero when . The case has one summand.
QAlgorithms.Papers.Independent.Extend50.P27.eprFormula
For any natural numbers , the defined real number is , where ranges over Young diagrams with cells and first-column length at most , ranges over diagrams with cells and the same height bound, and means cell containment with exactly one new cell. To define , write , use the fixed numbering of 's cells by , and let preserve their row and column coordinates. Set , , , and let be its orthogonal projection. With and the chosen standard orthonormal basis of , define . On words , define . Then is the complex dimension of the matrix space . Dimensions are converted to real numbers before multiplication and square roots. The definition includes ; empty sums are zero, and at the final quotient is zero.
QAlgorithms.Papers.Independent.Extend50.P27.etaBlock
For natural numbers , let be a Young diagram with cells and first-column length at most . The definition produces a complex matrix on . Define the matrix as follows. Use the fixed numbering of the cells of by ; let be the permutations preserving, respectively, the row and column coordinates of the numbered cells. On , let have entries , let , let be the orthogonal projection onto , and let have entries . Write , and let . Then . Define on by when and , and by zero otherwise. For , let , where swaps and . The defined matrix is . This includes , when the sum has one term and the swap is the identity; no positivity assumption on is imposed.
QAlgorithms.Papers.Independent.Extend50.P27.filterEffects
For any natural numbers , any complex matrix indexed by , and any , the definition gives the matrix , where is the complex inverse of if , , and for every , and is zero otherwise. Both outer factors are itself. There is no assumption that is Hermitian, positive, unitary, or idempotent. The definition includes ; if , the index set is empty and the scalar inverse of zero is zero.
QAlgorithms.Papers.Independent.Extend50.P27.fixedCount
For every natural number , including , and every permutation of , this defines the number of positions fixed by : . When , the value is .
QAlgorithms.Papers.Independent.Extend50.P27.fullMatrix
For every natural number , is the real matrix indexed by Young diagrams having exactly cells and first-column length at most . At equal indices , its entry counts the indices for which row of is shorter than row , using zero-based row indices and zero lengths for absent rows. At distinct indices its entry is one if each diagram has exactly one cell absent from the other, and zero otherwise. For , it is a one-by-one zero matrix.
QAlgorithms.Papers.Independent.Extend50.P27.heightCorrection
For all natural numbers , is the real diagonal matrix indexed by Young diagrams with cells and first-column length at most , where is truncated at zero. Its diagonal entry at is one if the first-column length of is strictly less than , and zero otherwise; all off-diagonal entries are zero. When , the sole index is the empty diagram, and its diagonal entry is one if and zero if .
QAlgorithms.Papers.Independent.Extend50.P27.incidence
For all natural numbers , the real matrix has rows indexed by Young diagrams with cells and first-column length at most , and columns indexed by Young diagrams with cells and first-column length at most . Here is natural-number subtraction, so it equals zero when . Its entry is one precisely when and , and zero otherwise. When , both index sets consist of the empty diagram and the sole entry is zero.
QAlgorithms.Papers.Independent.Extend50.P27.includePermutation
For every natural number , including , and every permutation of , this defines the permutation of that agrees with on the first positions and fixes the last position: for , and . When , this is the identity permutation of the singleton set.
QAlgorithms.Papers.Independent.Extend50.P27.inducedAction
For natural numbers , a Young diagram with cells and at most rows, and , this defines a matrix indexed by pairs with and . Here, using the selected numbering of the cells of , let preserve rows and columns, set , and put and . With the selected orthonormal basis of , define , where . For a row and column , form , with products interpreted as composition, the rightmost permutation acting first. If , the matrix entry is ; otherwise it is . Swapping with itself means the identity. The case is included.
QAlgorithms.Papers.Independent.Extend50.P27.inductionMultiplicity
For natural numbers , a Young diagram with cells and at most rows, and a Young diagram with cells and at most rows, this defines a complex dimension. For each diagram with cells, use its selected numbering to obtain row-preserving and column-preserving permutation sets , set , and let . Put , and define in the selected orthonormal basis, with . For , define , indexed by , by setting its -entry to if fixes , and to otherwise. The defined number is . The case is included whenever the diagrams exist.
QAlgorithms.Papers.Independent.Extend50.P27.irrepDim
For natural numbers , and a Young diagram consisting of cells and having at most rows, this defines a natural number as follows. Let be the permutation group on , use the cell-to-position bijection selected in the definition to number the cells of , and let be the permutations preserving, respectively, the row and column of every numbered cell. Form the matrix , indexed by , with entries , where the signs are regarded as complex numbers. The defined number is , with acting on the complex Euclidean space indexed by . Zero values of are allowed whenever such a diagram exists; for , the diagram is empty, is a singleton, and this dimension is .
QAlgorithms.Papers.Independent.Extend50.P27.lambdaValue
For natural numbers , a Young diagram of size and a Young diagram of size , each with first-column length at most , the definition gives the real number . To define its dimensions, for each such diagram of size , fix the supplied cell numbering by , let be the permutations preserving row and column coordinates, and set . Let , , and its orthogonal projection. With and the chosen standard orthonormal basis of , put . On words of length over , put . The number is the complex dimension of all matrices satisfying for every . Arithmetic in the displayed formula is real arithmetic, with zero denominators yielding zero. No predecessor relation is assumed. The definition includes ; admits no of the required size.
QAlgorithms.Papers.Independent.Extend50.P27.liftAlice
For arbitrary natural numbers and any complex matrix indexed by functions , this defines a complex matrix on pairs , with , by
No positivity or normalization is required of . The definition includes , and for its matrix index set is empty.
QAlgorithms.Papers.Independent.Extend50.P27.maxRowSum
For any finite type , equipped with a finite enumeration, and any real matrix , this defines the real number . If is nonempty, this is the largest absolute row sum. If is empty, the set whose supremum is taken is empty, and the defined real value is .
QAlgorithms.Papers.Independent.Extend50.P27.optimalFilter
For arbitrary natural numbers , put , let , and let consist of Young diagrams with boxes and at most rows. The input is any real function . The matrices and dimensions used in the definition are obtained as follows. For each diagram , use the chosen bijection between its boxes and ; let be the permutations preserving, respectively, each box’s row and column. On , define
let , , and let be its orthogonal projection. Write , , and let be the matrix of the compressed operator in the chosen standard orthonormal basis of . Define
Here ranges over matrices from to . On the signal index set , write . For , set
and, for , set
The defined filter is the complex matrix
All scalar coefficients in this expression are computed in and then embedded in . No normalization, positivity, or eigenvector condition is imposed on ; divisions and inverses are total, with division by zero equal to zero, and empty sums equal zero.
QAlgorithms.Papers.Independent.Extend50.P27.optimalResourceOperator
For arbitrary natural numbers , let and let consist of Young diagrams with boxes and at most rows. For each such , use the chosen numbering of its boxes by , and let consist of the permutations preserving row and column coordinates, respectively. Let be the range of the matrix
put , and let be the orthogonal projection onto . For , put , and let be the matrix of in its chosen standard orthonormal basis. Define on , and set
where is linear. For any real function , the definition returns the complex matrix on
with each real coefficient embedded in . There are no conditions on , and the definition itself asserts no positivity or normalization of . Zero denominators give zero coefficients, empty sums give zero, and is included with , even when .
QAlgorithms.Papers.Independent.Extend50.P27.pbtBellEmbedding
For arbitrary natural numbers , the definition gives a complex matrix with rows indexed by pairs , where and , and columns indexed by . Its entries are
The nonzero entry is a real scalar embedded in . No positive-dimension hypothesis is required and no isometry property is asserted. For , the column index set is a singleton and the prefix condition is vacuous; for , there are no row indices, and the scalar inverse of is nevertheless defined as zero.
QAlgorithms.Papers.Independent.Extend50.P27.pbtDualObjective
For natural numbers and any complex matrix indexed by pairs , where and , form the matrix on the function indices by
The defined objective is
Thus the supremum is over the real spectrum of this partial trace. No Hermitian or feasibility hypothesis is imposed on . The real supremum uses the total convention that an empty or unbounded-above set has supremum zero, and division by zero is zero. In particular, the objective is zero for ; is also included.
QAlgorithms.Papers.Independent.Extend50.P27.pbtDualValues
For natural numbers , this is the set of real numbers for which there exists a Hermitian complex matrix on , where , satisfying for every , and
Here , and precisely when , , and for every , with all other entries zero. Positive semidefiniteness is denoted by . Inverses and division by zero are zero, and real suprema use zero for empty or unbounded-above sets. The definition includes ; for , the resulting set is .
QAlgorithms.Papers.Independent.Extend50.P27.pbtGammaValue
For natural numbers , a Young diagram with cells and first-column length at most , and a Young diagram with cells and the same height bound, the defined real number is . Here, for either diagram of size , use its fixed numbering of cells by , and let preserve the row and column coordinates of those cells. Define , , and . Let be the orthogonal projection onto this range, the matrix with entries , and its chosen standard orthonormal basis. Define , and on words . Then is the complex dimension of the space of matrices satisfying for every . All natural-number dimensions in the fraction are converted to real numbers. No predecessor relation between and is required, and division by a zero denominator has value zero. The parameter may be zero; when , no diagram of the required positive size exists.
QAlgorithms.Papers.Independent.Extend50.P27.pbtIntertwinerSpace
For arbitrary types , with and finite and equipped with finite enumerations, and arbitrary functions and , this defines the complex linear subspace . No group structure on , representation identities, or unitarity assumptions on are required. If is empty, the condition is vacuous and the subspace contains every matrix; empty or are also permitted.
QAlgorithms.Papers.Independent.Extend50.P27.pbtOptimalFidelity
For natural numbers , put , using subtraction truncated at zero. This defines the real supremum of the values
over all complex matrices indexed by and families indexed by satisfying , , for every , and . Here has entry when the additional coordinates agree and zero otherwise, while when , , and for every , and is zero otherwise. The definition takes a supremum and does not assert that it is attained. In particular, and both use , hence one selected position. Division by zero is zero, and the value is zero for .
QAlgorithms.Papers.Independent.Extend50.P27.pbtSignal
For natural numbers and a selected position , this defines a complex matrix indexed by pairs , where and , with entries
The inverse is taken in , where . When , the agreement condition away from is vacuous; when , the matrix index set is empty.
QAlgorithms.Papers.Independent.Extend50.P27.physicalProjector
For natural numbers , let be Young diagrams of sizes , respectively, with first-column lengths at most . For a diagram of size , use its fixed cell numbering and let preserve cell rows and columns. Set , , , and let be its orthogonal projection. Write , , and, in the chosen standard orthonormal basis of , . Let be the complex dimension of the matrix space , and define . On , let . Let equal if and , and zero otherwise, and put . The defined matrix is , where , viewed as a complex scalar in this expression. No predecessor relation is assumed. Zero inverses and zero-denominator quotients are zero, so makes the defined matrix zero. The definition itself asserts no idempotence or orthogonality property.
QAlgorithms.Papers.Independent.Extend50.P27.positiveInverse
For any finite type equipped with decidable equality, including an empty type, and any complex matrix indexed by , the definition applies the total real continuous functional calculus to with the scalar function
For Hermitian , this replaces each nonzero eigenvalue by its reciprocal and leaves each zero eigenvalue at zero; negative eigenvalues are also inverted. No Hermitian, positive semidefinite, or invertibility hypothesis is imposed. For a non-Hermitian matrix, the real continuous functional calculus used here returns its default value, the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P27.powerEffects
For natural numbers , arbitrary functions from the Young diagrams of size and first-column length at most to , and , the definition gives on , with real scalars converted to complex scalars. The complete constructions are as follows. For each diagram of size , use its fixed cell numbering, let preserve rows and columns, and define , , , and its orthogonal projection . Put , , and in the chosen standard orthonormal basis of . Let , and . Set , , and . For diagrams of size , define , , and . Then , where means cell containment with exactly one added cell and powers use the total real-power function, while . No sign or nonzero conditions are imposed on or ; in particular, gives exponent zero. Empty sums are zero, and all inverses at zero are zero.
QAlgorithms.Papers.Independent.Extend50.P27.powerIterate
For any finite type , including the empty type, any real matrix indexed by , and any initial function , the definition produces functions for every natural number by
No nonnegativity, normalization, or nonzero-denominator assumption is imposed. In particular, if the denominator at an update is zero, every coordinate of the next iterate is zero, since division by zero is defined to be zero. Empty index sets and are included.
QAlgorithms.Papers.Independent.Extend50.P27.powerOutput
For any finite type , including the empty type, any real matrix on , any initial function , and any natural number , define and
The returned function is
Thus the final multiplication is returned without another division by its coordinate sum; at , the output is . No sign or normalization conditions are imposed, and every division by zero in the recursive iterates gives zero.
QAlgorithms.Papers.Independent.Extend50.P27.primalValues
For natural numbers , this is the set of real numbers for which there exist a complex matrix on and complex matrices on , one for each , such that
Here when , and is zero otherwise; has entry exactly when , , and for all , and has entry zero otherwise. Positive semidefiniteness is denoted by . Division by zero is zero; for , the set is . The definition also includes .
QAlgorithms.Papers.Independent.Extend50.P27.projectorSeed
For natural numbers and a Young diagram having exactly cells and first-column length at most , this defines a complex matrix on pairs , where and , by
The matrix in this formula is defined as follows: fix the chosen bijection numbering the cells of by , let be the permutations preserving, respectively, the row and column of every numbered cell, and form the matrix on with entries . Let be the range of multiplication by , let be its orthogonal projection, put , and define , where . Then
where . The definition permits , with empty restrictions and ; for , the matrix defining the seed has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P27.removableCount
For any Young diagram , let denote its number of cells and let denote the length of its row with index , with row indices starting at zero and absent rows having length zero. The natural number is
For the empty diagram this count is zero.
QAlgorithms.Papers.Independent.Extend50.P27.resourceState
For arbitrary natural numbers , let . Given any complex matrix indexed by , the definition returns the vector in the complex Euclidean space indexed by whose coordinates are
The real square root is embedded in before division. No assumption on , and no assertion that this vector has norm one, is included. Division by zero is defined to be zero; when , is a singleton and the denominator is , including when .
QAlgorithms.Papers.Independent.Extend50.P27.restrictedAction
For natural numbers , a Young diagram with cells and at most rows, and a permutation of , this defines a complex square matrix as follows. Number the cells of by using the selected bijection, let preserve cell rows and columns, and form . Let , let , and choose the orthonormal basis selected in the definition. Extend to by fixing position , and let . The defined matrix has entries , for . The case is included, with the identity on one position.
QAlgorithms.Papers.Independent.Extend50.P27.restrictionMultiplicity
For natural numbers , a Young diagram with cells and at most rows, and a Young diagram with cells and at most rows, this defines the following complex dimension. For either diagram , with cells, use its selected numbering to define row-preserving and column-preserving permutation sets , the matrix , and the space . Write and, in the selected orthonormal basis , set , where . For , let agree with on the first positions and fix . The defined natural number is . The case is included whenever the diagrams exist.
QAlgorithms.Papers.Independent.Extend50.P27.rowGram
For all natural numbers , let be the real matrix whose rows are Young diagrams with cells and first-column length at most , whose columns are Young diagrams with cells and the same column bound, and whose entry is one exactly when 's cells are contained in 's with exactly one additional cell in , and zero otherwise. The matrix is ; thus its entry counts the column diagrams satisfying that condition with both and . Subtraction is truncated at zero, and for this is a one-by-one zero matrix.
QAlgorithms.Papers.Independent.Extend50.P27.spectralFidelity
For all natural numbers , let be the real matrix indexed by Young diagrams having cells and first-column length at most . Its diagonal entry at counts indices where row is shorter than row , with zero-based rows and absent rows of length zero; its off-diagonal entry at is one if each diagram has exactly one cell absent from the other, and zero otherwise. Then
where the real supremum of an empty spectrum is zero. Both parameters may be zero: division by zero is defined to be zero, so the value is zero when , and it is also zero when .
QAlgorithms.Papers.Independent.Extend50.P27.squareRootEffects
For arbitrary natural numbers and any , let and . For every , define the complex matrix
Put , and apply the total real continuous functional calculus to obtain , where
The returned matrix is . On positive eigenvalues of , acts by the reciprocal square root, and on its zero eigenvalues it acts by zero. No completeness assertion for this family is part of the definition. Both and are included; division and inversion at zero give zero, and for the signal index set is empty.
QAlgorithms.Papers.Independent.Extend50.P27.teleportEntry
For any Young diagrams and , the real number is defined by
where is the number of cells of , and is its row length at index , starting at zero and equal to zero for absent rows. In particular, the entry is zero whenever either diagram is empty.
QAlgorithms.Papers.Independent.Extend50.P27.teleportMatrix
For all natural numbers , including zero, let be the set of Young diagrams with exactly cells and first-column length at most . The real matrix has rows and columns indexed by . Its entry at is the number of indices for which row of is shorter than row if ; otherwise it is one if each diagram has exactly one cell absent from the other, and zero otherwise. Row indices start at zero, with absent rows having length zero. If , this is a one-by-one zero matrix; if , its index set is empty.
QAlgorithms.Papers.Independent.Extend50.P27.tensorMultiplicity
For natural numbers and a Young diagram with cells and at most rows, this defines the complex dimension of a matrix subspace. To specify it, number the cells using the selected bijection with , let preserve their rows and columns, and set . Let , let , and let be the orthonormal basis selected in the definition. For , let have entries , and define , where is orthogonal projection onto . On the word set , define . The defined natural number is . Zero parameters are included whenever exists; in particular, when , contains the unique empty word.
QAlgorithms.Papers.Independent.Extend50.P27.topValue
For any finite type equipped with decidable equality and any real matrix with rows and columns indexed by , is the real supremum of the spectrum of over , namely the set of real for which is not invertible. No symmetry or nonempty-index assumption is imposed. If this real spectrum is empty, the real supremum used here is zero; in particular, the value is zero when the index type is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.