Definitions for Square-root measurements and degradation of the resource state in port-based teleportation scheme
DefinitionQAlgorithms_Papers_Independent_Extend50_P04The objects the formalized statements of Square-root measurements and degradation of the resource state in port-based teleportation scheme (arXiv:2105.14886) are stated in. Each was checked against the paper by a blind read-back and a moderator.
Alice: PDF p.5: Alice's N ports followed by input A0.Whole: PDF pp.14,19: Alice/input followed by Bob/reference, retaining every subsystem.pbtBellProjector: PDF p.5: normalized Bell projector on selected port/input, identity on spectators.pbtSignal: PDF p.5, (5): actual signal state; the spectator normalization is d^{-(N-1)}.signalSum: PDF p.5, (7): signal sum, of trace N rather than one.inverseRoot: PDF pp.5,9: spectral inverse square root, extended by zero on the kernel.supportEffect: PDF pp.5,9, (7),(29): support-only effect, before the nullspace completion.pbtSupportComplement: PDF p.5, (8): missing support projection.fullEffect: PDF p.5, (9): full POVM effect, including an equal share of the missing projection.positiveRoot: PDF pp.10,14: positive functional-calculus square root, never an arbitrary square root.transposeInput: PDF p.6, (13): transpose the input factor only, without complex conjugation.pbtInputSwap: PDF p.6: the physical swap of Alice port a with the input.transposedSwap: PDF p.6, (14): partially transposed swap on the actual tensor registers.portPermutation: PDF p.6, (11): port permutation, with identity on input.pbtCollectiveAction: PDF p.6, (10): U on every Alice port and conjugate U on input.extendInput: PDF pp.5,22: extend an operation on Alice's N ports by identity on input.deletePort: PDF pp.14,22: spectator coordinates in increasing order, deleting selected port a.extendUnused: PDF pp.22-24: embed the (N-1)-port operation only on unconsumed Alice ports.initialState: PDF pp.4,14: Bell input/reference and resource (O tensor I)|Phi+>, in all registers.idealState: PDF p.14, (73), p.22: ideal pairings, with O on the unused Alice ports only.pbtLuedersBranch: PDF p.14, (74): actual unnormalized branch from the full Lueders instrument.normalizedBranch: PDF pp.14,19: normalize a nonzero branch; the zero vector at zero probability carries zero weight.recyclingFidelity: PDF p.14, (75): Born-weighted UNSQUARED overlaps of entire ideal/output states. The physical source operations have Tr(O dagger O)=d^N, making initial/ideal vectors unit vectors.nonoptimalFidelity: PDF p.14: unoptimized one-round resource has O_N=I and O_(N-1)=I.irrepDimension: PDF pp.7-8: symmetric-group irrep dimension from the actual regular Young ideal.pbtOneBoxSuccessor: PDF p.7: one-box branching means containment between diagrams of the specified successive sizes.forbiddenDimension: PDF pp.7,10: removed height-(d+1) successor dimension, zero when no such shape occurs. Summing the independently constructed Specht dimensions avoids an unspecified theta parameter.successorSum: PDF pp.11-12: sum over physical successors only; the forbidden successor is not included.overlapFormula: PDF p.12, (57): explicit two-regime full-space trace expression.qubitBracket: PDF pp.12-13: binomial bracket; all coefficient subtraction occurs in the reals.qubitOverlapSum: PDF pp.12-13: sum with k=floor((N-1)/2); n=N-1 is used to avoid truncated N-1.resourceOperation: PDF p.16, (84): resource operation from nonnegative normalized shape coefficients.teleportationObjective: PDF p.5, (6): physical entanglement fidelity objective, not the recycling root fidelity.IsOptimalCoefficients: PDF pp.5,16,21: coefficients selected by the actual optimized deterministic channel objective. No unspecified teleportation matrix is supplied. The zero-port case is the normalized empty resource.resourceState: PDF p.17, (89): normalized entire bipartite resource, retaining both halves.resourceFidelity: PDF pp.17,26: unsquared pure-state overlap between unoptimized and optimized resources.qubitRaw: PDF pp.17,25: raw trigonometric entries (87)/(E5), before Euclidean normalization. The N=0 extension is the single empty shape, not division by sin(0).qubitVector: PDF p.25: the explicit Euclidean normalization required after (E5).qubitMatrix: PDF p.25, (E2)-(E4): concrete tridiagonal matrix, including the printed 1/4 scale. At the one-dimensional N=1 boundary use the first diagonal entry 1/4.qubitCoefficient: PDF p.17: invalid successor coefficients are zero; valid terminal coefficients are retained.qubitCoefficients: PDF pp.16-17: in dimension two a physical shape is uniquely labelled by its second-row length.rowCoefficient: PDF p.17, (90): read the coefficient of a given second-row length from a shape vector.spinFormula: PDF p.26, (G6): twice-spin t=2j indexing retains parity and integral factorial arguments. The real exponent N-2 avoids truncated natural subtraction at N=1.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_SchurCharacters
/-!
Statements from Studzinski, Mozrzymas, Kopszak, arXiv:2105.14886v4.
All page numbers below are PDF pages. Local constructions use the fixed computational basis.
`n` in recycling statements means N-1, so there is always at least one port.
Source corrections and deferred PRIR/multiround targets are recorded in the unit artifacts.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P04
open QAlgorithms
open scoped Matrix ComplexConjugate ComplexOrder
attribute [local instance] Classical.propDecidable
/-- PDF p.5: Alice's N ports followed by input A0. -/
abbrev Alice (d N : ℕ) := (Fin N → Fin d) × Fin d
/-- PDF pp.14,19: Alice/input followed by Bob/reference, retaining every subsystem. -/
abbrev Whole (d N : ℕ) := Alice d N × Alice d N
/-- PDF p.5: normalized Bell projector on selected port/input, identity on spectators. -/
def pbtBellProjector (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
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 : ℂ)⁻¹ else 0
/-- PDF p.5, (5): actual signal state; the spectator normalization is d^{-(N-1)}. -/
def pbtSignal (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
((d : ℂ) ^ (N - 1))⁻¹ • pbtBellProjector d N a
/-- PDF p.5, (7): signal sum, of trace N rather than one. -/
def signalSum (d N : ℕ) : Matrix (Alice d N) (Alice d N) ℂ :=
∑ a, pbtSignal d N a
/-- PDF pp.5,9: spectral inverse square root, extended by zero on the kernel. -/
def inverseRoot (d N : ℕ) : Matrix (Alice d N) (Alice d N) ℂ :=
cfc (fun x : ℝ => (Real.sqrt x)⁻¹) (signalSum d N)
/-- PDF pp.5,9, (7),(29): support-only effect, before the nullspace completion. -/
def supportEffect (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
inverseRoot d N * pbtSignal d N a * inverseRoot d N
/-- PDF p.5, (8): missing support projection. -/
def pbtSupportComplement (d N : ℕ) : Matrix (Alice d N) (Alice d N) ℂ :=
1 - ∑ a, supportEffect d N a
/-- PDF p.5, (9): full POVM effect, including an equal share of the missing projection. -/
def fullEffect (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
supportEffect d N a + (N : ℂ)⁻¹ • pbtSupportComplement d N
/-- PDF pp.10,14: positive functional-calculus square root, never an arbitrary square root. -/
def positiveRoot {ι : Type*} [Fintype ι] [DecidableEq ι] (A : Matrix ι ι ℂ) : Matrix ι ι ℂ :=
cfc Real.sqrt A
/-- PDF p.6, (13): transpose the input factor only, without complex conjugation. -/
def transposeInput {d N : ℕ} (A : Matrix (Alice d N) (Alice d N) ℂ) :
Matrix (Alice d N) (Alice d N) ℂ :=
fun x y => A (x.1, y.2) (y.1, x.2)
/-- PDF p.6: the physical swap of Alice port a with the input. -/
def pbtInputSwap (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
fun x y => if x = (Function.update y.1 a y.2, y.1 a) then 1 else 0
/-- PDF p.6, (14): partially transposed swap on the actual tensor registers. -/
def transposedSwap (d N : ℕ) (a : Fin N) : Matrix (Alice d N) (Alice d N) ℂ :=
transposeInput (pbtInputSwap d N a)
/-- PDF p.6, (11): port permutation, with identity on input. -/
def portPermutation (d N : ℕ) (pi : Equiv.Perm (Fin N)) : Matrix (Alice d N) (Alice d N) ℂ :=
Matrix.kronecker (Schur.tensorPermutation d N pi) 1
/-- PDF p.6, (10): U on every Alice port and conjugate U on input. -/
def pbtCollectiveAction (d N : ℕ) (U : Matrix (Fin d) (Fin d) ℂ) :
Matrix (Alice d N) (Alice d N) ℂ :=
fun x y => (∏ i, U (x.1 i) (y.1 i)) * star (U x.2 y.2)
/-- PDF pp.5,22: extend an operation on Alice's N ports by identity on input. -/
def extendInput {d N : ℕ} (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) :
Matrix (Alice d N) (Alice d N) ℂ :=
Matrix.kronecker O 1
/-- PDF pp.14,22: spectator coordinates in increasing order, deleting selected port a. -/
def deletePort {d n : ℕ} (a : Fin (n + 1)) (x : (Fin (n + 1) → Fin d)) : (Fin n → Fin d) :=
fun i => x (a.succAbove i)
/-- PDF pp.22-24: embed the (N-1)-port operation only on unconsumed Alice ports. -/
def extendUnused {d n : ℕ} (a : Fin (n + 1)) (O : Matrix ((Fin n → Fin d)) ((Fin n → Fin d)) ℂ) :
Matrix (Alice d (n + 1)) (Alice d (n + 1)) ℂ :=
fun x y => if x.1 a = y.1 a ∧ x.2 = y.2
then O (deletePort a x.1) (deletePort a y.1) else 0
/-- PDF pp.4,14: Bell input/reference and resource (O tensor I)|Phi+>, in all registers. -/
def initialState (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) :
EuclideanSpace ℂ (Whole d N) :=
WithLp.toLp 2 fun x => if x.1.2 = x.2.2
then O x.1.1 x.2.1 / (Real.sqrt ((d : ℝ) ^ (N + 1)) : ℂ) else 0
/-- PDF p.14, (73), p.22: ideal pairings, with O on the unused Alice ports only. -/
def idealState (d n : ℕ) (a : Fin (n + 1)) (O : Matrix ((Fin n → Fin d)) ((Fin n → Fin d)) ℂ) :
EuclideanSpace ℂ (Whole d (n + 1)) :=
WithLp.toLp 2 fun x => if x.1.1 a = x.1.2 ∧ x.2.1 a = x.2.2 then
O (deletePort a x.1.1) (deletePort a x.2.1) /
((d : ℂ) * (Real.sqrt ((d : ℝ) ^ n) : ℂ)) else 0
/-- PDF p.14, (74): actual unnormalized branch from the full Lueders instrument. -/
def pbtLuedersBranch (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) (a : Fin N) :
EuclideanSpace ℂ (Whole d N) :=
act (Matrix.kronecker (positiveRoot (fullEffect d N a)) 1) (initialState d N O)
/-- PDF pp.14,19: normalize a nonzero branch; the zero vector at zero probability carries zero weight. -/
def normalizedBranch (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) (a : Fin N) :
EuclideanSpace ℂ (Whole d N) :=
((‖pbtLuedersBranch d N O a‖ : ℂ)⁻¹) • pbtLuedersBranch d N O a
/-- PDF p.14, (75): Born-weighted UNSQUARED overlaps of entire ideal/output states.
The physical source operations have Tr(O dagger O)=d^N, making initial/ideal vectors unit vectors. -/
def recyclingFidelity (d n : ℕ) (O : Matrix ((Fin (n + 1) → Fin d)) ((Fin (n + 1) → Fin d)) ℂ)
(R : Matrix ((Fin n → Fin d)) ((Fin n → Fin d)) ℂ) : ℝ :=
∑ a : Fin (n + 1), ‖pbtLuedersBranch d (n + 1) O a‖ ^ 2 *
‖inner ℂ (idealState d n a R) (normalizedBranch d (n + 1) O a)‖
/-- PDF p.14: unoptimized one-round resource has O_N=I and O_(N-1)=I. -/
def nonoptimalFidelity (d n : ℕ) : ℝ := recyclingFidelity d n 1 1
/-- PDF pp.7-8: symmetric-group irrep dimension from the actual regular Young ideal. -/
def irrepDimension {d N : ℕ} (mu : Schur.Partition d N) : ℕ :=
Module.finrank ℂ (Schur.spechtSpace mu)
/-- PDF p.7: one-box branching means containment between diagrams of the specified successive sizes. -/
def pbtOneBoxSuccessor {d e n : ℕ} (alpha : Schur.Partition d n) (mu : Schur.Partition e (n + 1)) : Prop :=
alpha.val ≤ mu.val
/-- PDF pp.7,10: removed height-(d+1) successor dimension, zero when no such shape occurs.
Summing the independently constructed Specht dimensions avoids an unspecified theta parameter. -/
def forbiddenDimension {d n : ℕ} (alpha : Schur.Partition d n) : ℝ :=
∑ theta : Schur.Partition (d + 1) (n + 1),
if pbtOneBoxSuccessor alpha theta ∧ theta.val.colLen 0 = d + 1 then irrepDimension theta else 0
/-- PDF pp.11-12: sum over physical successors only; the forbidden successor is not included. -/
def successorSum {d n : ℕ} (alpha : Schur.Partition d n) : ℝ :=
∑ nu : Schur.Partition d (n + 1),
if pbtOneBoxSuccessor alpha nu then Real.sqrt (Schur.schurDimension nu * irrepDimension nu) else 0
/-- PDF p.12, (57): explicit two-regime full-space trace expression. -/
def overlapFormula (d n : ℕ) : ℝ :=
∑ alpha : Schur.Partition d n,
if alpha.val.colLen 0 < d then (successorSum alpha) ^ 2 / (n + 1 : ℝ)
else Real.sqrt (irrepDimension alpha) * (successorSum alpha) ^ 2 /
(Real.sqrt ((n + 1 : ℝ) * irrepDimension alpha - forbiddenDimension alpha) *
Real.sqrt (n + 1 : ℝ))
/-- PDF pp.12-13: binomial bracket; all coefficient subtraction occurs in the reals. -/
def qubitBracket (N l : ℕ) : ℝ :=
((N : ℝ) - 2 * l + 1) * Real.sqrt ((Nat.choose (N + 1) l : ℝ) / (N + 1 : ℝ)) +
((N : ℝ) - 2 * l - 1) * Real.sqrt ((Nat.choose (N + 1) (l + 1) : ℝ) / (N + 1 : ℝ))
/-- PDF pp.12-13: sum with k=floor((N-1)/2); n=N-1 is used to avoid truncated N-1. -/
def qubitOverlapSum (n : ℕ) : ℝ :=
∑ l ∈ Finset.range (n / 2 + 1),
Real.sqrt (((n + 2 : ℝ) - l) * (l + 1 : ℝ) / (n + 2 : ℝ)) *
qubitBracket (n + 1) l ^ 2
/-- PDF p.16, (84): resource operation from nonnegative normalized shape coefficients. -/
def resourceOperation (d N : ℕ) (v : Schur.Partition d N → ℝ) :
Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ :=
(Real.sqrt ((d : ℝ) ^ N) : ℂ) • ∑ mu,
((v mu / Real.sqrt (irrepDimension mu * Schur.schurDimension mu) : ℝ) : ℂ) •
Schur.isotypicProjector mu
/-- PDF p.5, (6): physical entanglement fidelity objective, not the recycling root fidelity. -/
def teleportationObjective (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ)
(M : Fin N → Matrix (Alice d N) (Alice d N) ℂ) : ℝ :=
(∑ a, ((extendInput O)ᴴ * M a * extendInput O * pbtSignal d N a).trace.re) / (d : ℝ) ^ 2
/-- PDF pp.5,16,21: coefficients selected by the actual optimized deterministic channel objective.
No unspecified teleportation matrix is supplied. The zero-port case is the normalized empty resource. -/
def IsOptimalCoefficients (d N : ℕ) (v : Schur.Partition d N → ℝ) : Prop :=
(∀ mu, 0 ≤ v mu) ∧ (∑ mu, v mu ^ 2) = 1 ∧
(0 < N → ∀ (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ)
(M : Fin N → Matrix (Alice d N) (Alice d N) ℂ),
(Oᴴ * O).trace = (d : ℂ) ^ N →
(∀ a, (M a).PosSemidef) → (∑ a, M a) = 1 →
teleportationObjective d N O M ≤
teleportationObjective d N (resourceOperation d N v) (fullEffect d N))
/-- PDF p.17, (89): normalized entire bipartite resource, retaining both halves. -/
def resourceState (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) :
EuclideanSpace ℂ ((Fin N → Fin d) × (Fin N → Fin d)) :=
WithLp.toLp 2 fun x => O x.1 x.2 / (Real.sqrt ((d : ℝ) ^ N) : ℂ)
/-- PDF pp.17,26: unsquared pure-state overlap between unoptimized and optimized resources. -/
def resourceFidelity (d N : ℕ) (O : Matrix ((Fin N → Fin d)) ((Fin N → Fin d)) ℂ) : ℝ :=
‖inner ℂ (resourceState d N 1) (resourceState d N O)‖
/-- PDF pp.17,25: raw trigonometric entries (87)/(E5), before Euclidean normalization.
The N=0 extension is the single empty shape, not division by sin(0). -/
def qubitRaw (N : ℕ) (l : Fin (N / 2 + 1)) : ℝ :=
if N = 0 then 1 else
if N % 2 = 0 then
(-1 : ℝ) ^ (N / 2 - l.val) *
(Real.sin ((((N : ℝ) + 2) / 2 - l.val) * N * Real.pi / (N + 2)) -
Real.sin (((N : ℝ) / 2 - l.val) * N * Real.pi / (N + 2))) /
Real.sin ((N : ℝ) * Real.pi / (N + 2))
else
(-1 : ℝ) ^ ((N - 1) / 2 - l.val) *
Real.sin ((((N : ℝ) + 1) / 2 - l.val) * N * Real.pi / (N + 2)) /
Real.sin ((N : ℝ) * Real.pi / (N + 2))
/-- PDF p.25: the explicit Euclidean normalization required after (E5). -/
def qubitVector (N : ℕ) (l : Fin (N / 2 + 1)) : ℝ :=
qubitRaw N l / Real.sqrt (∑ j, qubitRaw N j ^ 2)
/-- PDF p.25, (E2)-(E4): concrete tridiagonal matrix, including the printed 1/4 scale.
At the one-dimensional N=1 boundary use the first diagonal entry 1/4. -/
def qubitMatrix (N : ℕ) : Matrix (Fin (N / 2 + 1)) (Fin (N / 2 + 1)) ℝ :=
fun i j => (1 / 4 : ℝ) * (if i = j then
2 - (if i.val = 0 then 1 else 0) - (if N % 2 = 0 ∧ i.val = N / 2 then 1 else 0)
else if i.val + 1 = j.val ∨ j.val + 1 = i.val then 1 else 0)
/-- PDF p.17: invalid successor coefficients are zero; valid terminal coefficients are retained. -/
def qubitCoefficient (N l : ℕ) : ℝ :=
if h : l < N / 2 + 1 then qubitVector N ⟨l, h⟩ else 0
/-- PDF pp.16-17: in dimension two a physical shape is uniquely labelled by its second-row length. -/
def qubitCoefficients (N : ℕ) (mu : Schur.Partition 2 N) : ℝ :=
qubitCoefficient N (mu.val.rowLen 1)
/-- PDF p.17, (90): read the coefficient of a given second-row length from a shape vector. -/
def rowCoefficient (N : ℕ) (v : Schur.Partition 2 N → ℝ) (l : ℕ) : ℝ :=
∑ mu, if mu.val.rowLen 1 = l then v mu else 0
/-- PDF p.26, (G6): twice-spin t=2j indexing retains parity and integral factorial arguments.
The real exponent N-2 avoids truncated natural subtraction at N=1. -/
def spinFormula (N : ℕ) : ℝ :=
Real.sqrt ((N.factorial : ℝ) / ((2 : ℝ) ^ ((N : ℝ) - 2) * (N + 2 : ℝ))) *
∑ t ∈ (Finset.range (N + 1)).filter (fun t => t % 2 = N % 2),
(t + 1 : ℝ) * Real.sin (Real.pi * (t + 1 : ℝ) / (N + 2 : ℝ)) /
Real.sqrt ((((N - t) / 2).factorial : ℝ) * (((N + t) / 2 + 1).factorial : ℝ))
/-! Sanity examples pin indexing and total-function boundary behavior; no theorem proofs. -/
example {d N : ℕ} (M : Matrix (Alice d N) (Alice d N) ℂ) :
transposeInput (transposeInput M) = M := rfl
example (d N : ℕ) (a : Fin N) :
fullEffect d N a = supportEffect d N a + (N : ℂ)⁻¹ • pbtSupportComplement d N := rfl
example {d : ℕ} (x : (Fin 1 → Fin d)) (i : Fin 0) : deletePort (0 : Fin 1) x i = x ((0 : Fin 1).succAbove i) := rfl
example {d : ℕ} (O : Matrix ((Fin 0 → Fin d)) ((Fin 0 → Fin d)) ℂ)
(x : Whole d 1) :
idealState d 0 (0 : Fin 1) O x =
if x.1.1 0 = x.1.2 ∧ x.2.1 0 = x.2.2 then
O (deletePort 0 x.1.1) (deletePort 0 x.2.1) / (d : ℂ) else 0 := by
simp [idealState]
example : qubitRaw 0 (0 : Fin 1) = 1 := by simp [qubitRaw]
example : qubitCoefficient 1 1 = 0 := by simp [qubitCoefficient]
example : qubitMatrix 1 (0 : Fin 1) 0 = (1 / 4 : ℝ) := by norm_num [qubitMatrix]
end QAlgorithms.Papers.Independent.Extend50.P04
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P04.Alice
For any natural numbers , including zero, is the set of pairs , where and . If , this set is empty. If , the function is the unique empty function, so the set is naturally identified with .
QAlgorithms.Papers.Independent.Extend50.P04.IsOptimalCoefficients
For arbitrary natural numbers and a real function on the set of Young diagrams with cells and first column length at most , this predicate requires for every , , and, if , the following inequality for every complex matrix on and every family of complex matrices on :
Here
where is applied by continuous functional calculus. For , the entry is if , , and for every , and is zero otherwise; the exponent uses subtraction truncated at zero. The matrix on the right is
Here exactly when and is zero otherwise. Using the fixed numbering of ’s cells, let be its row-preserving and column-preserving permutations, and let be the span in the complex Euclidean space indexed by of for . Then , with and the orthogonal projection onto , and is the number of fillings of by weakly increasing along rows and strictly increasing down columns. Real scalars are embedded in where needed; square roots and inverses are total, with for and . When , the comparison condition is vacuous, while nonnegativity and the sum-of-squares condition still apply. When , the coefficient index set is empty, so the required sum-of-squares equality cannot hold.
QAlgorithms.Papers.Independent.Extend50.P04.Whole
For any natural numbers , including zero, is the set of ordered pairs , where and . If , this set is empty; if , both functions are empty and the set is naturally identified with .
QAlgorithms.Papers.Independent.Extend50.P04.deletePort
For arbitrary natural numbers , an index , and a word , this defines the word obtained by omitting coordinate while preserving the order of the remaining coordinates:
For , the result is the unique empty word. For , no such input word exists, since its domain has elements.
QAlgorithms.Papers.Independent.Extend50.P04.extendInput
For arbitrary natural numbers and any complex matrix indexed by words , this defines a complex matrix on pairs , with , by
Equivalently, it is . No property of is assumed. When , is indexed by the single empty word, and the result is its sole entry times ; when , the resulting matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.extendUnused
For arbitrary natural numbers , an index , and any complex matrix indexed by words of length over , this defines a complex matrix indexed by pairs , where has length and , by
Here for and for , for . No property of is assumed. When , both deleted words are empty, so the result is the sole entry of times the identity on the pair of remaining coordinates; when , the resulting matrix index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.forbiddenDimension
For natural numbers and a Young diagram with cells and first column length at most , this defines the real number
Here is a natural number regarded as a real number: using the fixed numbering of ’s cells by , let consist of permutations preserving rows and columns, respectively, and define to be the complex dimension of the span of the vectors for , inside the complex Euclidean space indexed by . The sum is zero if no satisfies its conditions. The parameters may be zero whenever the argument exists.
QAlgorithms.Papers.Independent.Extend50.P04.fullEffect
For any natural numbers and any , let consist of pairs , where and , and define
using the real continuous functional calculus. Then is
Here is the identity matrix, the indicator takes values zero and one, uses natural-number subtraction, and scalar reciprocals are in , with ; also for . The parameter requires , so no such parameter exists at ; gives an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.idealState
For natural numbers , an index , and any complex matrix indexed by words of length over , this defines a vector indexed by , where have length and , with coordinates
Here deletion omits coordinate in order: for and for . The denominator is interpreted in , using the nonnegative real square root. There is no normalization hypothesis on . The definition includes , when deleted words are empty and , and , when the vector index set is empty and the vector is zero; scalar division by zero gives zero.
QAlgorithms.Papers.Independent.Extend50.P04.initialState
For natural numbers and any complex matrix indexed by words of length over , this defines a vector in the complex Euclidean space indexed by pairs , where are such words and , with coordinates
The square root is the nonnegative real square root, embedded into for division. No normalization or other condition on is imposed. For , the word indices are both the unique empty word and the denominator is . For , the vector index set is empty and the vector is zero; division by zero in the underlying scalar operations is defined to give zero.
QAlgorithms.Papers.Independent.Extend50.P04.inverseRoot
For any natural numbers , let consist of pairs , where and , and define the complex matrix
Then is , formed using the real continuous functional calculus, where . Here the indicator takes values zero and one, uses natural-number subtraction, and every reciprocal of zero is zero; the real square root is zero for , so there. In particular, this function assigns zero to a zero eigenvalue. If , then and the resulting matrix is zero; if , the index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.irrepDimension
For natural numbers , including zero, and a Young diagram with exactly cells and first column length at most , this defines a natural number as follows. Use the fixed bijection between the cells of and supplied by the definition. Let and be the permutations of these labels that preserve, respectively, each label’s row and each label’s column. In the complex Euclidean space with standard basis , set
The defined value is the complex dimension of this subspace. For , the empty diagram is allowed and this dimension is ; for , there is no diagram that can serve as the argument .
QAlgorithms.Papers.Independent.Extend50.P04.nonoptimalFidelity
For natural numbers , this defines the real number
where the vectors are indexed by for and are constructed as follows. For each port , set
Using real functional calculus, let for and
Let when and , and otherwise, and define . Let when , , and , and otherwise, where deletion omits coordinate while preserving order. These formulas use identity matrices on the full-word and deleted-word index sets, respectively. The inner product is the standard complex Euclidean inner product, and its absolute value is not squared. Scalar inversion sends zero to zero, so zero branches contribute zero; real square roots return zero on negative arguments. The definition includes , when deleted words are empty and , and , when the vector index set is empty and the value is zero.
QAlgorithms.Papers.Independent.Extend50.P04.normalizedBranch
For natural numbers , any complex matrix indexed by length- words over , and a port , this defines in the complex Euclidean space indexed by , where and is specified as follows. For each port , let
Using real functional calculus, set for and
Let if , and otherwise, and set . The defined vector is precisely , with the real norm embedded in before inversion. No condition on or assumption that is nonzero is imposed: if , the result is zero because . All real square roots return zero on negative arguments. There is no port for ; when , the vector index set is empty and the result is zero.
QAlgorithms.Papers.Independent.Extend50.P04.overlapFormula
For arbitrary natural numbers , this defines the real number
For every diagram appearing here, is the complex dimension of the span of over , inside the complex Euclidean space indexed by ; and preserve rows and columns under the fixed numbering of ’s cells. Write for the number of fillings of by that are weakly increasing along rows and strictly increasing down columns. Then , where ranges over diagrams of size with first column length at most that contain , and , where ranges over diagrams of size containing whose first column length is exactly . All sums are finite, and empty sums are zero. There are no positivity assumptions on the denominator expressions: real square roots of nonpositive numbers are zero, and division by zero has value zero. The definition includes and .
QAlgorithms.Papers.Independent.Extend50.P04.pbtBellProjector
For any natural numbers and any , define a complex matrix , indexed by pairs with and , by
The reciprocal is taken in , with . The parameter requires ; when , the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.pbtCollectiveAction
For natural numbers and any complex matrix , this defines a complex matrix indexed by pairs , where and , with entries
There is no hypothesis that is unitary. For , the empty product is , so the matrix is the entrywise complex conjugate of on the final coordinate; for , its index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.pbtInputSwap
For any natural numbers and any , define a complex matrix , indexed by pairs with and , by
Equivalently, its entry is one exactly when is obtained from by replacing its value at with , and equals the original value . The parameter requires ; when , the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.pbtLuedersBranch
For natural numbers , any complex matrix indexed by words in , and an index , this defines a vector on , where , as follows. For each port , define matrices on by
Set , using real functional calculus with , and
again using real functional calculus. Define when , and otherwise. The resulting vector is
All square roots are real nonnegative square roots, with for , and all scalar inverses send zero to zero. No condition on or normalization of is assumed. The supplied port index requires ; when , is empty and is the zero vector.
QAlgorithms.Papers.Independent.Extend50.P04.pbtOneBoxSuccessor
For arbitrary natural numbers , a Young diagram with cells and first column length at most , and a Young diagram with cells and first column length at most , this predicate means precisely that every cell of is a cell of . The row bounds and need not agree. Zero values of these parameters are included whenever the required diagrams exist; in particular, allows to be the empty diagram.
QAlgorithms.Papers.Independent.Extend50.P04.pbtSignal
For any natural numbers and any , define a complex matrix , indexed by pairs with and , by
Here is natural-number subtraction, which gives zero when , and both reciprocals are in , with . The parameter requires ; when , the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.pbtSupportComplement
For any natural numbers , let consist of pairs , where and , and define
where is applied through the real continuous functional calculus. Then is
where is the identity matrix on . The indicator takes values zero and one, uses natural-number subtraction, and reciprocals of zero are zero, with for . If , the sum is empty and the result is ; if , is empty.
QAlgorithms.Papers.Independent.Extend50.P04.portPermutation
For natural numbers and any permutation of , this defines a complex matrix indexed by pairs , with and , by
Thus the word coordinates are permuted using , while the final coordinate is left fixed. The definition includes , when the word is the unique empty function and this matrix is the identity on the final coordinate, and , when the full matrix index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.positiveRoot
For any type equipped with a finite enumeration and decidable equality, and any complex matrix indexed by , is the matrix obtained by applying the real function to through the real continuous functional calculus. No Hermitian or positive-semidefinite hypothesis is imposed on . For Hermitian , this replaces each eigenvalue by its real square root, which is zero for ; for non-Hermitian , the total functional-calculus operation returns zero. The type may be empty.
QAlgorithms.Papers.Independent.Extend50.P04.qubitBracket
For any natural numbers , this defines the real number
All subtraction in the two linear factors is real subtraction, so those factors may be negative. There is no restriction on relative to ; binomial coefficients with lower index greater than are zero. The case is included, and the denominator is always positive.
QAlgorithms.Papers.Independent.Extend50.P04.qubitCoefficient
For arbitrary natural numbers , this defines
where, for indices in the indicated range and ,
The sine arguments use real arithmetic; exponent subtraction is natural-number subtraction truncated at zero. A quotient with zero denominator is defined to be zero. The definition accepts indices outside the finite vector’s range and assigns them zero; at , it assigns to and zero to every .
QAlgorithms.Papers.Independent.Extend50.P04.qubitCoefficients
For every natural number and every Young diagram with exactly cells and first-column length at most , let be its zero-indexed row length , namely the length of its second row. This defines the real coefficient
where, with ,
A Young diagram here is a finite downward-closed set of pairs of natural numbers, with row and column coordinates starting at zero. Real arithmetic is used in the sine arguments, and natural-number subtraction, truncated at zero, in the exponents. Division by zero gives zero. The empty diagram at is included and receives coefficient .
QAlgorithms.Papers.Independent.Extend50.P04.qubitMatrix
For every natural number , this defines a real square matrix whose row and column indices are , by
Each indicator is when its condition holds and otherwise, and the diagonal subtraction is real subtraction. Both diagonal deductions apply when both conditions hold; thus at this is the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P04.qubitOverlapSum
For every natural number , this defines
The subtraction inside this real expression is real subtraction, and comes from natural-number division. The sum includes both endpoints; in particular, when , it has the single term and its value is .
QAlgorithms.Papers.Independent.Extend50.P04.qubitRaw
For every natural number and integer index with , this defines a real number . Writing , its value is
The divisions inside the sine arguments are real divisions; the exponents are natural numbers formed using natural-number division and subtraction, which truncates at zero. The index restriction ensures that these exponent subtractions do not underflow. When , the only permitted index is , and the value is .
QAlgorithms.Papers.Independent.Extend50.P04.qubitVector
For every natural number and index , this defines
where, putting ,
Here the sine arguments use real arithmetic, while the exponents use natural-number arithmetic with subtraction truncated at zero. The sum includes every index from through . Division is total: if its denominator is zero, the quotient is zero. In particular, is included and gives .
QAlgorithms.Papers.Independent.Extend50.P04.recyclingFidelity
For natural numbers , any complex matrix indexed by length- words over , and any complex matrix indexed by length- words over the same alphabet, this defines the real number
Here all vectors are indexed by , where . For each , define
Using real functional calculus, put for , and
Define when , and otherwise, and . Finally, equals when and , and equals zero otherwise; deletion omits coordinate in increasing order. The inner product is the standard complex Euclidean inner product, and its absolute value is used without squaring. No normalization or other conditions on are imposed. Scalar inversion sends zero to zero, so a zero branch has normalized vector zero and contributes zero; real square roots return zero on negative arguments. The definition includes , with empty deleted words and , and , when all these vectors are zero and the resulting number is zero.
QAlgorithms.Papers.Independent.Extend50.P04.resourceFidelity
For arbitrary natural numbers and any complex matrix indexed by , this defines the real number , where is the identity matrix on and for every matrix on . Thus the defined value is the magnitude of the inner product, without squaring:
No normalization condition is imposed on , and division by zero gives zero. For , the index set is empty and the value is zero; for , the index set is a singleton and the value is the absolute value of ’s sole entry, including when .
QAlgorithms.Papers.Independent.Extend50.P04.resourceOperation
For natural numbers , let , and let be the Young diagrams with cells and first column length at most . For any real function on , this defines the complex matrix on by
Here is if and otherwise. Using the fixed numbering of ’s cells, let preserve rows and columns, respectively, and let be the complex span of for in the complex Euclidean space indexed by . Then , , where is exactly when and is the orthogonal projection onto , and counts fillings of by weakly increasing along rows and strictly increasing down columns. Real scalars in these formulas are embedded in . No sign or normalization condition is imposed on . Zero denominators give zero quotients, empty sums give zero matrices, and and are included, with and a singleton when .
QAlgorithms.Papers.Independent.Extend50.P04.resourceState
For arbitrary natural numbers and any complex matrix indexed by , this defines the vector in the complex Euclidean space indexed by whose coordinates are
No normalization or other condition is imposed on . The real square root is embedded in for the division, and division by zero gives zero. When , is empty and the vector is the unique vector on an empty index set. When , is a singleton, including when , and the denominator is because .
QAlgorithms.Papers.Independent.Extend50.P04.rowCoefficient
For every natural number , every real-valued function on the Young diagrams having exactly cells and first-column length at most , and every natural number , this defines
Young diagrams are finite downward-closed sets of pairs of natural numbers, and is the length of the second row because row indexing starts at zero. The sum includes every such diagram with that second-row length and is zero if there are none. This includes : only the empty diagram occurs, contributing when and nothing when .
QAlgorithms.Papers.Independent.Extend50.P04.signalSum
For any natural numbers , define a complex matrix , indexed by pairs with and , by
The indicator is one when its condition holds and zero otherwise, uses natural-number subtraction, and reciprocals are in , with . If , the sum is empty and ; if , its index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.spinFormula
For every natural number , this defines the real number
The exponent in is a real-number subtraction and the power is a real power, so it is negative when . By contrast, subtraction and division inside the factorial arguments are natural-number operations, with subtraction truncated at zero and division rounded down; the summation restriction prevents underflow in . The case is included and gives .
QAlgorithms.Papers.Independent.Extend50.P04.successorSum
For natural numbers and a Young diagram with cells and first column length at most , this defines
Here is the number of fillings of the cells of by labels in that are weakly increasing along each row and strictly increasing down each column. To define , use the fixed numbering of ’s cells by , let be the permutations preserving rows and columns, respectively, and take the complex dimension of the span of over all in the complex Euclidean space indexed by . This natural number is interpreted as a real number in the displayed formula. Empty sums are zero, and may be zero whenever exists.
QAlgorithms.Papers.Independent.Extend50.P04.supportEffect
For any natural numbers and any , let consist of pairs , where and , and set
Define by the real continuous functional calculus with . Then is the matrix product on . The indicator takes values zero and one, natural-number subtraction is used in , and reciprocals of zero are zero, so for . The parameter requires ; gives an empty index set.
QAlgorithms.Papers.Independent.Extend50.P04.teleportationObjective
For arbitrary natural numbers , put and . Given any complex matrix on and any family of complex matrices on , this defines
For and in , the entry is if , , and for every , and is zero otherwise. In the exponent , subtraction is natural-number subtraction, truncated at zero. No unitarity, positivity, or normalization assumptions are imposed on or . All inverses and quotients are total, with inverse zero equal to zero; consequently the objective is zero when , and it is also zero when because the sum is empty.
QAlgorithms.Papers.Independent.Extend50.P04.transposeInput
For any natural numbers and any complex matrix indexed by pairs , where and , define a matrix on the same index set by
Thus the definition exchanges the two final coordinates in the row and column arguments, without complex conjugation. If , the function coordinates are empty and this is ordinary matrix transposition on the remaining coordinates; if , the matrix index set is empty.
QAlgorithms.Papers.Independent.Extend50.P04.transposedSwap
For natural numbers and an index , this defines a complex matrix indexed by pairs , where and . Its entries are
These entries result from exchanging the two input indices in the matrix whose entry is exactly when is obtained from by replacing its value at with , and . There is no choice of when ; when , the resulting matrix has an empty index set.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.