Definitions for Near-optimal covariant quantum error-correcting codes from random unitaries with symmetries
DefinitionQAlgorithms_Papers_Independent_Extend50_P09The objects the formalized statements of Near-optimal covariant quantum error-correcting codes from random unitaries with symmetries (arXiv:2112.01498) are stated in. Each was checked against the paper by a blind read-back and a moderator.
CovariantWord: Computational basis for n d-level systems (§II, p.2).pdist: Root-fidelity purified distance, (1)–(2), p.2.choiError: Eq.(6), p.3: optimize over all CPTP decoders, normalized Choi input.optimalWorstRecoveryError: Eq.(8), p.3: one decoder is chosen before the reference-entangled input. A reference of dimension dim L suffices; pure unit inputs suffice.selectedRecoveryError: Select the source's two recovery criteria.firstCoordinates: First k tensor factors; the bound prevents a truncated physical register.remainingCoordinates: Remaining n-k tensor factors.append: Append the fixed ancillary density operator, Defs.1–2, pp.5,11.appendUnitaryEncoder: Unitary conjugation after appending the ancillary state.RetainedConfigurations: Configuration on retained sites S. Locations are fixed before U.joinSites: Join configurations on S and its complement, p.14.retain: Partial trace retaining precisely S, §§III B, IV C.noisyEncoder: Receiver retains the complement of the known erased set.chargeHammingWeight: Hamming weight of a binary computational word, p.5.u1ChargeOperator: Charge operator Q(n), p.5.u1SectorProjector: Charge eigenspace projector, including the zero projector on impossible sectors.ChargeState: Def.1, p.5: normalized pure ancilla of charge alpha.chargeRotation: U(1) action exp(-i theta Q), §III A, p.5.U1Group: Full charge commutant, with full U(binomial(n,j)) blocks, p.5.collectiveQuditAction: Collective single-qudit action, Eq.(71), p.10.SUGroup: Compact commutant as DEFINED on p.10, including determinant one. This is not the incorrect independent SU(r_lambda)-block reading on p.11.FullGroup: Full unconstrained unitary group (§VI, pp.13–14).IsCommutantHaarLaw: Probability law supported on the named compact matrix group, invariant under every left translation. This characterizes its normalized Haar measure.PhysicalUnitaryLaws: A family of laws, one for each physical register size.sdp: SDP value of (B14), p.17, for arbitrary PSD operators including zero. The feasible set is nonempty and bounded below for PSD input.chooseZ: Signed lower binomial index; negative indices contribute zero.hyper: Conditional probabilities in (C2), with all invalid sectors omitted.choiMarginalCoefficient: Beta of (C4), p.19, a coefficient per computational basis vector.avgChoi: Exact averaged environmental Choi state of (C2), p.19.choiMarginalState: Marginal zeta_0 of (C3)–(C5), p.19.avgFullChoi: Exact averaged full physical Choi state of (C1), p.19.comparatorFidelity: Exact (C6), interpreted as the fidelity of its constructed states.comparatorDistance: The symmetry/comparator distance, not optimized recovery error.avgBasis: Exact averaged basis environment state, (C20), p.21.basisDistance: Largest basis symmetry distance, using all logical basis words.u1Leading: Leading term in Thms.2–3, pp.5,7.u1Ratio: Relative remainder parameter: k²t²/n for Choi, kt²/n for worst case.U1Performance: Full Thm.2 or Thm.3 contract. Constants precede all admissible size subsequences, ancillas and erased sets; thresholds may depend on convergence. No integrality of a*n is demanded off the chosen unbounded subsequence.rdim: Actual Specht and Schur dimensions, pp.9–10.ldim: Actual Schur-module dimension, pp.9–10.embeddedSchurSpechtVector: Physical vector for one Schur basis coordinate and a fixed Specht unit vector, using the accepted constructed Schur transform, Def.2, p.11.suAncilla: Def.2's actual embedded mixed ancilla I_L/l tensor |psi><psi|. No arbitrary certified density matrix or dimension is supplied.SUPerformance: Full Thm.5/6 contract, pp.11–12. Constants are uniform over every partition with a FIXED separation eta, its Specht vector, and erased position. Uses the physical receiver and CPTP recovery even when the ancilla is mixed.jointUnitaryEntryMoment: Degree-(s,s) joint physical matrix-entry jointUnitaryEntryMoment. Cross-block phases are included; matching marginal block designs alone does not suffice (§V).DesignLaw: Exact symmetric 2-design, §V p.13: probability, group support and FULL first/second conjugation moments equal to the named Haar law.concat: Reassemble first t and last n-t coordinates in their physical order.firstTrace: Complementary erasure keeping the FIRST t qudits, (A9), (B8).erasureChoi: Normalized Choi state of the actual complementary partial trace.initialChoi: Initial normalized Choi ket, before U, (B6), p.17.u1Xi: The diagonal U(1) Xi of (B4), canonically embedded in A tensor Abar. Cross-charge sectors are zero. Zero padding the A* register preserves H_min.u1Lambda: Constructed Lambda=Xi(Psi tensor Choi(tau))Xi†, (B3)–(B4), p.16. Order is A*=(A,Abar), followed by (R,E); no entropy certificate is a field.choiLambda: Choi instance of the constructed Lambda.simpleInitial: An arbitrary normalized logical ket with the same fixed charge ancilla, and a one-dimensional reference, as in Appendix B2.simpleLambda: Basis or superposition instance of Lambda, with trivial reference.sectorBell: Normalized equal-weight-u1SectorProjector entangled vector, (B5), p.17. Impossible sectors return zero and are excluded from all normalized uses.choiGammaCoefficient: Actual Gamma_i of (B11)–(B12), with only physical j sectors.choiKappaValue: Kappa, (B25), p.18: NO square root on the two binomial factors in the inner sum. Signed indices omit every impossible u1SectorProjector.FourPhase: Four unit phases used for the normalized two-basis-state superpositions.superposition: (49)–(50), p.7; x!=y is carried at every normalized use.SymmetryBlockCoordinates: A direct-sum-product coordinate index, (26), p.4.StarIndex: The A* output coordinates, with the two multiplicity factors only.blockProjector: Physical projector onto a block of the actual unitary decomposition.generalXi: Xi of (26)/(A5), pp.4,15. In normalized Bell contraction the sqrt(l_j) cancels; the barred decomposition uses conjugate coordinates.generalLambda: Lambda of (25)/(A5), constructed from its input, normalized Choi state and the actual decomposition. No desired norm/entropy bound is assumed.physicalSchurBlockCoordinates: The actual accepted Schur transform reordered with L first and R second.shapeEntropy: Shannon entropy of the zero-padded normalized row vector, (A16), p.16.constantCoeff11: Coefficient in (C17), PDF p.20. The term -2 sqrt(2) alpha is LINEAR in alpha; it is not -2 sqrt(2 alpha).constantCoeff22: Coefficient in (C18), PDF p.20.isotypicState: Actual normalized lambda-isotypic projector in n-1 qudits, (D9).removeSite: Delete the j-th coordinate; t>=1 is supplied at every use.insertAt: rho on retained site j and tau on the other t-1 retained sites.logicalMatrix: Convert the one-qudit logical register to its single site.suMarginalFormula: (D10), including t=n. The last term is omitted at t=n rather than tracing a fictitious -1 qudits.oneErasureMeanChannel: Exact oneErasureMeanChannel averaged erased-qudit channel, (D13), p.22.schmidtKet: Schmidt probabilities (not amplitudes) give this normalized ket.schmidtLeading: Coefficient of 1/n in (D23); 0/0=0 is the continuous value for two zero Schmidt probabilities.FlaggedIndex: Classical location flag with its corresponding surviving register, p.14.LocationLaw: Arbitrary distribution over erased sets of exactly t sites, independent of the unknown logical state.locationFlaggedErasureEncoder: Flagged erasure after the appendUnitaryEncoder: the receiver learns S and gets S^c. Different location flags are orthogonal blocks.locationFailure: Failure means either one erased set violates the bound or one flagged mixture violates it. A single good appendUnitaryEncoder works simultaneously for all locations and all input-independent distributions of the fixed erasure size.U1LocationPerformance: U(1) main-bound extension to flagged random erasures, §VI p.14.SULocationPerformance: SU(d) extension to one flagged random erasure, §VI p.14.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P02
/-!
Statements from Kong–Liu, arXiv:2112.01498v2. All page references are PDF pages.
Paper-local definitions have complete bodies. Error is always optimal CPTP
RECOVERY error; no erased-register relaxation is used for mixed encoders.
Compilation is pending the batch mechanical handoff.
-/
noncomputable section
-- Finite-matrix Bochner averages use the standard entrywise norm and topology.
open scoped Matrix Matrix.Norms.Elementwise ComplexConjugate ENNReal ComplexOrder
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Extend50.P09
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact generic definitions from the pinned accepted library.
open QAlgorithms.Papers.Independent.Information100.P22 (Op mixed bell)
open QAlgorithms.Papers.Independent.Information100.P67 (conditionalMinEntropy)
open QAlgorithms.Papers.Independent.Advance50.P02 (negLog)
/-- Borel sigma algebra of the finite-dimensional physical matrix space (§II A). -/
local instance covariantMatrixMeasurable (I : Type*) [Fintype I] :
MeasurableSpace (Op I) := borel _
/-- The physical matrix sigma algebra is Borel (§II A). -/
local instance covariantMatrixBorel (I : Type*) [Fintype I] :
BorelSpace (Op I) := ⟨rfl⟩
/-- Computational basis for n d-level systems (§II, p.2). -/
abbrev CovariantWord (d n : ℕ) := Fin n → Fin d
/-- Root-fidelity purified distance, (1)–(2), p.2. -/
def pdist {I : Type*} [Fintype I] [DecidableEq I] (rho sigma : Op I) : ℝ :=
Real.sqrt (1 - rootFidelity rho sigma ^ 2)
/-- Eq.(6), p.3: optimize over all CPTP decoders, normalized Choi input. -/
def choiError {L B : Type*} [Fintype L] [DecidableEq L]
[Fintype B] [DecidableEq B] (channel : Superop L B) : ℝ :=
sInf {e : ℝ | ∃ D : Superop B L, IsChannel D ∧
e = pdist (pureDensity (bell L))
(idTensorSuperop (R := L) (D ∘ channel) (pureDensity (bell L)))}
/-- Eq.(8), p.3: one decoder is chosen before the reference-entangled input.
A reference of dimension dim L suffices; pure unit inputs suffice. -/
def optimalWorstRecoveryError {L B : Type*} [Fintype L] [DecidableEq L]
[Fintype B] [DecidableEq B] (channel : Superop L B) : ℝ :=
sInf {e : ℝ | ∃ D : Superop B L, IsChannel D ∧
e = sSup {v : ℝ | ∃ psi : EuclideanSpace ℂ (L × L), IsState psi ∧
v = pdist (pureDensity psi)
(idTensorSuperop (R := L) (D ∘ channel) (pureDensity psi))}}
/-- Select the source's two recovery criteria. -/
def selectedRecoveryError {L B : Type*} [Fintype L] [DecidableEq L]
[Fintype B] [DecidableEq B] (worst : Bool) (C : Superop L B) : ℝ :=
if worst then optimalWorstRecoveryError C else choiError C
/-- First k tensor factors; the bound prevents a truncated physical register. -/
def firstCoordinates {d n k : ℕ} (h : k ≤ n) (x : CovariantWord d n) : CovariantWord d k :=
fun i => x ⟨i.val, lt_of_lt_of_le i.isLt h⟩
/-- Remaining n-k tensor factors. -/
def remainingCoordinates {d n k : ℕ} (x : CovariantWord d n) : CovariantWord d (n-k) :=
fun i => x ⟨k+i.val, by omega⟩
/-- Append the fixed ancillary density operator, Defs.1–2, pp.5,11. -/
def append {d n k : ℕ} (h : k ≤ n) (anc : Op (CovariantWord d (n-k))) :
Superop (CovariantWord d k) (CovariantWord d n) :=
fun rho a b => rho (firstCoordinates h a) (firstCoordinates h b) * anc (remainingCoordinates a) (remainingCoordinates b)
/-- Unitary conjugation after appending the ancillary state. -/
def appendUnitaryEncoder {d n k : ℕ} (h : k ≤ n) (anc : Op (CovariantWord d (n-k)))
(U : Op (CovariantWord d n)) : Superop (CovariantWord d k) (CovariantWord d n) :=
fun rho => U * append h anc rho * Uᴴ
/-- Configuration on retained sites S. Locations are fixed before U. -/
abbrev RetainedConfigurations (d n : ℕ) (S : Finset (Fin n)) := {i : Fin n // i ∈ S} → Fin d
/-- Join configurations on S and its complement, p.14. -/
def joinSites {d n : ℕ} (S : Finset (Fin n))
(a : RetainedConfigurations d n S) (b : RetainedConfigurations d n Sᶜ) : CovariantWord d n :=
fun i => if h : i ∈ S then a ⟨i,h⟩ else b ⟨i, by simpa using h⟩
/-- Partial trace retaining precisely S, §§III B, IV C. -/
def retain {d n : ℕ} (S : Finset (Fin n)) : Superop (CovariantWord d n) (RetainedConfigurations d n S) :=
fun rho a b => ∑ z : RetainedConfigurations d n Sᶜ, rho (joinSites S a z) (joinSites S b z)
/-- Receiver retains the complement of the known erased set. -/
def noisyEncoder {d n k : ℕ} (h : k ≤ n) (anc : Op (CovariantWord d (n-k)))
(S : Finset (Fin n)) (U : Op (CovariantWord d n)) :=
retain Sᶜ ∘ appendUnitaryEncoder h anc U
/-- Hamming weight of a binary computational word, p.5. -/
def chargeHammingWeight {n : ℕ} (x : CovariantWord 2 n) : ℕ := ∑ i, (x i).val
/-- Charge operator Q(n), p.5. -/
def u1ChargeOperator (n : ℕ) : Op (CovariantWord 2 n) := Matrix.diagonal fun x => (chargeHammingWeight x : ℂ)
/-- Charge eigenspace projector, including the zero projector on impossible sectors. -/
def u1SectorProjector (n j : ℕ) : Op (CovariantWord 2 n) :=
Matrix.diagonal fun x => if chargeHammingWeight x = j then 1 else 0
/-- Def.1, p.5: normalized pure ancilla of charge alpha. -/
def ChargeState {m : ℕ} (alpha : ℕ) (psi : EuclideanSpace ℂ (CovariantWord 2 m)) : Prop :=
IsState psi ∧ ∀ x, chargeHammingWeight x ≠ alpha → psi x = 0
/-- U(1) action exp(-i theta Q), §III A, p.5. -/
def chargeRotation (n : ℕ) (theta : ℝ) : Op (CovariantWord 2 n) :=
Matrix.diagonal fun x => Complex.exp (-Complex.I * (theta : ℂ) * (chargeHammingWeight x : ℂ))
/-- Full charge commutant, with full U(binomial(n,j)) blocks, p.5. -/
def U1Group (n : ℕ) (U : Op (CovariantWord 2 n)) : Prop :=
Uᴴ * U = 1 ∧ U * u1ChargeOperator n = u1ChargeOperator n * U
/-- Collective single-qudit action, Eq.(71), p.10. -/
def collectiveQuditAction {d : ℕ} (n : ℕ) (U : Op (Fin d)) : Op (CovariantWord d n) :=
fun a b => ∏ i, U (a i) (b i)
/-- Compact commutant as DEFINED on p.10, including determinant one.
This is not the incorrect independent SU(r_lambda)-block reading on p.11. -/
def SUGroup (d n : ℕ) (V : Op (CovariantWord d n)) : Prop :=
Vᴴ * V = 1 ∧ V.det = 1 ∧ ∀ U : Op (Fin d), Uᴴ * U = 1 → U.det = 1 →
V * collectiveQuditAction n U = collectiveQuditAction n U * V
/-- Full unconstrained unitary group (§VI, pp.13–14). -/
def FullGroup (d n : ℕ) (U : Op (CovariantWord d n)) : Prop := Uᴴ * U = 1
/-- Probability law supported on the named compact matrix group, invariant
under every left translation. This characterizes its normalized Haar measure. -/
def IsCommutantHaarLaw {I : Type*} [Fintype I] [DecidableEq I]
(G : Op I → Prop) (mu : Measure (Op I)) : Prop :=
IsProbabilityMeasure mu ∧ mu {U | ¬ G U} = 0 ∧
∀ V, G V → Measure.map (fun U => V * U) mu = mu
/-- A family of laws, one for each physical register size. -/
abbrev PhysicalUnitaryLaws (d : ℕ) := (n : ℕ) → Measure (Op (CovariantWord d n))
/-- SDP value of (B14), p.17, for arbitrary PSD operators including zero.
The feasible set is nonempty and bounded below for PSD input. -/
def sdp {A B : Type*} [Fintype A] [DecidableEq A]
[Fintype B] [DecidableEq B] (rho : Op (A × B)) : ℝ :=
sInf {s : ℝ | ∃ sigma : Op B, sigma.PosSemidef ∧ s = sigma.trace.re ∧
(Matrix.kronecker (1 : Op A) sigma - rho).PosSemidef}
/-- Signed lower binomial index; negative indices contribute zero. -/
def chooseZ (n : ℕ) (j : ℤ) : ℝ :=
if 0 ≤ j then (n.choose j.toNat : ℝ) else 0
/-- Conditional probabilities in (C2), with all invalid sectors omitted. -/
def hyper (n t q i : ℕ) : ℝ :=
chooseZ (n-t) ((q : ℤ)-i) / (n.choose q : ℝ)
/-- Beta of (C4), p.19, a coefficient per computational basis vector. -/
def choiMarginalCoefficient (n k t alpha i : ℕ) : ℝ :=
(2 : ℝ)^(- (k : ℤ)) * ∑ j ∈ Finset.range (k+1),
(k.choose j : ℝ) * hyper n t (j+alpha) i
/-- Exact averaged environmental Choi state of (C2), p.19. -/
def avgChoi (n k t alpha : ℕ) : Op (CovariantWord 2 k × CovariantWord 2 t) :=
fun x y => if x = y then
((2 : ℝ)^(- (k : ℤ)) * hyper n t (chargeHammingWeight x.1 + alpha) (chargeHammingWeight x.2) : ℂ) else 0
/-- Marginal zeta_0 of (C3)–(C5), p.19. -/
def choiMarginalState (n k t alpha : ℕ) : Op (CovariantWord 2 t) :=
Matrix.diagonal fun x => (choiMarginalCoefficient n k t alpha (chargeHammingWeight x) : ℂ)
/-- Exact averaged full physical Choi state of (C1), p.19. -/
def avgFullChoi (n k alpha : ℕ) : Op (CovariantWord 2 k × CovariantWord 2 n) :=
(2 : ℂ)^(- (k : ℤ)) • ∑ j ∈ Finset.range (k+1),
(n.choose (j+alpha) : ℂ)⁻¹ • Matrix.kronecker (u1SectorProjector k j) (u1SectorProjector n (j+alpha))
/-- Exact (C6), interpreted as the fidelity of its constructed states. -/
def comparatorFidelity (n k t alpha : ℕ) : ℝ :=
rootFidelity (avgChoi n k t alpha) (Matrix.kronecker (mixed (CovariantWord 2 k)) (choiMarginalState n k t alpha))
/-- The symmetry/comparator distance, not optimized recovery error. -/
def comparatorDistance (n k t alpha : ℕ) : ℝ :=
pdist (avgChoi n k t alpha) (Matrix.kronecker (mixed (CovariantWord 2 k)) (choiMarginalState n k t alpha))
/-- Exact averaged basis environment state, (C20), p.21. -/
def avgBasis (n t q : ℕ) : Op (CovariantWord 2 t) :=
Matrix.diagonal fun x => (hyper n t q (chargeHammingWeight x) : ℂ)
/-- Largest basis symmetry distance, using all logical basis words. -/
def basisDistance (n k t alpha : ℕ) : ℝ :=
(Finset.univ : Finset (CovariantWord 2 k)).sup' Finset.univ_nonempty
(fun x => pdist (avgBasis n t (chargeHammingWeight x+alpha)) (choiMarginalState n k t alpha))
/-- Leading term in Thms.2–3, pp.5,7. -/
def u1Leading (worst : Bool) (a : ℝ) (n k t : ℕ) : ℝ :=
(if worst then (k : ℝ) * Real.sqrt t else Real.sqrt ((t : ℝ)*k)) /
(4 * n * Real.sqrt (a*(1-a)))
/-- Relative remainder parameter: k²t²/n for Choi, kt²/n for worst case. -/
def u1Ratio (worst : Bool) (n k t : ℕ) : ℝ :=
(k : ℝ)^(if worst then 1 else 2) * (t : ℝ)^2 / n
/-- Full Thm.2 or Thm.3 contract. Constants precede all admissible size
subsequences, ancillas and erased sets; thresholds may depend on convergence.
No integrality of a*n is demanded off the chosen unbounded subsequence. -/
def U1Performance (worst : Bool) (laws : PhysicalUnitaryLaws 2) : Prop :=
∀ a : ℝ, 0 < a → a < 1 → ∃ C c : ℝ, 0 < C ∧ 0 < c ∧
∀ N k t alpha : ℕ → ℕ,
Tendsto N atTop atTop →
Tendsto (fun i => u1Ratio worst (N i) (k i) (t i)) atTop (nhds 0) →
(∀ i, 0 < N i ∧ 0 < k i ∧ k i ≤ N i ∧ 0 < t i ∧ t i ≤ N i ∧
alpha i ≤ N i-k i ∧ (alpha i : ℝ) = a * N i) →
∃ i0 : ℕ, ∀ i ≥ i0, ∀ h : k i ≤ N i,
∀ psi : EuclideanSpace ℂ (CovariantWord 2 (N i-k i)), ChargeState (alpha i) psi →
∀ S : Finset (Fin (N i)), S.card = t i →
let err := fun U => selectedRecoveryError worst (noisyEncoder h (pureDensity psi) S U)
let b := u1Leading worst a (N i) (k i) (t i) *
(1 + C * u1Ratio worst (N i) (k i) (t i))
(∫ U, err U ∂laws (N i)) ≤ b ∧
(laws (N i)).real {U | b < err U} ≤ Real.exp (-c * N i)
/-- Actual Specht and Schur dimensions, pp.9–10. -/
def rdim {d n : ℕ} (lam : Schur.Partition d n) : ℕ :=
Module.finrank ℂ (Schur.spechtSpace lam)
/-- Actual Schur-module dimension, pp.9–10. -/
def ldim {d n : ℕ} (lam : Schur.Partition d n) : ℕ :=
Module.finrank ℂ (Schur.schurModule lam)
/-- Physical vector for one Schur basis coordinate and a fixed Specht unit
vector, using the accepted constructed Schur transform, Def.2, p.11. -/
def embeddedSchurSpechtVector {d m : ℕ} (lam : Schur.Partition d m)
(psi : EuclideanSpace ℂ (Fin (rdim lam))) (l : Fin (ldim lam)) :
EuclideanSpace ℂ (CovariantWord d m) :=
WithLp.toLp 2 fun x => ∑ r, conj (Schur.decomposition d m ⟨lam,(r,l)⟩ x) * psi r
/-- Def.2's actual embedded mixed ancilla I_L/l tensor |psi><psi|.
No arbitrary certified density matrix or dimension is supplied. -/
def suAncilla {d m : ℕ} (lam : Schur.Partition d m)
(psi : EuclideanSpace ℂ (Fin (rdim lam))) : Op (CovariantWord d m) :=
(ldim lam : ℂ)⁻¹ • ∑ l : Fin (ldim lam), pureDensity (embeddedSchurSpechtVector lam psi l)
/-- Full Thm.5/6 contract, pp.11–12. Constants are uniform over every
partition with a FIXED separation eta, its Specht vector, and erased position.
Uses the physical receiver and CPTP recovery even when the ancilla is mixed. -/
def SUPerformance (worst : Bool) (d : ℕ) (laws : PhysicalUnitaryLaws d) : Prop :=
∀ eta : ℝ, 0 < eta → ∃ C c : ℝ, 0 < C ∧ 0 < c ∧
∃ n0 : ℕ, ∀ n ≥ n0, ∀ hn : 2 ≤ n,
∀ lam : Schur.Partition d (n-1),
eta * n ≤ (n : ℝ) - lam.val.rowLen 0 →
∀ psi : EuclideanSpace ℂ (Fin (rdim lam)), IsState psi →
∀ S : Finset (Fin n), S.card = 1 →
let err := fun V => selectedRecoveryError worst
(noisyEncoder (show 1 ≤ n by omega) (suAncilla lam psi) S V)
let b := Real.sqrt ((d : ℝ)^2-1)/(2*n) + C/(n : ℝ)^2
(∫ V, err V ∂laws n) ≤ b ∧ (laws n).real {V | b < err V} ≤ Real.exp (-c*n)
/-- Degree-(s,s) joint physical matrix-entry jointUnitaryEntryMoment. Cross-block phases
are included; matching marginal block designs alone does not suffice (§V). -/
def jointUnitaryEntryMoment {I : Type*} [Fintype I] (s : ℕ)
(a b c e : Fin s → I) (U : Op I) : ℂ :=
(∏ i, U (a i) (b i)) * conj (∏ i, U (c i) (e i))
/-- Exact symmetric 2-design, §V p.13: probability, group support and
FULL first/second conjugation moments equal to the named Haar law. -/
def DesignLaw {I : Type*} [Fintype I] [DecidableEq I]
(G : Op I → Prop) (mu nu : Measure (Op I)) : Prop :=
IsProbabilityMeasure mu ∧ mu {U | ¬ G U} = 0 ∧ IsCommutantHaarLaw G nu ∧
∀ s ∈ ({1,2} : Finset ℕ), ∀ a b c e : Fin s → I,
(∫ U, jointUnitaryEntryMoment s a b c e U ∂mu) = ∫ U, jointUnitaryEntryMoment s a b c e U ∂nu
example (n : ℕ) : chargeRotation n 0 = 1 := by simp [chargeRotation]
example (n : ℕ) : chargeHammingWeight (fun _ : Fin n => (0 : Fin 2)) = 0 := by simp [chargeHammingWeight]
example : chooseZ 3 (-1) = 0 := by norm_num [chooseZ]
example {A B : Type*} [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B] :
negLog 0 = (⊤ : EReal) := by simp [negLog]
example (n k t alpha : ℕ) : selectedRecoveryError false
(fun rho : Op (CovariantWord 2 k) => rho) = choiError (fun rho : Op (CovariantWord 2 k) => rho) := rfl
example {d n : ℕ} (S : Finset (Fin n)) (X : Op (CovariantWord d n)) :
retain S X = fun a b => ∑ z : RetainedConfigurations d n Sᶜ, X (joinSites S a z) (joinSites S b z) := rfl
example (d n : ℕ) (U : Op (Fin d)) (a b : CovariantWord d n) :
collectiveQuditAction n U a b = ∏ i, U (a i) (b i) := rfl
/-- Reassemble first t and last n-t coordinates in their physical order. -/
def concat {d n t : ℕ} (ht : t ≤ n) (x : CovariantWord d t) (z : CovariantWord d (n-t)) : CovariantWord d n :=
fun i => if h : i.val < t then x ⟨i.val,h⟩ else z ⟨i.val-t,by omega⟩
/-- Complementary erasure keeping the FIRST t qudits, (A9), (B8). -/
def firstTrace {d n t : ℕ} (ht : t ≤ n) : Superop (CovariantWord d n) (CovariantWord d t) :=
fun X x y => ∑ z : CovariantWord d (n-t), X (concat ht x z) (concat ht y z)
/-- Normalized Choi state of the actual complementary partial trace. -/
def erasureChoi {d n t : ℕ} (ht : t ≤ n) : Op (CovariantWord d n × CovariantWord d t) :=
idTensorSuperop (R := CovariantWord d n) (firstTrace ht) (pureDensity (bell (CovariantWord d n)))
/-- Initial normalized Choi ket, before U, (B6), p.17. -/
def initialChoi {n k : ℕ} (hk : k ≤ n) (psi : EuclideanSpace ℂ (CovariantWord 2 (n-k))) :
EuclideanSpace ℂ (CovariantWord 2 k × CovariantWord 2 n) :=
WithLp.toLp 2 fun p => bell (CovariantWord 2 k) (p.1,firstCoordinates hk p.2) * psi (remainingCoordinates p.2)
/-- The diagonal U(1) Xi of (B4), canonically embedded in A tensor Abar.
Cross-charge sectors are zero. Zero padding the A* register preserves H_min. -/
def u1Xi (n : ℕ) (a b : CovariantWord 2 n) : ℂ :=
if chargeHammingWeight a = chargeHammingWeight b then (Real.sqrt ((2 : ℝ)^n/(n.choose (chargeHammingWeight a) : ℝ)) : ℂ) else 0
/-- Constructed Lambda=Xi(Psi tensor Choi(tau))Xi†, (B3)–(B4), p.16.
Order is A*=(A,Abar), followed by (R,E); no entropy certificate is a field. -/
def u1Lambda {R : Type*} [Fintype R] {n t : ℕ} (ht : t ≤ n)
(Psi : Op (R × CovariantWord 2 n)) : Op ((CovariantWord 2 n × CovariantWord 2 n) × (R × CovariantWord 2 t)) :=
fun a b => u1Xi n a.1.1 a.1.2 * conj (u1Xi n b.1.1 b.1.2) *
Psi (a.2.1,a.1.1) (b.2.1,b.1.1) * erasureChoi ht (a.1.2,a.2.2) (b.1.2,b.2.2)
/-- Choi instance of the constructed Lambda. -/
def choiLambda {n k t : ℕ} (hk : k ≤ n) (ht : t ≤ n)
(psi : EuclideanSpace ℂ (CovariantWord 2 (n-k))) :=
u1Lambda ht (pureDensity (initialChoi hk psi))
/-- An arbitrary normalized logical ket with the same fixed charge ancilla,
and a one-dimensional reference, as in Appendix B2. -/
def simpleInitial {n k : ℕ} (hk : k ≤ n)
(psi : EuclideanSpace ℂ (CovariantWord 2 (n-k))) (v : EuclideanSpace ℂ (CovariantWord 2 k)) :
EuclideanSpace ℂ (Unit × CovariantWord 2 n) :=
WithLp.toLp 2 fun p => v (firstCoordinates hk p.2) * psi (remainingCoordinates p.2)
/-- Basis or superposition instance of Lambda, with trivial reference. -/
def simpleLambda {n k t : ℕ} (hk : k ≤ n) (ht : t ≤ n)
(psi : EuclideanSpace ℂ (CovariantWord 2 (n-k))) (v : EuclideanSpace ℂ (CovariantWord 2 k)) :=
u1Lambda ht (pureDensity (simpleInitial hk psi v))
/-- Normalized equal-weight-u1SectorProjector entangled vector, (B5), p.17.
Impossible sectors return zero and are excluded from all normalized uses. -/
def sectorBell (m q : ℕ) : EuclideanSpace ℂ (CovariantWord 2 m × CovariantWord 2 m) :=
WithLp.toLp 2 fun p => if p.1 = p.2 ∧ chargeHammingWeight p.1 = q then
((Real.sqrt (m.choose q : ℝ))⁻¹ : ℂ) else 0
/-- Actual Gamma_i of (B11)–(B12), with only physical j sectors. -/
def choiGammaCoefficient {n k t : ℕ} (hk : k ≤ n) (ht : t ≤ n) (alpha : ℕ)
(psi : EuclideanSpace ℂ (CovariantWord 2 (n-k))) (i : ℕ)
(a : CovariantWord 2 n) (b : CovariantWord 2 t) (r : CovariantWord 2 k) (e : CovariantWord 2 t) : ℂ :=
∑ j ∈ Finset.range (n+1),
if i ≤ j ∧ j-i ≤ t ∧ alpha ≤ j ∧ j-alpha ≤ k then
(Real.sqrt (((t.choose (j-i) : ℝ) * (k.choose (j-alpha) : ℝ)) /
((2 : ℝ)^k * (n.choose j : ℝ))) : ℂ) *
sectorBell t (j-i) (b,e) * sectorBell k (j-alpha) (firstCoordinates hk a,r) * psi (remainingCoordinates a)
else 0
/-- Kappa, (B25), p.18: NO square root on the two binomial factors
in the inner sum. Signed indices omit every impossible u1SectorProjector. -/
def choiKappaValue (n k t alpha : ℕ) : ℝ :=
∑ i ∈ Finset.range (n-t+1),
(∑ j ∈ Finset.range (n+1),
chooseZ t ((j : ℤ)-i) * chooseZ k ((j : ℤ)-alpha) /
Real.sqrt ((2 : ℝ)^k * (n.choose j : ℝ)))^2
/-- Four unit phases used for the normalized two-basis-state superpositions. -/
def FourPhase (z : ℂ) : Prop := z = 1 ∨ z = -1 ∨ z = Complex.I ∨ z = -Complex.I
/-- (49)–(50), p.7; x!=y is carried at every normalized use. -/
def superposition {k : ℕ} (x y : CovariantWord 2 k) (z : ℂ) : EuclideanSpace ℂ (CovariantWord 2 k) :=
((Real.sqrt 2)⁻¹ : ℂ) • (ket x + z • ket y)
/-- A direct-sum-product coordinate index, (26), p.4. -/
abbrev SymmetryBlockCoordinates {J : Type*} (l r : J → ℕ) := (j : J) × (Fin (l j) × Fin (r j))
/-- The A* output coordinates, with the two multiplicity factors only. -/
abbrev StarIndex {J : Type*} (r : J → ℕ) := (j : J) × (Fin (r j) × Fin (r j))
/-- Physical projector onto a block of the actual unitary decomposition. -/
def blockProjector {J : Type*} [Fintype J] {d n : ℕ} (l r : J → ℕ)
(S : Matrix (SymmetryBlockCoordinates l r) (CovariantWord d n) ℂ) (j : J) : Op (CovariantWord d n) :=
fun a b => ∑ u : Fin (l j), ∑ v : Fin (r j), conj (S ⟨j,(u,v)⟩ a) * S ⟨j,(u,v)⟩ b
/-- Xi of (26)/(A5), pp.4,15. In normalized Bell contraction the
sqrt(l_j) cancels; the barred decomposition uses conjugate coordinates. -/
def generalXi {J : Type*} [Fintype J] {d n : ℕ} (l r : J → ℕ)
(S : Matrix (SymmetryBlockCoordinates l r) (CovariantWord d n) ℂ) (j : StarIndex r)
(a b : CovariantWord d n) : ℂ :=
(Real.sqrt ((d : ℝ)^n / r j.1) : ℂ) *
∑ u : Fin (l j.1), S ⟨j.1,(u,j.2.1)⟩ a * conj (S ⟨j.1,(u,j.2.2)⟩ b)
/-- Lambda of (25)/(A5), constructed from its input, normalized Choi
state and the actual decomposition. No desired norm/entropy bound is assumed. -/
def generalLambda {J R : Type*} [Fintype J] [Fintype R]
{d n t : ℕ} (ht : t ≤ n) (l r : J → ℕ)
(S : Matrix (SymmetryBlockCoordinates l r) (CovariantWord d n) ℂ) (Psi : Op (R × CovariantWord d n)) :
Op (StarIndex r × (R × CovariantWord d t)) :=
fun x y => ∑ a : CovariantWord d n, ∑ b : CovariantWord d n, ∑ c : CovariantWord d n, ∑ e : CovariantWord d n,
generalXi l r S x.1 a b * conj (generalXi l r S y.1 c e) *
Psi (x.2.1,a) (y.2.1,c) * erasureChoi ht (b,x.2.2) (e,y.2.2)
/-- The actual accepted Schur transform reordered with L first and R second. -/
def physicalSchurBlockCoordinates (d n : ℕ) :
Matrix (SymmetryBlockCoordinates (fun lam : Schur.Partition d n => ldim lam) rdim) (CovariantWord d n) ℂ :=
fun j a => Schur.decomposition d n ⟨j.1,(j.2.2,j.2.1)⟩ a
/-- Shannon entropy of the zero-padded normalized row vector, (A16), p.16. -/
def shapeEntropy {d m : ℕ} (lam : Schur.Partition d m) : ℝ :=
-∑ i : Fin d, ((lam.val.rowLen i.val : ℝ)/m) * Real.logb 2 ((lam.val.rowLen i.val : ℝ)/m)
example {d n t : ℕ} (ht : t ≤ n) (x : CovariantWord d t) (z : CovariantWord d (n-t))
(i : Fin n) (hi : i.val < t) : concat ht x z i = x ⟨i.val,hi⟩ := by
simp [concat,hi]
example {R : Type*} [Fintype R] {n t : ℕ} (ht : t ≤ n) :
u1Lambda (R := R) ht 0 = 0 := by ext a b; simp [u1Lambda]
example (m q : ℕ) (a b : CovariantWord 2 m) (h : a ≠ b) : sectorBell m q (a,b) = 0 := by
simp [sectorBell,h]
/-- Coefficient in (C17), PDF p.20. The term -2 sqrt(2) alpha is LINEAR
in alpha; it is not -2 sqrt(2 alpha). -/
def constantCoeff11 (alpha : ℕ) : ℝ :=
(-Real.sqrt 2-2*Real.sqrt 2*alpha+Real.sqrt ((alpha : ℝ)*(2*alpha+1))+
Real.sqrt (((alpha : ℝ)+1)*(2*alpha+1)))/(2*Real.sqrt 2)
/-- Coefficient in (C18), PDF p.20. -/
def constantCoeff22 (alpha : ℕ) : ℝ :=
(-2-2*(alpha : ℝ)+Real.sqrt ((alpha : ℝ)*(alpha+1))+
Real.sqrt (((alpha : ℝ)+1)*(alpha+2)))/2
/-- Actual normalized lambda-isotypic projector in n-1 qudits, (D9). -/
def isotypicState {d m : ℕ} (lam : Schur.Partition d m) : Op (CovariantWord d m) :=
((ldim lam * rdim lam : ℕ) : ℂ)⁻¹ • Schur.isotypicProjector lam
/-- Delete the j-th coordinate; t>=1 is supplied at every use. -/
def removeSite {d t : ℕ} (j : Fin t) (x : CovariantWord d t) : CovariantWord d (t-1) :=
fun i => x ⟨if i.val < j.val then i.val else i.val+1,by split_ifs <;> omega⟩
/-- rho on retained site j and tau on the other t-1 retained sites. -/
def insertAt {d t : ℕ} (j : Fin t) (rho : Op (Fin d)) (tau : Op (CovariantWord d (t-1))) :
Op (CovariantWord d t) :=
fun a b => rho (a j) (b j) * tau (removeSite j a) (removeSite j b)
/-- Convert the one-qudit logical register to its single site. -/
def logicalMatrix {d : ℕ} (rho : Op (Fin d)) : Op (CovariantWord d 1) :=
fun a b => rho (a 0) (b 0)
/-- (D10), including t=n. The last term is omitted at t=n rather
than tracing a fictitious -1 qudits. -/
def suMarginalFormula {d n t : ℕ} (hn : 2 ≤ n) (ht0 : 1 ≤ t) (ht : t ≤ n)
(lam : Schur.Partition d (n-1)) (rho : Op (Fin d)) : Op (CovariantWord d t) :=
(n : ℂ)⁻¹ • ∑ j : Fin t,
insertAt j rho (firstTrace (show t-1 ≤ n-1 by omega) (isotypicState lam)) +
if h : t < n then (((n-t : ℕ) : ℂ)/(n : ℂ)) •
firstTrace (show t ≤ n-1 by omega) (isotypicState lam) else 0
/-- Exact oneErasureMeanChannel averaged erased-qudit channel, (D13), p.22. -/
def oneErasureMeanChannel (d n : ℕ) : Superop (Fin d) (Fin d) :=
fun X => (n : ℂ)⁻¹ • X + (((n : ℂ)-1)/(n : ℂ) * X.trace) • mixed (Fin d)
/-- Schmidt probabilities (not amplitudes) give this normalized ket. -/
def schmidtKet {d : ℕ} (p : Fin d → ℝ) : EuclideanSpace ℂ (Fin d × Fin d) :=
WithLp.toLp 2 fun a => if a.1 = a.2 then (Real.sqrt (p a.1) : ℂ) else 0
/-- Coefficient of 1/n in (D23); 0/0=0 is the continuous value
for two zero Schmidt probabilities. -/
def schmidtLeading {d : ℕ} (p : Fin d → ℝ) : ℝ :=
Real.sqrt ((d : ℝ)/2 * (∑ i, ∑ j, p i*p j/(p i+p j))-1/4)
example (d n : ℕ) : oneErasureMeanChannel d n 0 = 0 := by simp [oneErasureMeanChannel]
example (d : ℕ) (X : Op (Fin d)) : oneErasureMeanChannel d 1 X = X := by simp [oneErasureMeanChannel]
example (m : ℕ) (a : CovariantWord 2 m) : sectorBell m (chargeHammingWeight a) (a,a) =
((Real.sqrt (m.choose (chargeHammingWeight a) : ℝ))⁻¹ : ℂ) := by simp [sectorBell]
/-- Classical location flag with its corresponding surviving register, p.14. -/
abbrev FlaggedIndex (d n : ℕ) := (S : Finset (Fin n)) × RetainedConfigurations d n Sᶜ
/-- Arbitrary distribution over erased sets of exactly t sites, independent
of the unknown logical state. -/
def LocationLaw {n : ℕ} (t : ℕ) (p : Finset (Fin n) → ℝ) : Prop :=
(∀ S, 0 ≤ p S) ∧ (∑ S, p S = 1) ∧ ∀ S, S.card ≠ t → p S = 0
/-- Flagged erasure after the appendUnitaryEncoder: the receiver learns S and gets S^c.
Different location flags are orthogonal blocks. -/
def locationFlaggedErasureEncoder {d n k : ℕ} (hk : k ≤ n) (anc : Op (CovariantWord d (n-k)))
(p : Finset (Fin n) → ℝ) (U : Op (CovariantWord d n)) :
Superop (CovariantWord d k) (FlaggedIndex d n) :=
fun rho a b => if h : a.1 = b.1 then
(p a.1 : ℂ) * noisyEncoder hk anc a.1 U rho a.2 (h.symm ▸ b.2) else 0
/-- Failure means either one erased set violates the bound or one flagged
mixture violates it. A single good appendUnitaryEncoder works simultaneously for all
locations and all input-independent distributions of the fixed erasure size. -/
def locationFailure {d n k : ℕ} (worst : Bool) (hk : k ≤ n)
(anc : Op (CovariantWord d (n-k))) (t : ℕ) (b : ℝ) (U : Op (CovariantWord d n)) : Prop :=
(∃ S : Finset (Fin n), S.card = t ∧ b < selectedRecoveryError worst (noisyEncoder hk anc S U)) ∨
(∃ p : Finset (Fin n) → ℝ, LocationLaw t p ∧
b < selectedRecoveryError worst (locationFlaggedErasureEncoder hk anc p U))
/-- U(1) main-bound extension to flagged random erasures, §VI p.14. -/
def U1LocationPerformance (worst : Bool) (laws : PhysicalUnitaryLaws 2) : Prop :=
∀ a : ℝ, 0 < a → a < 1 → ∃ C c : ℝ, 0 < C ∧ 0 < c ∧
∀ N k t alpha : ℕ → ℕ, Tendsto N atTop atTop →
Tendsto (fun i => u1Ratio worst (N i) (k i) (t i)) atTop (nhds 0) →
(∀ i, 0 < N i ∧ 0 < k i ∧ k i ≤ N i ∧ 0 < t i ∧ t i ≤ N i ∧
alpha i ≤ N i-k i ∧ (alpha i : ℝ) = a*N i) →
∃ i0 : ℕ, ∀ i ≥ i0, ∀ hk : k i ≤ N i,
∀ psi : EuclideanSpace ℂ (CovariantWord 2 (N i-k i)), ChargeState (alpha i) psi →
let b := u1Leading worst a (N i) (k i) (t i) *
(1+C*u1Ratio worst (N i) (k i) (t i))
(laws (N i)).real {U | locationFailure worst hk (pureDensity psi) (t i) b U} ≤
Real.exp (-c*N i) ∧
∀ p : Finset (Fin (N i)) → ℝ, LocationLaw (t i) p →
(∫ U, selectedRecoveryError worst (locationFlaggedErasureEncoder hk (pureDensity psi) p U) ∂laws (N i)) ≤ b
/-- SU(d) extension to one flagged random erasure, §VI p.14. -/
def SULocationPerformance (worst : Bool) (d : ℕ) (laws : PhysicalUnitaryLaws d) : Prop :=
∀ eta : ℝ, 0 < eta → ∃ C c : ℝ, 0 < C ∧ 0 < c ∧
∃ n0 : ℕ, ∀ n ≥ n0, ∀ hn : 2 ≤ n, ∀ lam : Schur.Partition d (n-1),
eta*n ≤ (n : ℝ)-lam.val.rowLen 0 →
∀ psi : EuclideanSpace ℂ (Fin (rdim lam)), IsState psi →
let b := Real.sqrt ((d : ℝ)^2-1)/(2*n)+C/(n : ℝ)^2
(laws n).real {U | locationFailure worst (show 1 ≤ n by omega) (suAncilla lam psi) 1 b U} ≤
Real.exp (-c*n) ∧
∀ p : Finset (Fin n) → ℝ, LocationLaw 1 p →
(∫ U, selectedRecoveryError worst
(locationFlaggedErasureEncoder (show 1 ≤ n by omega) (suAncilla lam psi) p U) ∂laws n) ≤ b
example {n : ℕ} (p : Finset (Fin n) → ℝ) (hp : LocationLaw 0 p)
(S : Finset (Fin n)) (hS : S.card ≠ 0) : p S = 0 := hp.2.2 S hS
example {d n k : ℕ} (hk : k ≤ n) (anc : Op (CovariantWord d (n-k)))
(p : Finset (Fin n) → ℝ) (U : Op (CovariantWord d n)) (rho : Op (CovariantWord d k))
(a b : FlaggedIndex d n) (h : a.1 ≠ b.1) :
locationFlaggedErasureEncoder hk anc p U rho a b = 0 := by simp [locationFlaggedErasureEncoder,h]
end QAlgorithms.Papers.Independent.Extend50.P09
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P09.ChargeState
For any natural numbers and complex Euclidean vector indexed by binary words of length , this predicate means that and for every word with . It cannot hold when . For , it requires and the coefficient at the unique empty word to have modulus .
QAlgorithms.Papers.Independent.Extend50.P09.CovariantWord
For natural numbers , a word is a function . Thus it is an ordered list of symbols from an alphabet of size . There is exactly one word when , including when ; there are no words when .
QAlgorithms.Papers.Independent.Extend50.P09.DesignLaw
For a finite index type with decidable equality, an arbitrary predicate on complex matrices, and two Borel measures on those matrices, this defines the conjunction of the following requirements: is a probability measure and ; is a probability measure, , and for every matrix satisfying , the pushforward of by equals ; and, for each and every four index functions ,
The predicate is not required by this definition to describe a group or unitary matrices, and invariance of is not required. The integral equalities use the total complex Bochner integral and contain no separate integrability assumption. Empty is allowed; in that case the moment requirements have no index functions to quantify over.
QAlgorithms.Papers.Independent.Extend50.P09.FlaggedIndex
For natural numbers , this abbreviates the dependent indexing set of pairs , where is any subset of and assigns an element of to every site outside . Thus the domain of depends on . Empty and full subsets are included; the full subset admits the unique empty assignment. For , the indexing set has one element. For , only the full subset admits an assignment, so the indexing set again has one element.
QAlgorithms.Papers.Independent.Extend50.P09.FourPhase
For a complex number , this predicate means exactly
where .
QAlgorithms.Papers.Independent.Extend50.P09.FullGroup
For any natural numbers and complex matrix indexed by length- words over , this predicate means exactly that . For , this requires the scalar entry of to have modulus ; for and , it holds for the unique matrix on the empty indexing space.
QAlgorithms.Papers.Independent.Extend50.P09.IsCommutantHaarLaw
For any finite type with decidable equality, any predicate on complex matrices indexed by , and any measure on those matrices, this predicate means that is a probability measure, , and, for every matrix satisfying , the pushforward of under equals . The predicate is arbitrary: no group or unitarity condition on its satisfying matrices is separately required. The finite type may be empty.
QAlgorithms.Papers.Independent.Extend50.P09.LocationLaw
For natural numbers and an arbitrary real-valued function on the subsets of , this predicate means exactly
It does not require equal weights on the subsets of size . If , the conditions cannot hold. When , they force all mass onto the empty subset; in particular, for they hold precisely when and .
QAlgorithms.Papers.Independent.Extend50.P09.PhysicalUnitaryLaws
For every natural number , this abbreviates the type of families assigning to each natural number a measure on complex matrices indexed by length- words over . The abbreviation itself imposes no probability, support, invariance, or unitarity conditions on these measures. It includes , where matrices have one scalar entry, and , where for the matrix indexing set is empty.
QAlgorithms.Papers.Independent.Extend50.P09.RetainedConfigurations
For natural numbers and a finite set , a retained configuration is a function , assigning one alphabet symbol to each site in . If is empty, there is exactly one such configuration, including when ; if and is nonempty, there are none.
QAlgorithms.Papers.Independent.Extend50.P09.SUGroup
For any natural numbers and complex matrix indexed by length- words over , this predicate means that , , and, for every complex matrix satisfying and , one has , where . For , is a scalar matrix and the determinant condition forces its entry to equal . If and , the indexing space is empty and these conditions hold for its unique matrix.
QAlgorithms.Papers.Independent.Extend50.P09.SULocationPerformance
For an arbitrary natural number , a Boolean , and an arbitrary family of measures on complex matrices indexed by -ary words of length , this predicate says that for every real there exist real constants and a natural number such that, for every natural , every supplied hypothesis , every Young diagram with cells and at most rows satisfying
(where is its first row length), and every unit vector , the following bounds hold. Here is the complex dimension of the supplied Specht space and is the dimension of the supplied Schur space. More explicitly, number the diagram’s cells by ; let be the permutations preserving respectively each cell’s row and column. The Specht space is the range of the matrix on permutations with entries , and the Schur space is the range of , where . Using the supplied orthonormal bases and of these spaces, form the synthesis matrix, over all diagrams with cells and at most rows,
The inverse square root here is continuous functional calculus with scalar value , including value zero at . Define vectors and the ancillary matrix
For a physical matrix , encode a single logical -level register by . Write for its output after tracing out , and, for real weights summing to one and vanishing unless , write for the map with -diagonal block and zero blocks between distinct flags. Define by infimizing over maps of the form , with finitely many and . For , the minimized quantity is , where ; for , replace this quantity by its supremum over all unit vectors on . In both cases
The required conclusions are
The first event permits its witnessing or to depend on ; the second bound holds for each fixed admissible . The constants and precede all choices of diagram, vector, and location law. This definition assumes neither probability normalization nor unitary support of , and states no separate integrability condition; the real measure conversion sends to zero. It imposes no restriction : for there are no eligible diagrams when , and for the diagram inequality fails for all sufficiently large . A zero-dimensional Specht space admits no unit vector, and division by a zero Schur dimension uses the total convention .
QAlgorithms.Papers.Independent.Extend50.P09.SUPerformance
For a Boolean flag , any natural number , and a family of measures on all complex matrices on -ary words of length , this defines the following proposition. For every real , there exist real constants and a natural number such that, for every , every supplied witness of , every Young diagram with cells and first-column length at most satisfying
every vector of norm one, and every subset of cardinality one,
The map adjoins the matrix on coordinates to a logical matrix on one -dimensional coordinate, conjugates by , and traces out the coordinates in . The ancillary matrix is
Its ingredients are defined for all Young diagrams of size and first-column length at most : using their fixed cell numberings, let preserve rows and columns, define , let , and set . Then are the dimensions of the ranges of . For their fixed selected orthonormal bases , set
with continuous functional calculus and . For a map from the logical system to the surviving system, the recovery errors in the assertion are
where , ranges over vectors on two copies of the logical system, and ranges over channels back to it. Channels have finite Kraus forms with ; the identity extension acts on reference-indexed matrix blocks. The distance is
with real square roots zero on negative arguments. No probability, support, unitarity, or integrability assumption on is included in this predicate; integration is the total Bochner integral, and extended measure values are converted to real numbers with infinity sent to zero. The constants and are chosen before . There is no assumption : if there are no eligible diagrams or unit vectors, the corresponding universal requirements are vacuous; an ancillary sum with defines zero.
QAlgorithms.Papers.Independent.Extend50.P09.StarIndex
For any type and any function , this abbreviates the dependent set of triples
Neither finiteness nor nonemptiness of is assumed, and a label with contributes no triples.
QAlgorithms.Papers.Independent.Extend50.P09.SymmetryBlockCoordinates
For any type and any functions , this abbreviates the dependent set of triples
Neither finiteness nor nonemptiness of is assumed. A label contributes no triples if either or .
QAlgorithms.Papers.Independent.Extend50.P09.U1Group
For every natural number and complex matrix indexed by binary words of length , this predicate means precisely that and , where is the diagonal matrix with entry at word . Here denotes conjugate transpose. For , , so the predicate requires only that the single scalar entry of have modulus .
QAlgorithms.Papers.Independent.Extend50.P09.U1LocationPerformance
For a Boolean and an arbitrary family of measures on complex matrices indexed by binary words of length , this predicate has the following meaning; it does not itself require those measures to be probability measures or to be supported on unitaries. For every real with , there exist real constants such that, for every four sequences of natural numbers satisfying ,
and, for every ,
there is an index such that the following holds for every , every supplied proof of , and every complex unit vector on binary words of length whose amplitude is zero on every word whose number of ones differs from . Define
For a physical matrix , encode a logical matrix as , with on the first sites, and let be the result after tracing out the sites in . For any real probability weights on subsets, supported on , let be the flagged channel whose -diagonal block is and whose blocks between different flags vanish. For any such map , define by infimizing over finite Kraus channels : when , minimize the distance between and its image under ; when , first take the supremum of that distance over all unit vectors on , using the same . Here , a finite Kraus channel has the form with , and the distance is
with functional-calculus matrix square roots. The two required conclusions are
The existentially quantified in the event may depend on , whereas the integral statement holds separately for every fixed admissible . The notation converts an extended nonnegative measure value to a real number and sends to zero; the integral is the total Bochner integral, with no separate integrability hypothesis in this predicate. The threshold may depend on the four sequences, but precedes the choices of and . The exact integer equality , required at every index, makes the sequence hypotheses impossible for irrational .
QAlgorithms.Papers.Independent.Extend50.P09.U1Performance
For a Boolean flag and a family of measures on all complex matrices indexed by binary words of length , this defines the following proposition. For every real with , there exist real constants such that, for every four sequences of natural numbers satisfying
and, for every ,
there is an index such that the following holds for every , every supplied witness of , every unit vector on binary words of length whose amplitudes vanish outside words of Hamming weight , and every subset of cardinality :
where
Here sends a logical matrix on the first binary coordinates to the matrix obtained by adjoining on the remaining coordinates, conjugating by , and tracing out precisely the coordinates in ; the surviving coordinates are . The notation means the matrix with entries . For any such map , define
Both infima range over channels from the surviving system to the logical system; the supremum ranges over vectors on two copies of the logical system; ; and applies to each matrix block indexed by the reference coordinates. A channel is a map for a finite family satisfying . The distance used here is
The real square root is zero on negative arguments. The superscript “real” on a measure value means conversion from the extended nonnegative reals, with infinite mass converted to zero. The definition itself imposes no probability, support, unitarity, or integrability assumptions on the measures; the integrals use the total Bochner integral. The constants precede the choice of sequences, while precedes the choices of and . The exact integer condition can make the sequence hypotheses impossible—for example when is irrational—in which case that implication is vacuous.
QAlgorithms.Papers.Independent.Extend50.P09.append
For natural numbers , a hypothesis , and any complex matrix indexed by the words of length over , define a function from matrices on length- words to matrices on length- words by
where for , and for , with the same definitions for . No positivity or normalization assumption is imposed on or . If , is a matrix on the singleton consisting of the empty word, so the function scales by its sole entry; if , it scales by the sole entry of . Zero alphabet sizes are also included, with a singleton word set at length and an empty word set at positive length.
QAlgorithms.Papers.Independent.Extend50.P09.appendUnitaryEncoder
For natural numbers , a hypothesis , any complex matrix on length- words, and any complex matrix on length- words over , define the function
where and , and likewise for . Here is any complex matrix on length- words and is the conjugate transpose. No unitarity hypothesis is imposed on , and neither nor is required to be a density matrix. The cases , , , and are included, using the unique empty word whenever a register has length .
QAlgorithms.Papers.Independent.Extend50.P09.avgBasis
For arbitrary natural numbers , this defines a complex diagonal matrix indexed by binary words , with diagonal entries
and all off-diagonal entries equal to . The displayed real values are embedded in . Here , is an integer difference, out-of-range binomial coefficients are , and division by is . Consequently the matrix is zero when . No condition is imposed, and gives a matrix on the single empty word.
QAlgorithms.Papers.Independent.Extend50.P09.avgChoi
For arbitrary natural numbers , let , represented as functions from to , and put . This defines the complex diagonal matrix indexed by , with entries
The displayed real diagonal value is embedded in . Here , the numerator’s lower argument is an integer difference, out-of-range binomial coefficients are , and division by is . No relation among the parameters or normalization condition is assumed; zero-length words are included and have weight .
QAlgorithms.Papers.Independent.Extend50.P09.avgFullChoi
For arbitrary natural numbers , let be the diagonal matrix indexed by binary words , with diagonal entry when and otherwise. This defines the complex matrix indexed by
The binomial coefficients and the power of are interpreted in , with integer exponent , and the inverse of is . Thus terms with contribute . No relation among or normalization hypothesis is imposed, and and are included.
QAlgorithms.Papers.Independent.Extend50.P09.basisDistance
For arbitrary natural numbers , write for the number of coordinates of a binary word and define
Here , the numerator’s lower argument is an integer difference, out-of-range binomial coefficients are , and division by is . Let and be diagonal matrices on with entries and , respectively. This defines
Matrix square roots use continuous functional calculus, and a real square root of a negative number is . No parameter inequalities or normalization assumptions are required. The maximum is over a finite nonempty set even when , when its sole element is the empty word.
QAlgorithms.Papers.Independent.Extend50.P09.blockProjector
Let be any finite type, let , let , and write . For any complex matrix whose rows are triples with and , and whose columns are words in , and for any , this defines the square matrix on by
No isometry or unitarity assumption on is part of this definition. If or , the matrix is zero. The word set has one element when , including when , and is empty when .
QAlgorithms.Papers.Independent.Extend50.P09.chargeHammingWeight
For every natural number and word , this defines its charge to be , using the natural-number values of the symbols. Equivalently, it counts the coordinates equal to . For , the unique empty word has charge .
QAlgorithms.Papers.Independent.Extend50.P09.chargeRotation
For every natural number and real number , this defines the complex diagonal matrix indexed by binary words of length with diagonal entries at words , and zero off-diagonal entries. For , it is the identity on the one-dimensional space indexed by the empty word.
QAlgorithms.Papers.Independent.Extend50.P09.choiError
For any finite types with decidable equality and any function from complex matrices to complex matrices, define its error to be . Here has amplitude when and otherwise; , where ; and ranges over functions admitting a finite Kraus representation , with , an complex matrix, and . The function is , where and denotes real continuous functional calculus with the scalar square root; the outer real square root is on negative arguments. The infimum is a real infimum and need not be attained. No channel condition is imposed on , and neither type is assumed nonempty; for empty , is the zero vector, and if no such exists, the defining set is empty and its total real infimum is .
QAlgorithms.Papers.Independent.Extend50.P09.choiGammaCoefficient
For natural numbers with and , arbitrary natural numbers , any complex Euclidean vector on binary words of length , and binary words of lengths , respectively, this defines the complex number
where and are its prefix and suffix, and
All real factors are regarded as complex. No normalization of is assumed. The summation conditions ensure the displayed subtractions do not underflow and all binomial denominators are positive. Zero lengths are allowed; if or , the value is zero.
QAlgorithms.Papers.Independent.Extend50.P09.choiKappaValue
For arbitrary natural numbers , with no inequalities imposed among them, this defines the real number
where binomial coefficients are regarded as real and are zero when the lower nonnegative index exceeds the upper index. The differences and are integer differences, while is truncated natural subtraction. Thus, even when , the outer sum contains the term . Zero parameters are included, and every denominator in the inner sum is positive because .
QAlgorithms.Papers.Independent.Extend50.P09.choiLambda
For natural numbers satisfying and , and any complex Euclidean vector on binary words of length , this defines a matrix indexed by . Its entry at row and column is
Here have length , have length , have length , counts 's, and each prefix or suffix selects the indicated coordinates. No normalization of is required. All zero-length cases are included, with empty words interpreted uniquely.
QAlgorithms.Papers.Independent.Extend50.P09.choiMarginalCoefficient
For arbitrary natural numbers , this defines the real coefficient
Here , the numerator’s lower argument is an integer difference, binomial coefficients outside their usual range are , and division by is . The power uses the integer exponent . There are no further restrictions on the parameters; for the sum contains just the term , and terms with contribute .
QAlgorithms.Papers.Independent.Extend50.P09.choiMarginalState
For arbitrary natural numbers , this defines a complex diagonal matrix indexed by binary words , whose diagonal entry at is the real number
embedded in ; all off-diagonal entries are . Here is the sum of the binary coordinates, , the numerator’s lower argument is an integer difference, out-of-range binomial coefficients are , and division by is . No parameter inequalities or trace normalization are required. If , the sum has one term; if , the matrix has one index, the empty word.
QAlgorithms.Papers.Independent.Extend50.P09.chooseZ
For every natural number and integer , this defines
with the binomial coefficient regarded as a real number. When , its integer value is converted to a natural number before taking the binomial coefficient. Thus the value is also when ; is included.
QAlgorithms.Papers.Independent.Extend50.P09.collectiveQuditAction
For any natural numbers and arbitrary complex matrix , this defines the matrix indexed by length- words over whose entry at words is . No unitarity assumption is imposed on . When , the empty product gives the one-by-one matrix with entry , including when ; when and , there are no indexing words.
QAlgorithms.Papers.Independent.Extend50.P09.comparatorDistance
For arbitrary natural numbers , write for the number of coordinates in a binary word, and set
Here natural subtraction means , the numerator’s lower argument is an integer difference, out-of-range binomial coefficients are , and division by is . Define diagonal matrices on pairs by diagonal entries and . The definition returns
with matrix square roots defined by continuous functional calculus. There are no parameter inequalities or normalization assumptions; all zero parameters are included. The outer square root is the total real square-root function, which returns for a negative argument.
QAlgorithms.Papers.Independent.Extend50.P09.comparatorFidelity
For arbitrary natural numbers , write for the number of coordinates in a binary word , and define
Here , lower arguments such as are integer differences, out-of-range binomial coefficients are , and division by is . Let and be diagonal matrices indexed by pairs , with diagonal entries and , respectively. This definition returns
where matrix square roots are given by continuous functional calculus. In particular, the factor in comes from the matrix on the -bit register. No parameter restrictions or trace-one assumptions are imposed, and zero-length registers are allowed.
QAlgorithms.Papers.Independent.Extend50.P09.concat
For natural numbers with , let . Given words and , this defines their concatenation by
Zero lengths are allowed: gives , and gives . If , words of positive length do not exist, while the length-zero word is unique.
QAlgorithms.Papers.Independent.Extend50.P09.constantCoeff11
For every natural number , including , this defines the real number
QAlgorithms.Papers.Independent.Extend50.P09.constantCoeff22
For every natural number , including , this defines the real number
QAlgorithms.Papers.Independent.Extend50.P09.embeddedSchurSpechtVector
For natural numbers , a Young diagram with cells and first-column length at most , an arbitrary vector , and an index , this defines a vector on -ary words of length by
Here the matrix is specified as follows, without an assumed unitarity property. For each Young diagram with cells and first-column length at most , use its fixed cell numbering to form the row-preserving and column-preserving permutation sets . On complex functions on , let
and on complex functions on -ary words let
Set and , and denote by and the fixed orthonormal bases selected for these two ranges. With column index , form
where uses continuous functional calculus and . The vector is not required to be normalized, and the resulting vector is not asserted to be normalized. Zero values of are allowed whenever the supplied diagram and index exist; if , the defining sum is empty and the resulting vector is zero, while if , no index can be supplied.
QAlgorithms.Papers.Independent.Extend50.P09.erasureChoi
For natural numbers with , let denote length- words over , and let and denote the first and last coordinates of . This defines the complex matrix indexed by whose entries are
Equivalently, it starts with the vector having amplitude on pairs of identical length- words and zero elsewhere, forms its outer product, and sums over matching last coordinates of the second register. All zero lengths are included; for , the matrix has a single entry . For , its indexing set is empty.
QAlgorithms.Papers.Independent.Extend50.P09.firstCoordinates
For natural numbers , a hypothesis , and a word , define its first coordinates to be the word for . When , this is the unique empty word; when , it has all the coordinates of .
QAlgorithms.Papers.Independent.Extend50.P09.firstTrace
For natural numbers satisfying , write for the words of length over . This defines a function from complex matrices indexed by to complex matrices indexed by : for every input matrix and ,
where has coordinate for and otherwise. No positivity or normalization of is required. When , the sum has one term; when , its sole output entry is . Empty indexing sets are permitted, with empty sums equal to zero.
QAlgorithms.Papers.Independent.Extend50.P09.generalLambda
Let be finite types, let satisfy , let , let be a complex matrix with rows , , , and columns , and let be any square complex matrix on . Define
For a word , write for its first coordinates and for its remaining coordinates, and define
This is the matrix obtained by applying the map that traces out the final coordinates to the second half of the rank-one matrix of the vector having amplitude on equal pairs of length- words and zero elsewhere. The declaration defines a square matrix on
by
No normalization, positivity, or unitarity assumption on or is imposed. Empty sums are zero, zero reciprocals are interpreted as zero, and the definition includes , , , and empty or .
QAlgorithms.Papers.Independent.Extend50.P09.generalXi
Let be any finite type, let , let , and let be a complex matrix with rows , where and , and columns length- words over . For an index with , and any two such words , this defines
with the real square root regarded as a complex scalar. The existence of ensures ; no positivity assumption on or isometry assumption on is imposed, and the value is zero if . The definition includes , with , and ; for , there are no words .
QAlgorithms.Papers.Independent.Extend50.P09.hyper
For arbitrary natural numbers , this defines
where , the lower argument in the numerator is an integer difference, and a binomial coefficient with negative lower argument or lower argument exceeding its upper argument is defined to be . Both coefficients are converted to real numbers before division. Division by has value , so in particular whenever . No restriction such as , , or is assumed, and zero parameters are allowed.
QAlgorithms.Papers.Independent.Extend50.P09.initialChoi
For natural numbers satisfying , and any complex Euclidean vector indexed by binary words of length , this defines a vector indexed by pairs of binary words of lengths and , respectively, by
where and . There is no normalization or support assumption on . The cases , , and are included, using the unique empty word for every length-zero register.
QAlgorithms.Papers.Independent.Extend50.P09.insertAt
For natural numbers , a site , an arbitrary complex matrix , and an arbitrary complex matrix indexed by length- words over , this defines a matrix on length- words by
Thus the word supplied to is obtained by deleting site , preserving the order of the other sites. No positivity, trace, or normalization conditions are imposed. The argument forces ; when , is indexed by the unique empty word and contributes a scalar. When , the length- indexing set is empty.
QAlgorithms.Papers.Independent.Extend50.P09.isotypicState
For implicit natural numbers and a Young diagram having exactly cells and first-column length at most , this defines a matrix on words by
The quantities here are defined as follows: use the fixed bijection between the cells of and chosen by the finite-cardinality equivalence; let be the permutations preserving, respectively, the row and column of each numbered cell. Let , and let be the complex dimension of its range. On , form the matrix with entries ; let be its range, , and the orthogonal projection onto . Finally, , where . No positivity or normalization assertion is included in this definition. Values and are not excluded, although a diagram satisfying the stated constraints must exist; if , its reciprocal is defined as zero.
QAlgorithms.Papers.Independent.Extend50.P09.joinSites
For natural numbers , a finite set , a configuration , and a configuration , define their joined length- word by for and for , where the complement is taken among the sites. This includes , when the result is , and equal to all sites, when the result is . For , all three configurations are the unique empty function; for , no pair of configurations exists.
QAlgorithms.Papers.Independent.Extend50.P09.jointUnitaryEntryMoment
For any finite index type , any natural number , four functions , and any complex matrix indexed by , this defines
No unitarity assumption on is present. Repeated indices are allowed. For , both products are empty and the value is ; if is empty and , the required index functions do not exist.
QAlgorithms.Papers.Independent.Extend50.P09.ldim
For arbitrary natural numbers and a Young diagram with cells and first-column length at most , this defines to be the complex dimension of the range of an operator on complex functions on words . Using the fixed numbering of the cells of , let and be the permutations preserving each cell’s row and column, respectively. For , set
Then the definition is
No positivity assumptions on are present. At , the word set contains the unique empty word, including when ; at , no admissible exists.
QAlgorithms.Papers.Independent.Extend50.P09.locationFailure
For arbitrary natural numbers , a Boolean , a hypothesis , an arbitrary complex matrix on the words , a real number , and an arbitrary complex matrix on the words , this predicate says that at least one of two kinds of recovery error exceeds , strictly. To specify the errors, for a channel candidate from a logical register to an output register , put
where the supremum ranges over complex unit vectors on , when and is zero otherwise, and
The square roots are the supplied continuous functional calculus and real square root; in particular, the latter returns zero on negative inputs. A channel here means a map with finitely many matrices satisfying . Let , placing on the first sites. For a set of physical sites, let , whose output consists of the coordinates outside . The first alternative is
The second alternative is the existence of real numbers , indexed by all subsets of the physical sites, with and whenever , such that . Here has output labels , with a word on the sites outside , and matrix entries
Thus the flag is part of the decoder’s input. No positivity or normalization of , and no unitarity of , is required by this definition. It includes , , , and ; natural-number subtraction is truncated at zero, although is assumed. If , neither alternative can hold. The infima and suprema defining the errors are taken in the real numbers, including their total empty-set conventions.
QAlgorithms.Papers.Independent.Extend50.P09.locationFlaggedErasureEncoder
For natural numbers with , any complex matrix indexed by length- words over , any real-valued function on subsets of , and any complex matrix indexed by length- words, this defines a function from matrices on length- words to matrices indexed by pairs , where is a configuration on the complement . First form
The output entries are
where is the unique full configuration equal to on and on ; in the first branch is identified with a configuration on the same complement. No unitarity assumption on , density-matrix assumption on or , or probability-law assumption on is imposed. The cases , , empty or full , and are included, with sums and products taken over their actual, possibly empty, configuration sets.
QAlgorithms.Papers.Independent.Extend50.P09.logicalMatrix
For every natural number and every complex matrix indexed by , this defines a matrix indexed by length-one words over that set through
There are no positivity or normalization assumptions. The definition includes , in which case both matrix indexing sets are empty.
QAlgorithms.Papers.Independent.Extend50.P09.noisyEncoder
For natural numbers with , an arbitrary complex matrix indexed by length- words over , a set , and an arbitrary complex matrix indexed by length- words, this defines a map on complex matrices indexed by length- words. Given , first form the matrix whose entry is , where the subscripts select the first and last coordinates; conjugate this matrix by ; then trace out the coordinates in , retaining the coordinates in . Thus, writing the conjugated matrix as , the output entry at words on is , with ranging over words on . There are no positivity, normalization, or unitarity assumptions on . The definition includes , , , and empty or full .
QAlgorithms.Papers.Independent.Extend50.P09.oneErasureMeanChannel
For all natural numbers , this defines a function on arbitrary complex matrices by
The subtraction in this displayed expression is subtraction in , after converting to a complex scalar. Every reciprocal is total, with , so at the function is zero, and at it is the identity. The definition also includes . No positivity, trace, or parameter restrictions are required.
QAlgorithms.Papers.Independent.Extend50.P09.optimalWorstRecoveryError
For any finite types with decidable equality and any function from complex matrices to complex matrices, define
The norm is the Euclidean norm, and . The functions in the infimum have finite Kraus representations , with , an complex matrix, and . For a matrix on , write ; then . Here , with , where is real continuous functional calculus with the scalar square root and the outer real square root is on negative arguments. Both extrema are real extrema, with no assertion of attainment, and is not assumed to be a channel. Empty types are included: if is empty there is no unit vector , so the inner supremum is ; if there is no admissible , the outer infimum is .
QAlgorithms.Papers.Independent.Extend50.P09.pdist
For any finite type with decidable equality and arbitrary complex matrices indexed by , define
where is the matrix obtained by real continuous functional calculus with the scalar function . No positivity, trace, or normalization condition is imposed on either matrix, and may be empty. The outer square root is the total real square root, so the value is if its argument is negative.
QAlgorithms.Papers.Independent.Extend50.P09.physicalSchurBlockCoordinates
For any natural numbers , this defines a complex matrix whose columns are length- words over and whose rows are triples , where is a Young diagram with exactly cells and at most rows, , and , with the dimensions and entries constructed as follows. Choose the specified bijection between the cells of and ; let and be the permutations preserving, respectively, each numbered cell’s row and column. On the space indexed by permutations of objects, form
and let be its range, with . On the word space, let , form
and let be its range, with . Using the specified standard orthonormal bases of and of , define
where is defined by continuous functional calculus and . The matrix in the declaration is
All dimensions are natural numbers and zero-dimensional blocks contribute no rows. The definition includes , when the diagram is empty, and ; when , neither an admissible diagram nor a word exists.
QAlgorithms.Papers.Independent.Extend50.P09.rdim
For arbitrary natural numbers and a Young diagram having exactly cells and first-column length at most , this defines to be the complex dimension of the range of the following matrix on functions on the permutation group . Use the fixed cell numbering chosen in the definition, let be the permutations that preserve the row of every numbered cell, and let be those that preserve its column. Then
The range is taken in the Euclidean space of complex functions on . Neither nor is assumed positive; is included, whereas a diagram with positive size and first-column length at most does not exist.
QAlgorithms.Papers.Independent.Extend50.P09.remainingCoordinates
For natural numbers and a word , define the remaining-coordinate word by for , where is natural-number subtraction, truncated at . There is no hypothesis : if , the result is the unique empty word, and if , it contains all coordinates of .
QAlgorithms.Papers.Independent.Extend50.P09.removeSite
For implicit natural numbers , a site , and a word , this defines a word of length by deleting site :
The subtraction is natural-number subtraction truncated at zero. Supplying requires ; when , the result is the unique empty word. If , no input word exists for such a positive .
QAlgorithms.Papers.Independent.Extend50.P09.retain
For natural numbers and a finite set , define a function taking any complex matrix on length- words over to the matrix on configurations on whose entries are
Here equals on and on its complement. No positivity or normalization hypothesis is imposed on . If , the output is a matrix on the singleton empty configuration with sole entry ; if is all sites, the sum has one term and returns under the natural identification. Empty configuration sets, including those arising from , are allowed, and sums over them are .
QAlgorithms.Papers.Independent.Extend50.P09.schmidtKet
For every natural number and every real-valued function on , this defines a vector in with coordinates
The real square root is embedded in ; it equals zero for negative arguments. No nonnegativity or sum condition is imposed on , and no normalization is asserted. For , this is the zero vector in the space with empty coordinate set.
QAlgorithms.Papers.Independent.Extend50.P09.schmidtLeading
For every natural number and every real-valued function on , this defines
There are no assumptions on . Division by zero is interpreted as zero, including when , and the real square root is zero whenever its argument is nonpositive. In particular, when , the sums are empty and the defined value is zero.
QAlgorithms.Papers.Independent.Extend50.P09.sdp
For finite types and , each with decidable equality, and any complex matrix indexed by , this defines the real number
Here means positive semidefinite and is the identity matrix on . Neither index type is required to be nonempty, and no positivity, Hermiticity, or trace condition is imposed on . The infimum is taken in the real numbers; if the feasible set is empty, its value under the convention used here is .
QAlgorithms.Papers.Independent.Extend50.P09.sectorBell
For arbitrary natural numbers , this defines a complex Euclidean vector indexed by pairs of binary length- words:
The normalization factor uses the inverse of a real square root, then is regarded as complex. If , the vector is zero; the total inverse convention also assigns to the inverse of the zero normalization denominator. For , its sole amplitude is .
QAlgorithms.Papers.Independent.Extend50.P09.selectedRecoveryError
For finite types with decidable equality, a Boolean , and any function from complex matrices to complex matrices, select when is true, and select when is false. Here ranges over Euclidean vectors indexed by ; for and is otherwise; and a vector’s outer product has entries . Each has the form , where , , and . For blocks , the extended recovered matrix satisfies . The comparison function is , where is real continuous functional calculus with scalar square root, and the outer real square root is on negative arguments. No channel assumption is imposed on , no extremum is asserted to be attained, and empty types are allowed; empty real infima and suprema take the value .
QAlgorithms.Papers.Independent.Extend50.P09.shapeEntropy
For natural numbers and a Young diagram having exactly cells and at most rows, this defines
where is the length of row , with rows numbered from zero. The real logarithm is the total logarithm used in the code, so , and real division by zero is zero. In particular, when , the diagram is empty and the value is zero; an empty sum, including the case , is also zero.
QAlgorithms.Papers.Independent.Extend50.P09.simpleInitial
For natural numbers with , any complex Euclidean vector on binary words of length , and any complex Euclidean vector on binary words of length , this defines a vector indexed by a singleton register and a binary length- word:
The prefix consists of coordinates , and the suffix consists of coordinates . Neither vector is assumed normalized. The cases , , and are permitted, using unique empty words.
QAlgorithms.Papers.Independent.Extend50.P09.simpleLambda
For natural numbers with and , and arbitrary complex Euclidean vectors and indexed by binary words of lengths and , respectively, this defines a matrix indexed by . Its entry at row and column is
Here have length , have length , counts 's, and prefixes and suffixes retain the indicated coordinates. No normalization of or is assumed. Zero lengths are included.
QAlgorithms.Papers.Independent.Extend50.P09.suAncilla
For natural numbers , a Young diagram with cells and first-column length at most , and an arbitrary vector , this defines the matrix
on -ary words of length , where . To specify all quantities in this formula, for every Young diagram of size and first-column length at most , take the fixed cell numbering and its row-preserving and column-preserving permutation sets . Define
Here , and are -ary words of length . The numbers are the complex dimensions of the ranges of , respectively. For the fixed orthonormal bases selected for those ranges, put
using continuous functional calculus and . No normalization hypothesis on , and no trace-one conclusion for , is part of this definition. In particular, if , both the sum and the scalar inverse are zero, so the defined matrix is zero. The parameters may be zero whenever an admissible diagram exists.
QAlgorithms.Papers.Independent.Extend50.P09.suMarginalFormula
For natural numbers with and , a Young diagram with cells and at most rows, and any complex matrix , this defines the following matrix on length- words:
Here , where deletion preserves the other coordinates, and tracing down to coordinates means . The matrix is defined explicitly as follows. Put , number the cells of each relevant diagram by a fixed chosen bijection with , and let be the permutations preserving, respectively, each numbered cell’s row and column. On the symmetric group , form , let , and let be its orthogonal projector. Define , , and . On length- words let , and put and . Then
All scalar reciprocals here use the convention . No density-matrix assumption is made on . The case uses a scalar partial trace in each insertion, and omits the final summand.
QAlgorithms.Papers.Independent.Extend50.P09.superposition
For any natural number , any words , and any complex number , this defines the vector
in the complex Euclidean space indexed by all length- binary words; denotes the vector with coordinate at and elsewhere. There is no restriction on and no requirement that , so normalization is not asserted; when , the vector is , including the zero vector when . For , there is one word, and hence necessarily .
QAlgorithms.Papers.Independent.Extend50.P09.u1ChargeOperator
For every natural number , this defines the complex diagonal matrix indexed by binary words of length whose diagonal entry at is , viewed as a complex number, and whose off-diagonal entries are zero. For , this is the zero matrix on the one-dimensional space indexed by the empty word.
QAlgorithms.Papers.Independent.Extend50.P09.u1Lambda
For any finite type , which may be empty, natural numbers with , and any complex matrix indexed by , this defines a complex matrix indexed by . For binary length- words , elements , and binary length- words , its entries are
Here counts 's, and the subscripts and select the first and remaining coordinates. No positivity, Hermiticity, or normalization of is assumed. Zero lengths are allowed, and the binomial denominators in existing entries are positive.
QAlgorithms.Papers.Independent.Extend50.P09.u1Leading
For a Boolean parameter , an arbitrary real number , and arbitrary natural numbers , this defines
Natural numbers in this expression are converted to real numbers. No positivity condition on or interval restriction on is assumed. Real square roots of negative arguments are , and division by is ; hence the value is when or , and it is also when or .
QAlgorithms.Papers.Independent.Extend50.P09.u1Ratio
For a Boolean flag and arbitrary natural numbers , this defines the real number
The natural numbers are converted to real numbers before these operations. Zero values are allowed; in particular, division by zero has its total real-field meaning, so .
QAlgorithms.Papers.Independent.Extend50.P09.u1SectorProjector
For any natural numbers , this defines the complex diagonal matrix indexed by binary words of length whose diagonal entry at is if , and otherwise. All off-diagonal entries are zero. In particular, it is zero when ; when , it is the identity for and zero for .
QAlgorithms.Papers.Independent.Extend50.P09.u1Xi
For every natural number and binary words of length , let , viewing each binary coordinate as or . This defines the complex number
The displayed square root is real and then regarded as complex. Since , its binomial denominator is positive. At , both words are empty and the value is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.