Definitions for Secure quantum key distribution with an uncharacterized source
DefinitionQAlgorithms_Papers_Independent_Intakenext100_P04The objects the formalized statements of Secure quantum key distribution with an uncharacterized source (arXiv:quant-ph/0208155) are stated in. Each was checked against the paper by a blind read-back and a moderator.
emittedMarginal: PDF p.2: coefficients of the partial trace over the auxiliary factor, in a product Hilbert basis. Used on actual trace-class operators only.AuxiliaryMeasurement: PDF pp.1–2: a normalized two-outcome measurement on the auxiliary factor alone. The coefficient condition is precisely I_A tensor M_g; no restriction on the dimensions, the outcome probabilities, or the measurement basis is made.preparationBranch: PDF p.2: the actual subnormalized joint branch from the local measurement. Its reduced emitted branch depends only on the POVM effect, so the square-root instrument loses no generality after discarding the measured auxiliary system.weightedEmittedBranch: PDF pp.1–2, Eq.(1): p[a,g] rho[a,g], including the probability 1/2 of choosing the basis. Zero-probability outcomes require no division or chosen state.preparationWeight: PDF pp.1–2: the actual joint probability p[a,g], with a uniform basis.xBasisVector: PDF p.3: the X basis is exactly H tensor n applied to the Z basis.zProjector: PDF pp.3–4: the computational-basis rank-one projector.xProjector: PDF pp.3–4: the complete X-basis measurement effect.uniformKeyFidelity: PDF p.4: squared classical fidelity with the uniform r-bit distribution.QubitFactor: PDF pp.3–4: a qubit tensor factor in an arbitrary complete Hilbert space. A unital star algebra representation of the full finite matrix algebra is unitarily equivalent to A maps to A tensor I_E, with arbitrary multiplicity E.qubitMarginal: PDF pp.3–4: the constructed reduced density matrix. The reversed matrix unit in the trace is essential: Tr(|j><i| rho) = rho[i,j].keyLaw: PDF p.4: the actual X-measurement law of the qubit factor.EveMeasurement: PDF p.4(a): arbitrary finite measurements on Eve, rather than on the key. Commutation with the full key matrix algebra is exactly locality on E. Public transcript/permutation registers are part of this unrestricted E.measuredKeyLaw: PDF p.4(a): the joint classical law after Eve's actual measurement.accessibleKeyInfo: PDF p.4(a): accessible information in bits, optimized over all finite POVMs on E. For a finite key this supremum also includes arbitrary-outcome measurements by finite coarse-graining; no maximum or finite E is assumed. The set is nonempty (one outcome), and bounded above by r for normalized states.squaredHilbertFidelity: PDF p.3, Eq.(5): squared Uhlmann fidelity on actual positive trace-class arguments. Unlike frozen rootFidelity, this includes the final square.CorrectableEncoder: PDF p.2, Eq.(2): the injective linear encoder, the actual decoder and its correctable error set. No worst-case Hamming-ball correction is assumed.transposeEncoder: PDF p.2: G transpose, constructed from G, so its kernel is the dual code.circuitU1: PDF p.3, Eq.(7): the actual U1, as a Z-basis permutation matrix.circuitU2: PDF p.3, Eq.(8): the actual U2, using the actual, possibly nonlinear f.virtualCircuit: PDF p.3: U = U2 U1, with U1 applied first.virtualIsometry: PDF pp.3–4: the actual isometry appending |0>_X and applying U.virtualKeyEffect: PDF pp.3–4: Heisenberg key effect of the constructed virtual circuit. An equality of these effects retains the joint law with every Eve measurement.directKeyEffect: PDF pp.2–3, Protocol 3(8): X measurement followed by the G-transpose key map.correctableProjector: PDF p.3: the projector onto the actual correctable Z error support.virtualOutput: PDF p.4: the actual output state of ancilla Q for a given S marginal.projectedJointState: PDF p.3, Eq.(4): normalized projected joint state, used only for q > 0.maskedJointLaw: PDF p.4, Eq.(13): joint law for K=W+Y and (W,Z), where Eve can choose her measurement after reading the independently sampled public uniform W.maskedAccessibleInfo: PDF p.4: accessible information including the public mask register W.maskedKeyLaw: PDF p.4: marginal law of the final, publicly shifted key; W is not secret.singleQubitBB84Vector: PDF p.4: the accepted BB84 encoding specialized to one qubit, reindexed from one-bit strings to Bool. Basis false is Z and true is X; bit false is the +1 eigenstate. The wrapper changes only the register index type.identicalCopyState: PDF p.4: the full emitted two-copy state, retaining the copy available to Eve.copiedBasisAverage: PDF pp.1,4, Eq.(1): basis averages with actual unbiased joint weights p[a,g]=1/4, not conditional weights 1/2.occasionalCopyState: PDF p.4: an occasional identical-copy emission, with the one- and two-copy sectors distinguished in the full emitted system. The probability t is independent of basis and bit, and the theorem guards 0 < t <= 1.occasionalCopyAverage: PDF pp.1,4: full weighted average, retaining the nonzero two-copy sector.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P13
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P18
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P31
/-!
Koashi–Preskill, arXiv:quant-ph/0208155v2, PDF pp.1–4.
Pinned accepted Dependency50.P13 supplies the operator substrate; Advance50.P18
and Claimed50.P31 supply entropy and BB84 definitions, respectively, under the
independent-paper workflow override. No earlier paper theorem is reused.
States are actual positive trace-class operators, without a dimension restriction.
The finite matrix algebra representation below specifies a qubit tensor factor;
its commutant contains Eve, including every public classical register.
The operational protocol results and the printed sampling exponent are deferred.
Compilation is pending the explicitly requested batch handoff.
-/
noncomputable section
universe u v w
namespace QAlgorithms.Papers.Independent.Intakenext100.P04
open QAlgorithms
open QAlgorithms.Papers.Independent.Dependency50.P13
(State IsTraceClass IsPositive operatorTrace)
open QAlgorithms.Papers.Independent.Advance50.P18 (keyEntropy)
open scoped ComplexConjugate
attribute [local instance] Classical.propDecidable Classical.decEq
/-! ### Constructed remote preparations -/
variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
/-- PDF p.2: coefficients of the partial trace over the auxiliary factor, in a
product Hilbert basis. Used on actual trace-class operators only. -/
def emittedMarginal {I : Type v} {J : Type w} (b : HilbertBasis (I × J) ℂ H)
(T : H →L[ℂ] H) : Matrix I I ℂ :=
fun i k => ∑' j, inner ℂ (b (i, j)) (T (b (k, j)))
/-- PDF pp.1–2: a normalized two-outcome measurement on the auxiliary factor
alone. The coefficient condition is precisely I_A tensor M_g; no restriction
on the dimensions, the outcome probabilities, or the measurement basis is made. -/
structure AuxiliaryMeasurement {I : Type v} {J : Type w}
(b : HilbertBasis (I × J) ℂ H) where
effect : Bool → H →L[ℂ] H
positive : ∀ g, (effect g).IsPositive
complete : ∑ g, effect g = 1
auxiliaryOnly : ∃ m : Bool → J → J → ℂ, ∀ g i j k l,
inner ℂ (b (i, j)) (effect g (b (k, l))) = if i = k then m g j l else 0
/-- PDF p.2: the actual subnormalized joint branch from the local measurement.
Its reduced emitted branch depends only on the POVM effect, so the square-root
instrument loses no generality after discarding the measured auxiliary system. -/
def preparationBranch {I : Type v} {J : Type w} {b : HilbertBasis (I × J) ℂ H}
(rho : State b) (M : AuxiliaryMeasurement b) (g : Bool) : H →L[ℂ] H :=
(cfc Real.sqrt (M.effect g)).comp
(rho.val.val.comp (cfc Real.sqrt (M.effect g)))
/-- PDF pp.1–2, Eq.(1): p[a,g] rho[a,g], including the probability 1/2 of
choosing the basis. Zero-probability outcomes require no division or chosen state. -/
def weightedEmittedBranch {I : Type v} {J : Type w}
{b : HilbertBasis (I × J) ℂ H} (rho : State b)
(M : AuxiliaryMeasurement b) (g : Bool) : Matrix I I ℂ :=
(1 / 2 : ℂ) • emittedMarginal b (preparationBranch rho M g)
/-- PDF pp.1–2: the actual joint probability p[a,g], with a uniform basis. -/
def preparationWeight {I : Type v} {J : Type w}
{b : HilbertBasis (I × J) ℂ H} (rho : State b)
(M : AuxiliaryMeasurement b) (g : Bool) : ℝ :=
(operatorTrace b (preparationBranch rho M g)).re / 2
example {I : Type v} {J : Type w} (b : HilbertBasis (I × J) ℂ H) :
emittedMarginal b (0 : H →L[ℂ] H) = 0 := by
funext i k
simp [emittedMarginal]
/-- PDF p.3: the X basis is exactly H tensor n applied to the Z basis. -/
def xBasisVector (n : ℕ) (x : Qubits n) : EuclideanSpace ℂ (Qubits n) :=
act (hadamardN n) (ket x)
/-- PDF pp.3–4: the computational-basis rank-one projector. -/
def zProjector (n : ℕ) (x : Qubits n) : Matrix (Qubits n) (Qubits n) ℂ :=
pureDensity (ket x)
/-- PDF pp.3–4: the complete X-basis measurement effect. -/
def xProjector (n : ℕ) (x : Qubits n) : Matrix (Qubits n) (Qubits n) ℂ :=
pureDensity (xBasisVector n x)
/-- PDF p.4: squared classical fidelity with the uniform r-bit distribution. -/
def uniformKeyFidelity {r : ℕ} (p : Qubits r → ℝ) : ℝ :=
((2 : ℝ) ^ r)⁻¹ * (∑ y, Real.sqrt (p y)) ^ 2
/-- PDF pp.3–4: a qubit tensor factor in an arbitrary complete Hilbert space.
A unital star algebra representation of the full finite matrix algebra is
unitarily equivalent to A maps to A tensor I_E, with arbitrary multiplicity E. -/
abbrev QubitFactor (n : ℕ) (H : Type u) [NormedAddCommGroup H]
[InnerProductSpace ℂ H] [CompleteSpace H] :=
Matrix (Qubits n) (Qubits n) ℂ →⋆ₐ[ℂ] (H →L[ℂ] H)
/-- PDF pp.3–4: the constructed reduced density matrix. The reversed matrix
unit in the trace is essential: Tr(|j><i| rho) = rho[i,j]. -/
def qubitMarginal {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{n : ℕ} (A : QubitFactor n H) : Matrix (Qubits n) (Qubits n) ℂ :=
fun i j => operatorTrace b ((A (fun k l => if k = j ∧ l = i then 1 else 0)).comp
rho.val.val)
/-- PDF p.4: the actual X-measurement law of the qubit factor. -/
def keyLaw {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r : ℕ} (A : QubitFactor r H) (y : Qubits r) : ℝ :=
(operatorTrace b ((A (xProjector r y)).comp rho.val.val)).re
/-- PDF p.4(a): arbitrary finite measurements on Eve, rather than on the key.
Commutation with the full key matrix algebra is exactly locality on E.
Public transcript/permutation registers are part of this unrestricted E. -/
structure EveMeasurement {r : ℕ} (A : QubitFactor r H) (n : ℕ) where
effect : Fin n → H →L[ℂ] H
positive : ∀ z, (effect z).IsPositive
complete : ∑ z, effect z = 1
eveOnly : ∀ z (B : Matrix (Qubits r) (Qubits r) ℂ),
(effect z).comp (A B) = (A B).comp (effect z)
/-- PDF p.4(a): the joint classical law after Eve's actual measurement. -/
def measuredKeyLaw {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r n : ℕ} (A : QubitFactor r H) (M : EveMeasurement A n)
(yz : Qubits r × Fin n) : ℝ :=
(operatorTrace b ((A (xProjector r yz.1)).comp
((M.effect yz.2).comp rho.val.val))).re
/-- PDF p.4(a): accessible information in bits, optimized over all finite
POVMs on E. For a finite key this supremum also includes arbitrary-outcome
measurements by finite coarse-graining; no maximum or finite E is assumed.
The set is nonempty (one outcome), and bounded above by r for normalized states. -/
def accessibleKeyInfo {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r : ℕ} (A : QubitFactor r H) : ℝ :=
sSup {t | ∃ n : ℕ, ∃ M : EveMeasurement A n,
t = mutualInfoBits (measuredKeyLaw b rho A M)}
/-- PDF p.3, Eq.(5): squared Uhlmann fidelity on actual positive trace-class
arguments. Unlike frozen rootFidelity, this includes the final square. -/
def squaredHilbertFidelity {I : Type v} (b : HilbertBasis I ℂ H)
(rho sigma : H →L[ℂ] H) : ℝ :=
((operatorTrace b (cfc Real.sqrt
((cfc Real.sqrt rho).comp (sigma.comp (cfc Real.sqrt rho))))).re) ^ 2
example {r : ℕ} (A : QubitFactor r H) : Nonempty (EveMeasurement A 1) := by
refine ⟨⟨fun _ => 1, fun _ => ContinuousLinearMap.isPositive_one, ?_, ?_⟩⟩
· simp
· intro z B
ext x
rfl
example {r : ℕ} : keyEntropy (fun _ : Qubits r => (0 : ℝ)) = 0 := by
simp [QAlgorithms.Papers.Independent.Advance50.P18.keyEntropy]
/-! ### The constructed virtual circuit -/
/-- PDF p.2, Eq.(2): the injective linear encoder, the actual decoder and
its correctable error set. No worst-case Hamming-ball correction is assumed. -/
structure CorrectableEncoder (N r : ℕ) where
encoder : (Qubits r) →ₗ[Bool] (Qubits N)
injective : Function.Injective encoder
decoder : Qubits N → Qubits r
errors : Set (Qubits N)
correct : ∀ y x, x ∈ errors → decoder (encoder y + x) = y
/-- PDF p.2: G transpose, constructed from G, so its kernel is the dual code. -/
def transposeEncoder {N r : ℕ} (C : CorrectableEncoder N r) (x : Qubits N) : Qubits r :=
fun i => dotBits x (C.encoder (fun j => decide (j = i)))
/-- PDF p.3, Eq.(7): the actual U1, as a Z-basis permutation matrix. -/
def circuitU1 {N r : ℕ} (C : CorrectableEncoder N r) :
Matrix (Qubits N × Qubits r) (Qubits N × Qubits r) ℂ :=
fun p q => if p = (q.1 + C.encoder q.2, q.2) then 1 else 0
/-- PDF p.3, Eq.(8): the actual U2, using the actual, possibly nonlinear f. -/
def circuitU2 {N r : ℕ} (C : CorrectableEncoder N r) :
Matrix (Qubits N × Qubits r) (Qubits N × Qubits r) ℂ :=
fun p q => if p = (q.1, q.2 + C.decoder q.1) then 1 else 0
/-- PDF p.3: U = U2 U1, with U1 applied first. -/
def virtualCircuit {N r : ℕ} (C : CorrectableEncoder N r) :
Matrix (Qubits N × Qubits r) (Qubits N × Qubits r) ℂ :=
circuitU2 C * circuitU1 C
/-- PDF pp.3–4: the actual isometry appending |0>_X and applying U. -/
def virtualIsometry {N r : ℕ} (C : CorrectableEncoder N r) :
Matrix (Qubits N × Qubits r) (Qubits N) ℂ :=
fun p x => ∑ y, virtualCircuit C p (x, y) * xBasisVector r 0 y
/-- PDF pp.3–4: Heisenberg key effect of the constructed virtual circuit.
An equality of these effects retains the joint law with every Eve measurement. -/
def virtualKeyEffect {N r : ℕ} (C : CorrectableEncoder N r) (y : Qubits r) :
Matrix (Qubits N) (Qubits N) ℂ :=
(virtualIsometry C).conjTranspose *
Matrix.kronecker (1 : Matrix (Qubits N) (Qubits N) ℂ) (xProjector r y) *
virtualIsometry C
/-- PDF pp.2–3, Protocol 3(8): X measurement followed by the G-transpose key map. -/
def directKeyEffect {N r : ℕ} (C : CorrectableEncoder N r) (y : Qubits r) :
Matrix (Qubits N) (Qubits N) ℂ :=
∑ x, if transposeEncoder C x = y then xProjector N x else 0
/-- PDF p.3: the projector onto the actual correctable Z error support. -/
def correctableProjector {N r : ℕ} (C : CorrectableEncoder N r) :
Matrix (Qubits N) (Qubits N) ℂ :=
Matrix.diagonal (fun x => if x ∈ C.errors then 1 else 0)
/-- PDF p.4: the actual output state of ancilla Q for a given S marginal. -/
def virtualOutput {N r : ℕ} (C : CorrectableEncoder N r)
(rho : Matrix (Qubits N) (Qubits N) ℂ) : Matrix (Qubits r) (Qubits r) ℂ :=
traceLeft (virtualCircuit C * Matrix.kronecker rho (xProjector r 0) *
(virtualCircuit C).conjTranspose)
/-- PDF p.3, Eq.(4): normalized projected joint state, used only for q > 0. -/
def projectedJointState {I : Type v} (b : HilbertBasis I ℂ H)
(rho : State b) (P : H →L[ℂ] H) : H →L[ℂ] H :=
(((operatorTrace b (P.comp rho.val.val)).re)⁻¹ : ℂ) •
P.comp (rho.val.val.comp P)
example {N r : ℕ} (C : CorrectableEncoder N r) (x : Qubits N) (y : Qubits r) :
circuitU1 C (x + C.encoder y, y) (x, y) = 1 := by
simp [circuitU1]
example {N r : ℕ} (C : CorrectableEncoder N r) (x : Qubits N) (y : Qubits r) :
circuitU2 C (x, y + C.decoder x) (x, y) = 1 := by
simp [circuitU2]
/-- PDF p.4, Eq.(13): joint law for K=W+Y and (W,Z), where Eve can choose
her measurement after reading the independently sampled public uniform W. -/
def maskedJointLaw {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r n : ℕ} (A : QubitFactor r H) (M : Qubits r → EveMeasurement A n)
(kwz : Qubits r × (Qubits r × Fin n)) : ℝ :=
((2 : ℝ) ^ r)⁻¹ *
measuredKeyLaw b rho A (M kwz.2.1) (kwz.1 + kwz.2.1, kwz.2.2)
/-- PDF p.4: accessible information including the public mask register W. -/
def maskedAccessibleInfo {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r : ℕ} (A : QubitFactor r H) : ℝ :=
sSup {t | ∃ n : ℕ, ∃ M : Qubits r → EveMeasurement A n,
t = mutualInfoBits (maskedJointLaw b rho A M)}
/-- PDF p.4: marginal law of the final, publicly shifted key; W is not secret. -/
def maskedKeyLaw {r : ℕ} (p : Qubits r → ℝ) (k : Qubits r) : ℝ :=
∑ w, ((2 : ℝ) ^ r)⁻¹ * p (k + w)
example {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b)
{r n : ℕ} (A : QubitFactor r H) (M : Qubits r → EveMeasurement A n)
(k w : Qubits r) (z : Fin n) :
maskedJointLaw b rho A M (k, w, z) =
((2 : ℝ) ^ r)⁻¹ * measuredKeyLaw b rho A (M w) (k + w, z) := by
rfl
/-- PDF p.4: the accepted BB84 encoding specialized to one qubit, reindexed
from one-bit strings to Bool. Basis false is Z and true is X; bit false is
the +1 eigenstate. The wrapper changes only the register index type. -/
def singleQubitBB84Vector (a g : Bool) : EuclideanSpace ℂ Bool :=
WithLp.toLp 2 fun z =>
QAlgorithms.Papers.Independent.Claimed50.P31.bb84Vector
(fun _ : Fin 1 => g) (fun _ => a) (fun _ => z)
/-- PDF p.4: the full emitted two-copy state, retaining the copy available to Eve. -/
def identicalCopyState (a g : Bool) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
pureDensity (tensorVec (singleQubitBB84Vector a g) (singleQubitBB84Vector a g))
/-- PDF pp.1,4, Eq.(1): basis averages with actual unbiased joint weights
p[a,g]=1/4, not conditional weights 1/2. -/
def copiedBasisAverage (a : Bool) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
∑ g : Bool, (1 / 4 : ℂ) • identicalCopyState a g
example (g : Bool) : singleQubitBB84Vector false g = ket g := by
ext z
simp [singleQubitBB84Vector,
QAlgorithms.Papers.Independent.Claimed50.P31.bb84Vector, ket, eq_comm]
example (a g : Bool) : identicalCopyState a g =
pureDensity (tensorVec (singleQubitBB84Vector a g) (singleQubitBB84Vector a g)) := by
rfl
/-- PDF p.4: an occasional identical-copy emission, with the one- and two-copy
sectors distinguished in the full emitted system. The probability t is independent
of basis and bit, and the theorem guards 0 < t <= 1. -/
def occasionalCopyState (t : ℝ) (a g : Bool) :
Matrix (Bool ⊕ (Bool × Bool)) (Bool ⊕ (Bool × Bool)) ℂ :=
fun p q => match p, q with
| Sum.inl i, Sum.inl j => ((1 - t : ℝ) : ℂ) * pureDensity (singleQubitBB84Vector a g) i j
| Sum.inr i, Sum.inr j => (t : ℂ) * identicalCopyState a g i j
| _, _ => 0
/-- PDF pp.1,4: full weighted average, retaining the nonzero two-copy sector. -/
def occasionalCopyAverage (t : ℝ) (a : Bool) :
Matrix (Bool ⊕ (Bool × Bool)) (Bool ⊕ (Bool × Bool)) ℂ :=
∑ g : Bool, (1 / 4 : ℂ) • occasionalCopyState t a g
example (a g : Bool) (i j : Bool × Bool) :
occasionalCopyState 0 a g (Sum.inr i) (Sum.inr j) = 0 := by
simp [occasionalCopyState]
end QAlgorithms.Papers.Independent.Intakenext100.P04
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakenext100.P04.AuxiliaryMeasurement
For arbitrary types , a complete complex inner product space , and a Hilbert basis , an auxiliary measurement consists of two positive continuous complex linear operators , indexed by , such that , together with the requirement that there exists a function satisfying, for every ,
No finiteness, countability, or nonemptiness assumptions are imposed on ; when either is empty, this matrix-entry requirement is vacuous.
QAlgorithms.Papers.Independent.Intakenext100.P04.CorrectableEncoder
For any natural numbers , write , regarded as a vector space over the two-element field, with pointwise XOR as addition. A consists of an injective linear map , an arbitrary function , and a set , together with the requirement
No linearity is required of , and no nonemptiness or closure property is required of ; if , the correction requirement is vacuous. Both and are included, with the singleton containing the empty bit string.
QAlgorithms.Papers.Independent.Intakenext100.P04.EveMeasurement
For a complete complex inner product space , a natural number , and a unital complex -algebra homomorphism , where , an , for any natural number , consists of bounded complex-linear operators , indexed by , such that each is positive, , and
There is no requirement that the effects be projections. The value is allowed as a parameter, but then completeness requires , so such a measurement can exist only when is the zero space. The value is also included.
QAlgorithms.Papers.Independent.Intakenext100.P04.QubitFactor
For a natural number and a type equipped with a normed additive commutative group structure, a compatible complex inner product space structure, and completeness, this abbreviates the type of unital complex star-algebra homomorphisms
where the matrix rows and columns are indexed by -bit strings and denotes the continuous complex linear operators on . Such a map preserves addition, multiplication, the identity, complex scalars, and the star operation, which is conjugate transpose for matrices and adjoint for operators. Injectivity is not an additional requirement of the abbreviation. The cases and are included.
QAlgorithms.Papers.Independent.Intakenext100.P04.accessibleKeyInfo
Let be a complete complex inner product space, a Hilbert basis for any index type , and a bounded complex-linear operator that is self-adjoint, has nonnegative real quadratic form, and satisfies . Require also sequences with and for every . For any natural number , set and take a unital complex -algebra homomorphism . For each natural number and each family of positive operators , , summing to and commuting with every , define
The accessible key information is the real supremum, over all such and families, of
This is a supremum in , with no assertion of attainment. The displayed expression uses total real division and logarithms, including at zero; in particular, real division by zero and the real logarithm of zero are defined as zero. The parameter is included.
QAlgorithms.Papers.Independent.Intakenext100.P04.circuitU1
For natural numbers , let consist of an injective binary-linear map , a decoder , and an error set such that whenever , with and pointwise XOR addition. The definition gives a complex matrix indexed in both rows and columns by , whose entries are
The decoder and error set do not enter these entries. Zero register lengths are included: each zero-length register has one possible value, the empty bit string.
QAlgorithms.Papers.Independent.Intakenext100.P04.circuitU2
For natural numbers , let consist of an injective binary-linear encoder , an arbitrary decoder , and a set satisfying for every and , where and addition is pointwise XOR. The definition gives the complex matrix on with entries
The formula uses the decoder on every , including inputs on which the correction requirement places no restriction. Both and are included.
QAlgorithms.Papers.Independent.Intakenext100.P04.copiedBasisAverage
For each Boolean , identify Boolean indices with and define
Then copiedBasisAverage at is the complex matrix indexed by pairs of Booleans given by
Here the tensor vector has coordinate at , and denotes the matrix with entry at . Both summands have weight ; the weights sum to , and has trace .
QAlgorithms.Papers.Independent.Intakenext100.P04.correctableProjector
For any natural numbers , let specify an injective binary linear map , a decoder , and a set satisfying for all and all , where is bitwise XOR. The definition returns the matrix , indexed by -bit strings, whose entries are
The error set may be empty, in which case this matrix is zero; and are also allowed.
QAlgorithms.Papers.Independent.Intakenext100.P04.directKeyEffect
For any natural numbers , let consist of an injective binary linear encoder , a decoder , and an error set such that for every and every , where addition is bitwise XOR. For , define by , with the -th binary coordinate vector, and define . For every , the definition returns the complex matrix
An empty indexing set gives the zero matrix. Both and are included, with the unique empty bit string and the usual empty-sum convention.
QAlgorithms.Papers.Independent.Intakenext100.P04.emittedMarginal
For arbitrary types , a complete complex inner product space , a Hilbert basis , and a continuous complex linear operator , this defines the complex matrix indexed by whose entries are
Neither index type is required to be finite or countable, and is not assumed positive or trace class. The sum is the total infinite-sum operation: if the indicated complex family is not summable, its value is . Empty index types are allowed.
QAlgorithms.Papers.Independent.Intakenext100.P04.identicalCopyState
For every pair of Boolean values , let be the single-qubit vector given, in coordinate order , by , , , and . The definition returns the complex matrix indexed by Boolean pairs whose entries are
That is, it is the outer product of with itself.
QAlgorithms.Papers.Independent.Intakenext100.P04.keyLaw
Let be a complete complex inner product space, any index type, and a Hilbert basis of . Let be a bounded complex-linear operator satisfying , for every , and , and admitting sequences with and for every . For any natural number , write , and let be a unital complex -algebra homomorphism. For , define and . The definition assigns the real number
The case is included: contains the single empty bit string and its vector has its sole entry equal to .
QAlgorithms.Papers.Independent.Intakenext100.P04.maskedAccessibleInfo
Let be any complete complex inner-product space with Hilbert basis , and define . Let have a representation with , satisfy , have nonnegative real quadratic form, and satisfy . For any natural number , let be a unital complex algebra homomorphism from -qubit matrices to bounded operators on preserving adjoints, and put . For each natural number and each family , indexed by and , such that every is positive, for every , and every commutes with every , define
The definition returns the real supremum, over all such , of
Thus the two arguments in this mutual-information expression are and the pair . The definition does not assert that the supremum is attained; it uses the real supremum operation, whose value is zero for an empty or unbounded-above set. Both and are included, subject to the stated measurement conditions, and the real operations use and .
QAlgorithms.Papers.Independent.Intakenext100.P04.maskedJointLaw
Let be any complete complex inner-product space with Hilbert basis , and put . Let admit a representation with , satisfy and for every , and have . For any natural numbers , let be a unital complex algebra homomorphism from -qubit matrices to bounded operators on preserving adjoints. For each , let be positive bounded operators summing to , each commuting with for every -qubit matrix . Write . At every triple , the definition returns the real number
where is bitwise XOR. The parameters include and ; when , the family’s completeness condition is , and there are no triples at which to evaluate the function.
QAlgorithms.Papers.Independent.Intakenext100.P04.maskedKeyLaw
For any natural number , any real-valued function , and any , the definition returns
where is bitwise XOR. No nonnegativity or normalization condition is imposed on . When , there is one empty bit string, and the returned value is at that string.
QAlgorithms.Papers.Independent.Intakenext100.P04.measuredKeyLaw
Let be a complete complex inner product space with a Hilbert basis , for any index type . Let be a bounded complex-linear operator with , for every , and , admitting sequences such that and . For natural numbers , put , let be a unital complex -algebra homomorphism, and let consist of positive operators , , summing to and commuting with every . For , put and . The definition is
Here is included, with the empty bit string and empty sum conventions; when , there is no pair at which to evaluate the function.
QAlgorithms.Papers.Independent.Intakenext100.P04.occasionalCopyAverage
For every real and Boolean , identify Boolean indices with and define
Then occasionalCopyAverage at is the complex matrix indexed by given by
where the tensor matrix has entry at . The two weights are each , so their sum is ; this matrix has trace . There is no restriction on in this definition.
QAlgorithms.Papers.Independent.Intakenext100.P04.occasionalCopyState
For every real and Booleans , identify Boolean indices with and let
Set . Then occasionalCopyState at is the complex matrix on the disjoint union given by
Thus entries between the two summands of the disjoint union are zero. The definition permits every real , including values outside ; at the second block vanishes, and at the first block vanishes.
QAlgorithms.Papers.Independent.Intakenext100.P04.preparationBranch
Let be arbitrary types, a complete complex inner product space, and a Hilbert basis. Let be a continuous complex linear operator that has a representation with , satisfies and for every , and has . Let consist of positive operators summing to the identity, with matrix entries for some function . For either Boolean , this defines the continuous operator
where the square root is obtained by continuous functional calculus. The definition performs no normalization by the trace of ; in particular, a zero branch is allowed.
QAlgorithms.Papers.Independent.Intakenext100.P04.preparationWeight
For arbitrary types , a complete complex inner product space , and a Hilbert basis , let be self-adjoint, satisfy for every , have basis trace , and admit with . Let consist of positive effects summing to the identity, whose basis entries are for some function . For each Boolean , this defines the real number
The basis trace of is the same diagonal sum with in place of . Square roots use continuous functional calculus; the complex sum has value if not summable. This is a definition with a factor , including when the branch is zero.
QAlgorithms.Papers.Independent.Intakenext100.P04.projectedJointState
Let be any complete complex inner-product space, let be any index type, and let be a Hilbert basis of . Write . Let be a bounded complex linear operator that admits sequences with and for every , and satisfies , for every , and . For any bounded complex linear operator , the definition returns
where the real reciprocal is embedded into . There is no assumption that is a projection or self-adjoint, and the rightmost factor is itself. If , the reciprocal is defined to be zero, so the returned operator is zero. The infinite sums use the total sum convention, which assigns zero when a family is not summable.
QAlgorithms.Papers.Independent.Intakenext100.P04.qubitMarginal
Let be an arbitrary type, a complete complex inner product space, and a Hilbert basis. Let be a continuous complex linear operator admitting with , satisfying , for every , and . For any natural number , including , let be a unital complex star-algebra homomorphism from the complex matrices indexed by -bit strings to the continuous complex linear operators on . This defines the matrix indexed by -bit strings by
In particular, the matrix unit used in entry has row and column . No finiteness or countability assumption is imposed on ; the complex infinite sum is assigned value when not summable. An empty basis index set is incompatible with the trace-one hypothesis.
QAlgorithms.Papers.Independent.Intakenext100.P04.singleQubitBB84Vector
For every pair of Boolean values , the definition returns the vector whose coordinate at a Boolean is
Equivalently, in the coordinate order , the four vectors are , , , and .
QAlgorithms.Papers.Independent.Intakenext100.P04.squaredHilbertFidelity
For any complete complex inner product space , any index type , any Hilbert basis , and any two bounded complex-linear operators , the definition assigns
where each application of to an operator means the continuous functional calculus for the real square-root function. No positivity, self-adjointness, trace-class, normalization, or summability hypotheses are imposed on or . The sum is the total infinite-sum operation, which returns zero when the family is not summable; the functional calculus is likewise used as a total operation without additional hypotheses.
QAlgorithms.Papers.Independent.Intakenext100.P04.transposeEncoder
For natural numbers , let consist of an injective binary-linear map , a function , and a set satisfying for all and , where and addition is pointwise XOR. For any , the definition produces the bit string
where has a true bit exactly at coordinate . Thus each output bit is the parity of the coordinates where both and are true. The decoder and error set do not enter this formula. If , the output is the empty bit string; an empty parity sum is false.
QAlgorithms.Papers.Independent.Intakenext100.P04.uniformKeyFidelity
For any natural number , including , and any real-valued function on the set of -bit strings, this defines
No nonnegativity or normalization hypothesis is imposed on . The real square-root operation has value on negative inputs. For , the sum has one term, indexed by the empty bit string, so the value is .
QAlgorithms.Papers.Independent.Intakenext100.P04.virtualCircuit
For natural numbers , let comprise an injective binary-linear map , a function , and a set satisfying for all and , where with pointwise XOR addition. The virtual circuit is the complex matrix , where sends the basis label to , and sends to ; each matrix has entry at its indicated output label and elsewhere. Equivalently, its entries are
This definition includes zero-length registers and evaluates on all inputs, regardless of membership in the error set.
QAlgorithms.Papers.Independent.Intakenext100.P04.virtualIsometry
For natural numbers , let consist of an injective binary-linear encoder , a decoder , and an error set such that for every and every , where and addition is pointwise XOR. Define the complex matrix by when , and otherwise. The virtual isometry is the rectangular complex matrix , with rows indexed by and columns by , given by
Here the coefficient is the -coordinate of the vector obtained by applying the matrix with entries to the basis vector at the all-false string . The formula includes , when this coefficient is and the sum has one term, as well as .
QAlgorithms.Papers.Independent.Intakenext100.P04.virtualKeyEffect
For natural numbers , let comprise an injective binary-linear map , a decoder , and a set satisfying for all and , where and addition is pointwise XOR. Define to be if , and otherwise, and define . For any , put and . The virtual key effect is the complex matrix on defined by
where is the conjugate transpose and the tensor-product matrix has entries . Zero-length registers are included, using singleton empty-string sets and empty sums in the parity exponent.
QAlgorithms.Papers.Independent.Intakenext100.P04.virtualOutput
For any natural numbers , let consist of an injective binary linear encoder , a decoder , and an error set satisfying for every and every , with addition interpreted as XOR. Let be any complex matrix indexed by -bit strings; no positivity or trace condition is imposed on . Define matrices by and , put , and let for every -bit string . The definition returns the -bit matrix with entries
Thus the first register is summed out. Zero values of or are included, and a zero-length register has one basis label.
QAlgorithms.Papers.Independent.Intakenext100.P04.weightedEmittedBranch
For arbitrary types , a complete complex inner product space , and a Hilbert basis , let be self-adjoint and positive in the sense that for every , with basis trace and a representation satisfying . Let have positive effects summing to the identity and satisfying for some function . For each Boolean , this defines the matrix by
Here square roots use continuous functional calculus, and the basis trace of means . The factor is present regardless of the branch’s trace, and the definition does not divide by that trace. Infinite complex sums use the convention of value when not summable.
QAlgorithms.Papers.Independent.Intakenext100.P04.xBasisVector
For every natural number , including , and every bit string , this defines a vector in the complex Euclidean space indexed by all -bit strings. It is obtained by multiplying the coordinate unit vector at by the matrix whose -entry is negative when the number of positions where both and are true is odd, and positive otherwise. Equivalently,
For , there is one empty bit string, and the vector’s sole coordinate is .
QAlgorithms.Papers.Independent.Intakenext100.P04.xProjector
For every natural number , including , and every -bit string , define for every -bit string . This declaration defines the complex matrix indexed by -bit strings with entries
For , all sums in the exponent are empty, there is one empty bit string, and the matrix is the one-dimensional identity.
QAlgorithms.Papers.Independent.Intakenext100.P04.zProjector
For every natural number , including , and every -bit string , this defines the complex matrix indexed by pairs of -bit strings whose entries are
Thus the definition takes the coordinate unit vector at and forms the matrix with entries equal to its -coordinate times the complex conjugate of its -coordinate. For , the index set consists of the single empty bit string, and the matrix is the one-dimensional identity.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.