Definitions for Unconditional privacy over channels which cannot convey quantum information
DefinitionQAlgorithms_Papers_Independent_Advance50_P30The objects the formalized statements of Unconditional privacy over channels which cannot convey quantum information (arXiv:quant-ph/0702077) are stated in. Each was checked against the paper by a blind read-back and a moderator.
DensityState: PDF p.11: the space of normalized, positive single-site mixed states.joinCopies: PDF p.13: regroup the first k coordinates and the discarded suffix.reduceCopies: PDF pp.11,13: partial trace, retaining the first k sites.InvariantCopyState: PDF p.11: operator invariance; no pure symmetric-support restriction.defectTensor: PDF p.12, Eq.(10): a spanning tensor with arbitrary amplitudes on S and copies of theta elsewhere. Allowing |S| ≤ r gives the same span as exactly r when r ≤ n: extra defect slots can be filled with theta.AlmostPure: PDF p.12, Definition 1: unit vectors in Sym intersect span(V), with the source's domain r ≤ n. The span is a complex linear span, not V itself.AlmostMixed: PDF pp.12--13: convex mixtures of normalized almost-power projectors.discardReferences: PDF p.15: trace out every reference factor of paired sites.AlmostAlong: PDF pp.15--16: mixed almost-power along sigma is the reduction of a mixture along a unit purification of sigma. Mixtures are allowed because conditioning the purification measure on its single-site reduction can mix purifications. Equal purifications differ by a reference unitary; this leaves the reduced convex class unchanged. No concentration inequality is a field.empiricalFrequency: PDF pp.12,19: normalized empirical distribution on the stated alphabet. The n=0 totalized value is zero; concentration statements require n>0.l1: PDF pp.12,17: full classical L1 norm, with no factor one half.tensorEffect: PDF p.12: exact product POVM effect on a specified outcome string.iidEvent: PDF pp.12,14: the actual joint Born probability of an event under E^tensor n.chernoffError: PDF pp.12,14,19, Eq.(22): generalized Chernoff error function in bits.deFinettiError: PDF pp.11,22: exponential finite de Finetti error on mixed states; the squared single-site dimension is inside the exponent.Spectral: PDF pp.17--20: the genuine finite spectral measurement of an observable. Nonzero orthogonal projections and distinct real eigenvalues give its spectral alphabet; its cardinality is at most dim H.Spectral.operator: PDF p.17: reconstruct the Hermitian operator from its spectral measurement.HSDecomposition: PDF pp.17--18, Eq.(18): arbitrary real signed coefficients in a Hermitian Hilbert--Schmidt orthonormal decomposition. There is no positivity constraint on the coefficients and no operator-norm equality assumption.HSDecomposition.operator: PDF pp.17--18: the observable is computed from its decomposition.Outcomes: PDF pp.19--21: all outcomes of the disjoint indirect and direct blocks.tensorBlockEffect: PDF pp.19--22: tensor effect of precisely L_1^mp tensor ... tensor L_t^mp tensor M^q. The flattening puts all indirect blocks first.estimationEvent: PDF pp.21--22: P' and P'' are evaluated from the input state, never chosen as couplings. Events involving one block automatically use its marginal.indirectMean: PDF p.20, Eq.(25): sum of coefficient-weighted, normalized block means.directMean: PDF pp.20,22: the direct mean, normalized by the actual direct-block size.samplingError: PDF p.22, Eq.(36): the classical sampling allowance in full L1 convention.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P20
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P69
/-!
Horodecki et al., arXiv:quant-ph/0702077v1. Page numbers are PDF pages.
Accepted register/vector/permutation definitions are imported. Paper-local
constructions implement the appendix's finite experiments.
All trace norms are full Schatten 1-norms. Entropy and logb 2 are in bits;
Real.exp and Real.log in de Finetti and sampling terms are natural.
Operational security claims and ambiguous printed specializations are deferred
in the unit's HARD.md; no passive-capacity surrogate is asserted here.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P30
open QAlgorithms MeasureTheory
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Information100.P21 (Op Vec)
open QAlgorithms.Papers.Independent.Information100.P69 (permute)
open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.Elementwise
attribute [local instance] Classical.decEq Classical.propDecidable
/-- PDF pp.11,21: the finite-coordinate extended norm is continuous for the
matrix product topology, as on the underlying finite function space. -/
local instance matrixContinuousENorm (I : Type) [Fintype I] : ContinuousENorm (Op I) :=
inferInstanceAs (ContinuousENorm (I → I → ℂ))
/-- PDF pp.11,15: ordinary Borel measurable finite matrix coordinates. -/
local instance matrixMeasurable (I : Type) : MeasurableSpace (Op I) := borel _
/-- The measurable structure used by the integrals is the matrix Borel structure. -/
local instance matrixBorel (I : Type) : BorelSpace (Op I) := ⟨rfl⟩
/-- PDF p.14, Theorem 2: the unit-vector parameter space has its Borel structure. -/
local instance vectorMeasurable (I : Type) : MeasurableSpace (Vec I) := borel _
/-- PDF p.14: the Borel structure on pure-state directions, before taking the unit subtype. -/
local instance vectorBorel (I : Type) : BorelSpace (Vec I) := ⟨rfl⟩
/-- PDF p.11: the space of normalized, positive single-site mixed states. -/
abbrev DensityState (I : Type) [Fintype I] := {rho : Op I // IsDensityMatrix rho}
/-- PDF p.13: regroup the first k coordinates and the discarded suffix. -/
def joinCopies {I : Type} {n k : ℕ} (_h : k ≤ n)
(x : Copies I k) (z : Copies I (n - k)) : Copies I n :=
fun i => if hi : i.val < k then x ⟨i.val, hi⟩ else z ⟨i.val - k, by omega⟩
/-- PDF pp.11,13: partial trace, retaining the first k sites. -/
def reduceCopies {I : Type} [Fintype I] {n : ℕ} (rho : Op (Copies I n))
(k : ℕ) (h : k ≤ n) : Op (Copies I k) :=
fun x y => ∑ z : Copies I (n - k), rho (joinCopies h x z) (joinCopies h y z)
/-- PDF p.11: operator invariance; no pure symmetric-support restriction. -/
def InvariantCopyState {I : Type} {n : ℕ} (rho : Op (Copies I n)) : Prop :=
∀ pi : Equiv.Perm (Fin n), permute pi rho = rho
/-- PDF p.12, Eq.(10): a spanning tensor with arbitrary amplitudes on S and
copies of theta elsewhere. Allowing |S| ≤ r gives the same span as exactly r
when r ≤ n: extra defect slots can be filled with theta. -/
def defectTensor {I : Type} {n : ℕ} (theta : Vec I) (S : Finset (Fin n))
(chi : (S → I) → ℂ) : Vec (Copies I n) :=
WithLp.toLp 2 fun x => (∏ i ∈ Finset.univ \ S, theta (x i)) * chi (fun i => x i)
/-- PDF p.12, Definition 1: unit vectors in Sym intersect span(V), with the
source's domain r ≤ n. The span is a complex linear span, not V itself. -/
def AlmostPure {I : Type} [Fintype I] (theta : Vec I) (n r : ℕ)
(psi : Vec (Copies I n)) : Prop :=
r ≤ n ∧ IsState theta ∧ IsState psi ∧
(∀ (pi : Equiv.Perm (Fin n)) (x : Copies I n), psi (x ∘ pi) = psi x) ∧
psi ∈ Submodule.span ℂ {v | ∃ (S : Finset (Fin n)) (chi : (S → I) → ℂ),
S.card ≤ r ∧ v = defectTensor theta S chi}
/-- PDF pp.12--13: convex mixtures of normalized almost-power projectors. -/
def AlmostMixed {I : Type} [Fintype I] (theta : Vec I) (n r : ℕ)
(rho : Op (Copies I n)) : Prop :=
IsDensityMatrix rho ∧ rho ∈ convexHull ℝ
{A | ∃ psi : Vec (Copies I n), AlmostPure theta n r psi ∧ A = pureDensity psi}
/-- PDF p.15: trace out every reference factor of paired sites. -/
def discardReferences {I : Type} [Fintype I] {n : ℕ}
(rho : Op (Copies (I × I) n)) : Op (Copies I n) :=
fun x y => ∑ z : Copies I n,
rho (fun i => (x i, z i)) (fun i => (y i, z i))
/-- PDF pp.15--16: mixed almost-power along sigma is the reduction of a
mixture along a unit purification of sigma. Mixtures are allowed because
conditioning the purification measure on its single-site reduction can mix
purifications. Equal purifications differ by a reference unitary; this leaves
the reduced convex class unchanged. No concentration inequality is a field. -/
def AlmostAlong {I : Type} [Fintype I] (sigma : DensityState I) (n r : ℕ)
(rho : Op (Copies I n)) : Prop :=
IsDensityMatrix rho ∧ ∃ theta : Vec (I × I), IsState theta ∧
traceRight (pureDensity theta) = sigma.val ∧
∃ omega : Op (Copies (I × I) n), AlmostMixed theta n r omega ∧
discardReferences omega = rho
/-- PDF pp.12,19: normalized empirical distribution on the stated alphabet.
The n=0 totalized value is zero; concentration statements require n>0. -/
def empiricalFrequency {W : Type} [Fintype W] {n : ℕ} (out : Fin n → W) (w : W) : ℝ :=
((Finset.univ.filter fun i => out i = w).card : ℝ) / (n : ℝ)
/-- PDF pp.12,17: full classical L1 norm, with no factor one half. -/
def l1 {W : Type} [Fintype W] (p q : W → ℝ) : ℝ :=
∑ w, |p w - q w|
/-- PDF p.12: exact product POVM effect on a specified outcome string. -/
def tensorEffect {I W : Type} {n : ℕ} (E : W → Op I)
(out : Fin n → W) : Op (Copies I n) :=
fun x y => ∏ i, E (out i) (x i) (y i)
/-- PDF pp.12,14: the actual joint Born probability of an event under E^tensor n. -/
def iidEvent {I W : Type} [Fintype I] [Fintype W] {n : ℕ}
(rho : Op (Copies I n)) (E : W → Op I) (event : (Fin n → W) → Prop) : ℝ :=
∑ out, if event out then effectProb (tensorEffect E out) rho else 0
/-- PDF pp.12,14,19, Eq.(22): generalized Chernoff error function in bits. -/
def chernoffError (delta : ℝ) (n r w : ℕ) : ℝ :=
(2 : ℝ) ^ (-(n : ℝ) * (delta ^ 2 / 4 - binEntropy2 ((r : ℝ) / n)) +
(w : ℝ) * Real.logb 2 ((n : ℝ) / 2 + 1))
/-- PDF pp.11,22: exponential finite de Finetti error on mixed states;
the squared single-site dimension is inside the exponent. -/
def deFinettiError (n k r d : ℕ) : ℝ :=
2 * Real.exp (-((k : ℝ) * ((r : ℝ) + 1)) / (2 * ((n : ℝ) + k)) +
(d : ℝ) ^ 2 / 2 * Real.log k)
/-- PDF pp.17--20: the genuine finite spectral measurement of an observable.
Nonzero orthogonal projections and distinct real eigenvalues give its spectral
alphabet; its cardinality is at most dim H. -/
structure Spectral (I : Type) [Fintype I] [DecidableEq I] where
count : ℕ
count_pos : 0 < count
count_le : count ≤ Fintype.card I
effect : Fin count → Op I
value : Fin count → ℝ
povm : IsPOVM effect
idempotent : ∀ j, effect j * effect j = effect j
orthogonal : ∀ j k, j ≠ k → effect j * effect k = 0
nonzero : ∀ j, effect j ≠ 0
distinct : Function.Injective value
/-- PDF p.17: reconstruct the Hermitian operator from its spectral measurement. -/
def Spectral.operator {I : Type} [Fintype I] [DecidableEq I] (S : Spectral I) : Op I :=
∑ j, (S.value j : ℂ) • S.effect j
/-- PDF pp.17--18, Eq.(18): arbitrary real signed coefficients in a Hermitian
Hilbert--Schmidt orthonormal decomposition. There is no positivity constraint
on the coefficients and no operator-norm equality assumption. -/
structure HSDecomposition (I : Type) [Fintype I] [DecidableEq I] (t : ℕ) where
intermediate : Fin t → Spectral I
coeff : Fin t → ℝ
orthonormal : ∀ i j,
((intermediate i).operator * (intermediate j).operatorᴴ).trace =
if i = j then 1 else 0
/-- PDF pp.17--18: the observable is computed from its decomposition. -/
def HSDecomposition.operator {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
(D : HSDecomposition I t) : Op I :=
∑ i, (D.coeff i : ℂ) • (D.intermediate i).operator
/-- PDF pp.19--21: all outcomes of the disjoint indirect and direct blocks. -/
abbrev Outcomes {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
(D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ) :=
((i : Fin t) → Fin mp → Fin (D.intermediate i).count) × (Fin q → Fin S.count)
/-- PDF pp.19--22: tensor effect of precisely L_1^mp tensor ... tensor
L_t^mp tensor M^q. The flattening puts all indirect blocks first. -/
def tensorBlockEffect {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
(D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ)
(out : Outcomes D S mp q) : Op (Copies I (t * mp + q)) :=
fun x y =>
(∏ i : Fin t, ∏ j : Fin mp,
(D.intermediate i).effect (out.1 i j)
(x (Fin.castAdd q (finProdFinEquiv (i, j))))
(y (Fin.castAdd q (finProdFinEquiv (i, j))))) *
∏ j : Fin q, S.effect (out.2 j)
(x (Fin.natAdd (t * mp) j)) (y (Fin.natAdd (t * mp) j))
/-- PDF pp.21--22: P' and P'' are evaluated from the input state, never chosen
as couplings. Events involving one block automatically use its marginal. -/
def estimationEvent {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
(D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ)
(rho : Op (Copies I (t * mp + q))) (event : Outcomes D S mp q → Prop) : ℝ :=
∑ out, if event out then effectProb (tensorBlockEffect D S mp q out) rho else 0
/-- PDF p.20, Eq.(25): sum of coefficient-weighted, normalized block means. -/
def indirectMean {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
(D : HSDecomposition I t) {S : Spectral I} {mp q : ℕ}
(out : Outcomes D S mp q) : ℝ :=
∑ i, D.coeff i * ((∑ j, (D.intermediate i).value (out.1 i j)) / (mp : ℝ))
/-- PDF pp.20,22: the direct mean, normalized by the actual direct-block size. -/
def directMean {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
{D : HSDecomposition I t} (S : Spectral I) {mp q : ℕ}
(out : Outcomes D S mp q) : ℝ :=
(∑ j, S.value (out.2 j)) / (q : ℝ)
/-- PDF p.22, Eq.(36): the classical sampling allowance in full L1 convention. -/
def samplingError (delta : ℝ) (m d : ℕ) (hs : ℝ) : ℝ :=
(d : ℝ) * Real.exp (-((m : ℝ) * delta ^ 2) / (8 * (d : ℝ) * hs ^ 2))
/-- Sanity: PDF p.12, empty tensor product is the scalar identity. -/
example {I W : Type} (E : W → Op I) (out : Fin 0 → W)
(x y : Copies I 0) : tensorEffect E out x y = 1 := by
simp [tensorEffect]
/-- Sanity: PDF p.19, a single outcome has frequency one, including normalization. -/
example {W : Type} [Fintype W] (w : W) :
empiricalFrequency (fun _ : Fin 1 => w) w = 1 := by
simp [empiricalFrequency]
/-- Sanity: PDF p.17, this is full L1, not half of it. -/
example : l1 (![1, 0] : Fin 2 → ℝ) ![0, 1] = 2 := by
norm_num [l1, Fin.sum_univ_two]
/-- Sanity: PDF p.19, zero defect and n=2,w=2,delta=0 give 4. -/
example : chernoffError 0 2 0 2 = 4 := by
norm_num [chernoffError, binEntropy2,
Real.logb_self_eq_one (by norm_num : (1 : ℝ) < 2)]
end QAlgorithms.Papers.Independent.Advance50.P30
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P30.AlmostAlong
For any finite type , positive semidefinite matrix on with trace , natural numbers , and complex matrix indexed by functions from the positions to , this predicate requires that be positive semidefinite with trace , and that there exist a vector of norm and a matrix on such that
The matrix must be positive semidefinite with trace and a finite real convex combination of matrices , with nonnegative weights summing to , where every has norm , is invariant under all permutations of the positions, and belongs to the complex linear span of vectors , for subsets of at most positions and arbitrary ; also is required. No closure of the convex hull is taken. If is empty, no admissible exists; if , the predicate is impossible. For , necessarily , and 's unique entry is .
QAlgorithms.Papers.Independent.Advance50.P30.AlmostMixed
For any finite type , vector , natural numbers , and complex matrix indexed by functions from the positions to , this predicate requires that be positive semidefinite with trace , and that it be a finite real convex combination of matrices , whose entries are . Each vector used in that combination must satisfy , , and for every permutation of the positions, and must belong to the complex linear span of the vectors , for all subsets of at most positions and arbitrary . “Finite real convex combination” means nonnegative real weights summing to ; no closure is taken. The predicate is impossible if or . When , it requires and 's unique entry to equal .
QAlgorithms.Papers.Independent.Advance50.P30.AlmostPure
For any finite type , vector , natural numbers , and vector , this predicate requires , , invariance for every permutation of the positions and every indexing function , and membership of in the complex linear span of all vectors
where is arbitrary. The generators themselves need not be symmetric or normalized. For , this span is generated by ; for , necessarily , and 's unique coordinate has modulus , while must still have norm . If is empty, the requirement on is impossible.
QAlgorithms.Papers.Independent.Advance50.P30.DensityState
For any finite type , a density state on is a complex matrix indexed by , together with the conditions that is positive semidefinite and . If is empty, there are no such density states, since the trace of its unique matrix is zero.
QAlgorithms.Papers.Independent.Advance50.P30.HSDecomposition
For a finite type with decidable equality and a natural number , this structure consists of spectral data and real coefficients , indexed by . Each spectral datum has , nonzero positive semidefinite matrices summing to the identity, satisfying and for , and pairwise distinct real values . Writing , the additional requirement is the complex equality
The coefficients have no further restrictions. The case is allowed, with all requirements vacuous; if is empty, only is possible.
QAlgorithms.Papers.Independent.Advance50.P30.HSDecomposition.operator
For any finite type with decidable equality, natural number , and decomposition , this defines
Here are arbitrary real coefficients; for each , , the are nonzero positive semidefinite idempotent matrices summing to the identity and satisfying for , and the real values are pairwise distinct. The decomposition also requires when and otherwise. Real scalars are embedded in ; when , the defined matrix is , including when is empty.
QAlgorithms.Papers.Independent.Advance50.P30.InvariantCopyState
For any type , natural number , and arbitrary complex matrix indexed by functions , this predicate means that for every permutation of and all indexing functions ,
There is no positivity, trace, or normalization requirement. For or , every such matrix satisfies the predicate.
QAlgorithms.Papers.Independent.Advance50.P30.Outcomes
For any finite type with decidable equality, natural numbers , decomposition , and spectral datum , this abbreviates the set of pairs of outcome arrays
The decomposition supplies real coefficients and spectral matrices with for and otherwise; supplies matrices and real values . Each of these spectral data has a positive count at most , nonzero positive semidefinite idempotent matrices summing to the identity and having zero products at distinct indices, and pairwise distinct real values. Empty index ranges contribute unique empty arrays: if or , the first array is unique, and if , the second is unique. The supplied datum precludes empty .
QAlgorithms.Papers.Independent.Advance50.P30.Spectral
For a finite type with decidable equality, a spectral datum consists of a natural number satisfying , complex matrices , and real numbers , indexed by , such that every is positive semidefinite,
and the values are pairwise distinct: implies . Here is the identity matrix. No such datum exists when is empty.
QAlgorithms.Papers.Independent.Advance50.P30.Spectral.operator
For any finite type with decidable equality and any spectral datum , consisting of , nonzero positive semidefinite matrices with , , and for , together with pairwise distinct real values , this defines the complex matrix
The real coefficients are embedded in . The required spectral datum cannot exist for empty .
QAlgorithms.Papers.Independent.Advance50.P30.chernoffError
For every real and natural numbers , this defines the real number
All natural numbers in this formula are interpreted as real numbers, and the power of is a real power. No positivity or size restrictions are imposed on the parameters, including no requirement . The formula uses total real operations: division by zero is , , and the real logarithm of a negative number is the logarithm of its absolute value. In particular, gives the value .
QAlgorithms.Papers.Independent.Advance50.P30.deFinettiError
For any natural numbers , this defines
where the natural numbers are interpreted as real numbers and is the natural logarithm. No parameter is required to be positive. Division by zero and both take the value ; consequently, when , including when , the defined value is .
QAlgorithms.Papers.Independent.Advance50.P30.defectTensor
For any type , natural number , complex Euclidean coordinate vector indexed by , finite set , and arbitrary function , this defines the vector indexed by functions with coordinates
Neither nor is required to be normalized. An empty product is : if is the entire index set, , while if , is the scalar times the coordinate product of . For , the unique coordinate is .
QAlgorithms.Papers.Independent.Advance50.P30.directMean
For any finite type with decidable equality, natural numbers , decomposition , spectral datum , and outcome arrays , , this defines
Here has , nonzero positive semidefinite idempotent matrices summing to the identity and satisfying for , and pairwise distinct real values . The supplied decomposition contains arbitrary real coefficients and spectral matrices satisfying for and otherwise; each constituent spectral datum satisfies the same count, positivity, idempotence, orthogonality, nonzero, and distinct-value conditions as . The first outcome array consists of outcomes for each of these data and does not enter the displayed sum. When , the empty numerator and division-by-zero convention give ; precludes empty .
QAlgorithms.Papers.Independent.Advance50.P30.discardReferences
For any finite type , natural number , and arbitrary complex matrix indexed by functions from the positions to , this defines a matrix indexed by functions through
No positivity or normalization is assumed. For , all the function index sets are singletons, so the unique matrix entry is preserved.
QAlgorithms.Papers.Independent.Advance50.P30.empiricalFrequency
For any finite type , natural number , outcome function , and , the empirical frequency is the real number
For , the numerator and denominator are both zero, and the defined value is , using the convention .
QAlgorithms.Papers.Independent.Advance50.P30.estimationEvent
For any finite type with decidable equality, natural numbers , decomposition , spectral datum , arbitrary complex matrix on , and predicate on pairs of arrays , , this defines
The paired coordinates enumerate the first positions using the canonical finite product indexing, and the primed coordinates enumerate the last . The datum contains arbitrary real coefficients and with equal to for and otherwise; supplies . Every spectral count is positive and at most ; its matrices are nonzero positive semidefinite idempotents summing to the identity with zero products at distinct indices, and its real values are pairwise distinct. No density assumption is imposed on . If , there is one empty outcome and the result is if that outcome satisfies the predicate, and otherwise; precludes empty .
QAlgorithms.Papers.Independent.Advance50.P30.iidEvent
For any finite types , any natural number , any complex matrix indexed by , any family of complex matrices indexed by , and any predicate on , this defines
There are no positivity, normalization, or measurement assumptions on or . When , both configuration spaces contain one empty tuple and the empty product is , so the result is if the event contains the empty outcome, and otherwise; when is empty and , the sum is .
QAlgorithms.Papers.Independent.Advance50.P30.indirectMean
For any finite type with decidable equality, natural numbers , decomposition , spectral datum , and pair of outcome arrays , , this defines
Here contains arbitrary real coefficients and spectral matrices satisfying for and otherwise; contains matrices and real values . Each spectral count is positive and at most , its matrices are nonzero positive semidefinite idempotents summing to the identity and having zero products at distinct indices, and its real values are pairwise distinct. The second outcome array has length and does not enter the displayed sum. Both and give , using the empty-sum and division-by-zero conventions; precludes empty .
QAlgorithms.Papers.Independent.Advance50.P30.joinCopies
For any type , natural numbers , a hypothesis , and functions and , their joined function is defined by
The subtraction is natural-number subtraction; the second branch is used only when . The definition includes , when the result is , and , when the result is , including .
QAlgorithms.Papers.Independent.Advance50.P30.l1
For any finite type and arbitrary functions , this defines
Neither function is required to be nonnegative or to sum to . If is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P30.reduceCopies
For any finite type , natural number , arbitrary complex matrix indexed by functions , natural number , and hypothesis , the reduced matrix is indexed by functions and has entries
where uses for and for . No positivity or normalization of is required. When , the summation has the unique empty function as its index and gives ; when , the result is a one-entry matrix whose entry is .
QAlgorithms.Papers.Independent.Advance50.P30.samplingError
For arbitrary real numbers and natural numbers , including zero, this defines
No positivity assumptions are imposed. Division is total real division: division by zero is defined to be zero. Consequently, if or , the value is ; the value is also whenever or .
QAlgorithms.Papers.Independent.Advance50.P30.tensorBlockEffect
For any finite type with decidable equality, natural numbers , decomposition , spectral datum , and outcome arrays and , this defines a complex matrix on by
The coordinates identify the first positions through the canonical bijection between a product of finite index sets and an index set of their product size, and the primed coordinates are the final positions. Here contains arbitrary real coefficients and spectral matrices , satisfying for and otherwise; contains matrices and real values . Each spectral count is positive and at most , its matrices are nonzero positive semidefinite idempotents summing to the identity with zero products at distinct indices, and its real values are pairwise distinct. All empty products equal ; in particular, if , this is the one-by-one matrix with entry . The supplied datum precludes empty .
QAlgorithms.Papers.Independent.Advance50.P30.tensorEffect
For any types , natural number , arbitrary family of complex matrices indexed by , and function , this defines the complex matrix indexed by functions with entries
No finiteness assumption on or , positivity condition, or measurement completeness condition is imposed. For , the matrix has one entry, equal to the empty product .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.