Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Secure quantum key distribution with an uncharacterized source

Definition
QAlgorithms_Papers_Independent_Intakenext100_P04

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The 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.
Definition code
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
Source
Secure quantum key distribution with an uncharacterized source, arXiv:quant-ph/0208155v2, https://arxiv.org/abs/quant-ph/0208155v2
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intakenext100.P04.AuxiliaryMeasurement

For arbitrary types I,JI,JI,J, a complete complex inner product space HHH, and a Hilbert basis b:I×J→Hb:I\times J\to Hb:I×J→H, an auxiliary measurement consists of two positive continuous complex linear operators Eg:H→HE_g:H\to HEg​:H→H, indexed by g∈{false,true}g\in\{\mathrm{false},\mathrm{true}\}g∈{false,true}, such that Efalse+Etrue=idHE_{\mathrm{false}}+E_{\mathrm{true}}=\mathrm{id}_HEfalse​+Etrue​=idH​, together with the requirement that there exists a function m:{false,true}×J×J→Cm:\{\mathrm{false},\mathrm{true}\}\times J\times J\to\mathbb Cm:{false,true}×J×J→C satisfying, for every g,i,j,k,lg,i,j,k,lg,i,j,k,l,

⟨b(i,j),Egb(k,l)⟩={m(g,j,l),i=k,0,i≠k.\langle b_{(i,j)},E_g b_{(k,l)}\rangle = \begin{cases} m(g,j,l),&i=k,\\ 0,&i\ne k. \end{cases}⟨b(i,j)​,Eg​b(k,l)​⟩={m(g,j,l),0,​i=k,i=k.​

No finiteness, countability, or nonemptiness assumptions are imposed on I,JI,JI,J; when either is empty, this matrix-entry requirement is vacuous.

QAlgorithms.Papers.Independent.Intakenext100.P04.CorrectableEncoder

For any natural numbers N,rN,rN,r, write Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m, regarded as a vector space over the two-element field, with pointwise XOR as addition. A CorrectableEncoder⁡(N,r)\operatorname{CorrectableEncoder}(N,r)CorrectableEncoder(N,r) consists of an injective linear map E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, an arbitrary function D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and a set E⊆QN\mathcal E\subseteq Q_NE⊆QN​, together with the requirement

D(E(y)+x)=yfor every y∈Qr and every x∈E.D(E(y)+x)=y \qquad\text{for every }y\in Q_r\text{ and every }x\in\mathcal E.D(E(y)+x)=yfor every y∈Qr​ and every x∈E.

No linearity is required of DDD, and no nonemptiness or closure property is required of E\mathcal EE; if E=∅\mathcal E=\varnothingE=∅, the correction requirement is vacuous. Both N=0N=0N=0 and r=0r=0r=0 are included, with Q0Q_0Q0​ the singleton containing the empty bit string.

QAlgorithms.Papers.Independent.Intakenext100.P04.EveMeasurement

For a complete complex inner product space HHH, a natural number rrr, and a unital complex ∗*∗-algebra homomorphism A:MQr(C)→B(H)A:M_{Q_r}(\mathbb C)\to\mathcal B(H)A:MQr​​(C)→B(H), where Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r, an EveMeasurement⁡(A,n)\operatorname{EveMeasurement}(A,n)EveMeasurement(A,n), for any natural number nnn, consists of bounded complex-linear operators Ez:H→HE_z:H\to HEz​:H→H, indexed by 0≤z<n0\le z<n0≤z<n, such that each EzE_zEz​ is positive, ∑z=0n−1Ez=IH\sum_{z=0}^{n-1}E_z=I_H∑z=0n−1​Ez​=IH​, and

EzA(B)=A(B)Ezfor every z<n and every B∈MQr(C).E_zA(B)=A(B)E_z \qquad\text{for every }z<n\text{ and every }B\in M_{Q_r}(\mathbb C).Ez​A(B)=A(B)Ez​for every z<n and every B∈MQr​​(C).

There is no requirement that the effects be projections. The value n=0n=0n=0 is allowed as a parameter, but then completeness requires 0=IH0=I_H0=IH​, so such a measurement can exist only when HHH is the zero space. The value r=0r=0r=0 is also included.

QAlgorithms.Papers.Independent.Intakenext100.P04.QubitFactor

For a natural number nnn and a type HHH 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

A:M2n(C)⟶B(H),A:M_{2^n}(\mathbb C)\longrightarrow \mathcal B(H),A:M2n​(C)⟶B(H),

where the matrix rows and columns are indexed by nnn-bit strings and B(H)\mathcal B(H)B(H) denotes the continuous complex linear operators on HHH. 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 n=0n=0n=0 and H={0}H=\{0\}H={0} are included.

QAlgorithms.Papers.Independent.Intakenext100.P04.accessibleKeyInfo

Let HHH be a complete complex inner product space, b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​ a Hilbert basis for any index type III, and ρ\rhoρ a bounded complex-linear operator that is self-adjoint, has nonnegative real quadratic form, and satisfies ∑i⟨bi,ρbi⟩=1\sum_i\langle b_i,\rho b_i\rangle=1∑i​⟨bi​,ρbi​⟩=1. Require also sequences us,vs∈Hu_s,v_s\in Hus​,vs​∈H with ∑s∥us∥∥vs∥<∞\sum_s\|u_s\|\|v_s\|<\infty∑s​∥us​∥∥vs​∥<∞ and ρx=∑s⟨vs,x⟩us\rho x=\sum_s\langle v_s,x\rangle u_sρx=∑s​⟨vs​,x⟩us​ for every xxx. For any natural number rrr, set Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r and take a unital complex ∗*∗-algebra homomorphism A:MQr(C)→B(H)A:M_{Q_r}(\mathbb C)\to\mathcal B(H)A:MQr​​(C)→B(H). For each natural number nnn and each family of positive operators EzE_zEz​, z<nz<nz<n, summing to IHI_HIH​ and commuting with every A(B)A(B)A(B), define

hy(a)=2−r/2(−1)∑jyjaj,Py(a,a′)=hy(a)hy(a′)‾,p(y,z)=Re⁡∑i∈I⟨bi,A(Py)Ezρbi⟩.h_y(a)=2^{-r/2}(-1)^{\sum_jy_ja_j},\qquad P_y(a,a')=h_y(a)\overline{h_y(a')},\qquad p(y,z)=\operatorname{Re}\sum_{i\in I}\langle b_i,A(P_y)E_z\rho b_i\rangle.hy​(a)=2−r/2(−1)∑j​yj​aj​,Py​(a,a′)=hy​(a)hy​(a′)​,p(y,z)=Rei∈I∑​⟨bi​,A(Py​)Ez​ρbi​⟩.

The accessible key information is the real supremum, over all such nnn and families, of

∑y∈Qr∑z<np(y,z)log⁡2 ⁣(p(y,z)(∑z′<np(y,z′))(∑y′∈Qrp(y′,z))).\sum_{y\in Q_r}\sum_{z<n} p(y,z)\log_2\!\left( \frac{p(y,z)} {\left(\sum_{z'<n}p(y,z')\right) \left(\sum_{y'\in Q_r}p(y',z)\right)} \right).y∈Qr​∑​z<n∑​p(y,z)log2​​(∑z′<n​p(y,z′))(∑y′∈Qr​​p(y′,z))p(y,z)​​.

This is a supremum in R\mathbb RR, 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 r=0r=0r=0 is included.

QAlgorithms.Papers.Independent.Intakenext100.P04.circuitU1

For natural numbers N,rN,rN,r, let CCC consist of an injective binary-linear map E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, a decoder D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and an error set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ such that D(E(y)+e)=yD(E(y)+e)=yD(E(y)+e)=y whenever e∈Ee\in\mathcal Ee∈E, with Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m and pointwise XOR addition. The definition gives a complex matrix indexed in both rows and columns by QN×QrQ_N\times Q_rQN​×Qr​, whose entries are

U1(p,(x,y))={1,p=(x+E(y),y),0,otherwise.U_1(p,(x,y))= \begin{cases} 1,&p=(x+E(y),y),\\ 0,&\text{otherwise}. \end{cases}U1​(p,(x,y))={1,0,​p=(x+E(y),y),otherwise.​

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 N,rN,rN,r, let CCC consist of an injective binary-linear encoder E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, an arbitrary decoder D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and a set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ satisfying D(E(y)+e)=yD(E(y)+e)=yD(E(y)+e)=y for every y∈Qry\in Q_ry∈Qr​ and e∈Ee\in\mathcal Ee∈E, where Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m and addition is pointwise XOR. The definition gives the complex matrix on QN×QrQ_N\times Q_rQN​×Qr​ with entries

U2(p,(x,y))={1,p=(x,y+D(x)),0,otherwise.U_2(p,(x,y))= \begin{cases} 1,&p=(x,y+D(x)),\\ 0,&\text{otherwise}. \end{cases}U2​(p,(x,y))={1,0,​p=(x,y+D(x)),otherwise.​

The formula uses the decoder on every x∈QNx\in Q_Nx∈QN​, including inputs on which the correction requirement places no restriction. Both N=0N=0N=0 and r=0r=0r=0 are included.

QAlgorithms.Papers.Independent.Intakenext100.P04.copiedBasisAverage

For each Boolean aaa, identify Boolean indices with 0,10,10,1 and define

v0,0=(10),v0,1=(01),v1,0=12(11),v1,1=12(1−1).v_{0,0}=\begin{pmatrix}1\\0\end{pmatrix},\qquad v_{0,1}=\begin{pmatrix}0\\1\end{pmatrix},\qquad v_{1,0}=\frac1{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix},\qquad v_{1,1}=\frac1{\sqrt2}\begin{pmatrix}1\\-1\end{pmatrix}.v0,0​=(10​),v0,1​=(01​),v1,0​=2​1​(11​),v1,1​=2​1​(1−1​).

Then copiedBasisAverage at aaa is the complex matrix indexed by pairs of Booleans given by

Ca=14∑g∈{0,1}(va,g⊗va,g)(va,g⊗va,g)∗.C_a=\frac14\sum_{g\in\{0,1\}} (v_{a,g}\otimes v_{a,g})(v_{a,g}\otimes v_{a,g})^*.Ca​=41​g∈{0,1}∑​(va,g​⊗va,g​)(va,g​⊗va,g​)∗.

Here the tensor vector has coordinate va,g(i)va,g(j)v_{a,g}(i)v_{a,g}(j)va,g​(i)va,g​(j) at (i,j)(i,j)(i,j), and ww∗ww^*ww∗ denotes the matrix with entry w(p)w(q)‾w(p)\overline{w(q)}w(p)w(q)​ at (p,q)(p,q)(p,q). Both summands have weight 1/41/41/4; the weights sum to 1/21/21/2, and CaC_aCa​ has trace 1/21/21/2.

QAlgorithms.Papers.Independent.Intakenext100.P04.correctableProjector

For any natural numbers N,rN,rN,r, let CCC specify an injective binary linear map e:{0,1}r→{0,1}Ne:\{0,1\}^r\to\{0,1\}^Ne:{0,1}r→{0,1}N, a decoder d:{0,1}N→{0,1}rd:\{0,1\}^N\to\{0,1\}^rd:{0,1}N→{0,1}r, and a set E⊆{0,1}N\mathcal E\subseteq\{0,1\}^NE⊆{0,1}N satisfying d(e(y)+x)=yd(e(y)+x)=yd(e(y)+x)=y for all yyy and all x∈Ex\in\mathcal Ex∈E, where +++ is bitwise XOR. The definition returns the matrix BEB_{\mathcal E}BE​, indexed by NNN-bit strings, whose entries are

(BE)x,x′={1,x=x′ and x∈E,0,otherwise.(B_{\mathcal E})_{x,x'}= \begin{cases} 1,&x=x'\text{ and }x\in\mathcal E,\\ 0,&\text{otherwise}. \end{cases}(BE​)x,x′​={1,0,​x=x′ and x∈E,otherwise.​

The error set may be empty, in which case this matrix is zero; N=0N=0N=0 and r=0r=0r=0 are also allowed.

QAlgorithms.Papers.Independent.Intakenext100.P04.directKeyEffect

For any natural numbers N,rN,rN,r, let CCC consist of an injective binary linear encoder e:{0,1}r→{0,1}Ne:\{0,1\}^r\to\{0,1\}^Ne:{0,1}r→{0,1}N, a decoder d:{0,1}N→{0,1}rd:\{0,1\}^N\to\{0,1\}^rd:{0,1}N→{0,1}r, and an error set E⊆{0,1}N\mathcal E\subseteq\{0,1\}^NE⊆{0,1}N such that d(e(y)+x)=yd(e(y)+x)=yd(e(y)+x)=y for every yyy and every x∈Ex\in\mathcal Ex∈E, where addition is bitwise XOR. For x∈{0,1}Nx\in\{0,1\}^Nx∈{0,1}N, define eTx∈{0,1}re^{\mathsf T}x\in\{0,1\}^reTx∈{0,1}r by (eTx)i=∑j=0N−1xje(ei)j(mod2)(e^{\mathsf T}x)_i=\sum_{j=0}^{N-1}x_j e(\mathbf e_i)_j\pmod 2(eTx)i​=∑j=0N−1​xj​e(ei​)j​(mod2), with ei\mathbf e_iei​ the iii-th binary coordinate vector, and define hx(z)=2−N/2(−1)∑jxjzjh_x(z)=2^{-N/2}(-1)^{\sum_j x_jz_j}hx​(z)=2−N/2(−1)∑j​xj​zj​. For every y∈{0,1}ry\in\{0,1\}^ry∈{0,1}r, the definition returns the complex matrix

Dy=∑x∈{0,1}NeTx=yhxhx†,(hxhx†)z,z′=hx(z)hx(z′)‾.D_y=\sum_{\substack{x\in\{0,1\}^N\\e^{\mathsf T}x=y}}h_xh_x^\dagger, \qquad (h_xh_x^\dagger)_{z,z'}=h_x(z)\overline{h_x(z')}.Dy​=x∈{0,1}NeTx=y​∑​hx​hx†​,(hx​hx†​)z,z′​=hx​(z)hx​(z′)​.

An empty indexing set gives the zero matrix. Both N=0N=0N=0 and r=0r=0r=0 are included, with the unique empty bit string and the usual empty-sum convention.

QAlgorithms.Papers.Independent.Intakenext100.P04.emittedMarginal

For arbitrary types I,JI,JI,J, a complete complex inner product space HHH, a Hilbert basis b:I×J→Hb:I\times J\to Hb:I×J→H, and a continuous complex linear operator T:H→HT:H\to HT:H→H, this defines the complex matrix indexed by I×II\times II×I whose entries are

Rb(T)ik=∑j∈J⟨b(i,j),Tb(k,j)⟩.R_b(T)_{ik}=\sum_{j\in J}\langle b_{(i,j)},T b_{(k,j)}\rangle.Rb​(T)ik​=j∈J∑​⟨b(i,j)​,Tb(k,j)​⟩.

Neither index type is required to be finite or countable, and TTT 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 000. Empty index types are allowed.

QAlgorithms.Papers.Independent.Intakenext100.P04.identicalCopyState

For every pair of Boolean values a,ga,ga,g, let va,gv_{a,g}va,g​ be the single-qubit vector given, in coordinate order (false,true)(\mathrm{false},\mathrm{true})(false,true), by vfalse,false=(1,0)v_{\mathrm{false},\mathrm{false}}=(1,0)vfalse,false​=(1,0), vfalse,true=(0,1)v_{\mathrm{false},\mathrm{true}}=(0,1)vfalse,true​=(0,1), vtrue,false=(1,1)/2v_{\mathrm{true},\mathrm{false}}=(1,1)/\sqrt2vtrue,false​=(1,1)/2​, and vtrue,true=(1,−1)/2v_{\mathrm{true},\mathrm{true}}=(1,-1)/\sqrt2vtrue,true​=(1,−1)/2​. The definition returns the complex matrix indexed by Boolean pairs whose entries are

Ra,g((z1,z2),(w1,w2))=va,g(z1)va,g(z2) va,g(w1)va,g(w2)‾.R_{a,g}\bigl((z_1,z_2),(w_1,w_2)\bigr) =v_{a,g}(z_1)v_{a,g}(z_2)\, \overline{v_{a,g}(w_1)v_{a,g}(w_2)}.Ra,g​((z1​,z2​),(w1​,w2​))=va,g​(z1​)va,g​(z2​)va,g​(w1​)va,g​(w2​)​.

That is, it is the outer product of va,g⊗va,gv_{a,g}\otimes v_{a,g}va,g​⊗va,g​ with itself.

QAlgorithms.Papers.Independent.Intakenext100.P04.keyLaw

Let HHH be a complete complex inner product space, III any index type, and b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​ a Hilbert basis of HHH. Let ρ\rhoρ be a bounded complex-linear operator satisfying ρ∗=ρ\rho^*=\rhoρ∗=ρ, Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every x∈Hx\in Hx∈H, and ∑i⟨bi,ρbi⟩=1\sum_i\langle b_i,\rho b_i\rangle=1∑i​⟨bi​,ρbi​⟩=1, and admitting sequences us,vs∈Hu_s,v_s\in Hus​,vs​∈H with ∑s∥us∥∥vs∥<∞\sum_s\|u_s\|\|v_s\|<\infty∑s​∥us​∥∥vs​∥<∞ and ρx=∑s⟨vs,x⟩us\rho x=\sum_s\langle v_s,x\rangle u_sρx=∑s​⟨vs​,x⟩us​ for every xxx. For any natural number rrr, write Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r, and let A:MQr(C)→B(H)A:M_{Q_r}(\mathbb C)\to\mathcal B(H)A:MQr​​(C)→B(H) be a unital complex ∗*∗-algebra homomorphism. For y∈Qry\in Q_ry∈Qr​, define hy(z)=2−r/2(−1)∑j=0r−1yjzjh_y(z)=2^{-r/2}(-1)^{\sum_{j=0}^{r-1}y_jz_j}hy​(z)=2−r/2(−1)∑j=0r−1​yj​zj​ and Py(z,z′)=hy(z)hy(z′)‾P_y(z,z')=h_y(z)\overline{h_y(z')}Py​(z,z′)=hy​(z)hy​(z′)​. The definition assigns the real number

keyLaw⁡(b,ρ,A,y)=Re⁡∑i∈I⟨bi,A(Py)ρbi⟩.\operatorname{keyLaw}(b,\rho,A,y) =\operatorname{Re}\sum_{i\in I}\langle b_i,A(P_y)\rho b_i\rangle.keyLaw(b,ρ,A,y)=Rei∈I∑​⟨bi​,A(Py​)ρbi​⟩.

The case r=0r=0r=0 is included: Q0Q_0Q0​ contains the single empty bit string and its vector hyh_yhy​ has its sole entry equal to 111.

QAlgorithms.Papers.Independent.Intakenext100.P04.maskedAccessibleInfo

Let HHH be any complete complex inner-product space with Hilbert basis b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​, and define τb(T)=∑i′⟨bi,Tbi⟩\tau_b(T)=\sum'_i\langle b_i,Tb_i\rangleτb​(T)=∑i′​⟨bi​,Tbi​⟩. Let ρ\rhoρ have a representation ρx=∑j′⟨vj,x⟩uj\rho x=\sum'_j\langle v_j,x\rangle u_jρx=∑j′​⟨vj​,x⟩uj​ with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞, satisfy ρ†=ρ\rho^\dagger=\rhoρ†=ρ, have nonnegative real quadratic form, and satisfy τb(ρ)=1\tau_b(\rho)=1τb​(ρ)=1. For any natural number rrr, let AAA be a unital complex algebra homomorphism from rrr-qubit matrices to bounded operators on HHH preserving adjoints, and put hy(x)=2−r/2(−1)∑iyixih_y(x)=2^{-r/2}(-1)^{\sum_i y_ix_i}hy​(x)=2−r/2(−1)∑i​yi​xi​. For each natural number nnn and each family M=(Mzw)M=(M^w_z)M=(Mzw​), indexed by w∈{0,1}rw\in\{0,1\}^rw∈{0,1}r and z∈Fin⁡(n)z\in\operatorname{Fin}(n)z∈Fin(n), such that every MzwM^w_zMzw​ is positive, ∑zMzw=I\sum_zM^w_z=I∑z​Mzw​=I for every www, and every MzwM^w_zMzw​ commutes with every A(B)A(B)A(B), define

LM(k,w,z)=2−rRe⁡τb ⁣(A(hk+whk+w†)Mzwρ).L_M(k,w,z) =2^{-r}\operatorname{Re}\tau_b\!\left(A(h_{k+w}h_{k+w}^\dagger)M^w_z\rho\right).LM​(k,w,z)=2−rReτb​(A(hk+w​hk+w†​)Mzw​ρ).

The definition returns the real supremum, over all such n,Mn,Mn,M, of

∑k,w,zLM(k,w,z)log⁡2LM(k,w,z)(∑w′,z′LM(k,w′,z′))(∑k′LM(k′,w,z)).\sum_{k,w,z}L_M(k,w,z)\log_2 \frac{L_M(k,w,z)} {\left(\sum_{w',z'}L_M(k,w',z')\right) \left(\sum_{k'}L_M(k',w,z)\right)}.k,w,z∑​LM​(k,w,z)log2​(∑w′,z′​LM​(k,w′,z′))(∑k′​LM​(k′,w,z))LM​(k,w,z)​.

Thus the two arguments in this mutual-information expression are kkk and the pair (w,z)(w,z)(w,z). 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 r=0r=0r=0 and n=0n=0n=0 are included, subject to the stated measurement conditions, and the real operations use a/0=0a/0=0a/0=0 and log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakenext100.P04.maskedJointLaw

Let HHH be any complete complex inner-product space with Hilbert basis b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​, and put τb(T)=∑i′⟨bi,Tbi⟩\tau_b(T)=\sum'_i\langle b_i,Tb_i\rangleτb​(T)=∑i′​⟨bi​,Tbi​⟩. Let ρ\rhoρ admit a representation ρx=∑j′⟨vj,x⟩uj\rho x=\sum'_j\langle v_j,x\rangle u_jρx=∑j′​⟨vj​,x⟩uj​ with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞, satisfy ρ†=ρ\rho^\dagger=\rhoρ†=ρ and Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, and have τb(ρ)=1\tau_b(\rho)=1τb​(ρ)=1. For any natural numbers r,nr,nr,n, let AAA be a unital complex algebra homomorphism from rrr-qubit matrices to bounded operators on HHH preserving adjoints. For each w∈{0,1}rw\in\{0,1\}^rw∈{0,1}r, let (Mzw)z∈Fin⁡(n)(M^w_z)_{z\in\operatorname{Fin}(n)}(Mzw​)z∈Fin(n)​ be positive bounded operators summing to III, each commuting with A(B)A(B)A(B) for every rrr-qubit matrix BBB. Write hy(x)=2−r/2(−1)∑iyixih_y(x)=2^{-r/2}(-1)^{\sum_i y_ix_i}hy​(x)=2−r/2(−1)∑i​yi​xi​. At every triple (k,w,z)∈{0,1}r×{0,1}r×Fin⁡(n)(k,w,z)\in\{0,1\}^r\times\{0,1\}^r\times\operatorname{Fin}(n)(k,w,z)∈{0,1}r×{0,1}r×Fin(n), the definition returns the real number

L(k,w,z)=2−rRe⁡τb ⁣(A(hk+whk+w†)Mzwρ),L(k,w,z) =2^{-r}\operatorname{Re}\tau_b\!\left(A(h_{k+w}h_{k+w}^\dagger)M^w_z\rho\right),L(k,w,z)=2−rReτb​(A(hk+w​hk+w†​)Mzw​ρ),

where k+wk+wk+w is bitwise XOR. The parameters include r=0r=0r=0 and n=0n=0n=0; when n=0n=0n=0, the family’s completeness condition is 0=I0=I0=I, and there are no triples at which to evaluate the function.

QAlgorithms.Papers.Independent.Intakenext100.P04.maskedKeyLaw

For any natural number rrr, any real-valued function p:{0,1}r→Rp:\{0,1\}^r\to\mathbb Rp:{0,1}r→R, and any k∈{0,1}rk\in\{0,1\}^rk∈{0,1}r, the definition returns

p~(k)=∑w∈{0,1}r2−rp(k+w),\widetilde p(k)=\sum_{w\in\{0,1\}^r}2^{-r}p(k+w),p​(k)=w∈{0,1}r∑​2−rp(k+w),

where +++ is bitwise XOR. No nonnegativity or normalization condition is imposed on ppp. When r=0r=0r=0, there is one empty bit string, and the returned value is ppp at that string.

QAlgorithms.Papers.Independent.Intakenext100.P04.measuredKeyLaw

Let HHH be a complete complex inner product space with a Hilbert basis b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​, for any index type III. Let ρ\rhoρ be a bounded complex-linear operator with ρ∗=ρ\rho^*=\rhoρ∗=ρ, Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, and ∑i⟨bi,ρbi⟩=1\sum_i\langle b_i,\rho b_i\rangle=1∑i​⟨bi​,ρbi​⟩=1, admitting sequences us,vs∈Hu_s,v_s\in Hus​,vs​∈H such that ∑s∥us∥∥vs∥<∞\sum_s\|u_s\|\|v_s\|<\infty∑s​∥us​∥∥vs​∥<∞ and ρx=∑s⟨vs,x⟩us\rho x=\sum_s\langle v_s,x\rangle u_sρx=∑s​⟨vs​,x⟩us​. For natural numbers r,nr,nr,n, put Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r, let A:MQr(C)→B(H)A:M_{Q_r}(\mathbb C)\to\mathcal B(H)A:MQr​​(C)→B(H) be a unital complex ∗*∗-algebra homomorphism, and let MMM consist of positive operators EzE_zEz​, z<nz<nz<n, summing to IHI_HIH​ and commuting with every A(B)A(B)A(B). For (y,z)∈Qr×{0,…,n−1}(y,z)\in Q_r\times\{0,\ldots,n-1\}(y,z)∈Qr​×{0,…,n−1}, put hy(a)=2−r/2(−1)∑jyjajh_y(a)=2^{-r/2}(-1)^{\sum_jy_ja_j}hy​(a)=2−r/2(−1)∑j​yj​aj​ and Py(a,a′)=hy(a)hy(a′)‾P_y(a,a')=h_y(a)\overline{h_y(a')}Py​(a,a′)=hy​(a)hy​(a′)​. The definition is

measuredKeyLaw⁡(b,ρ,A,M,(y,z))=Re⁡∑i∈I⟨bi,A(Py)Ezρbi⟩.\operatorname{measuredKeyLaw}(b,\rho,A,M,(y,z)) =\operatorname{Re}\sum_{i\in I}\langle b_i,A(P_y)E_z\rho b_i\rangle.measuredKeyLaw(b,ρ,A,M,(y,z))=Rei∈I∑​⟨bi​,A(Py​)Ez​ρbi​⟩.

Here r=0r=0r=0 is included, with the empty bit string and empty sum conventions; when n=0n=0n=0, there is no pair (y,z)(y,z)(y,z) at which to evaluate the function.

QAlgorithms.Papers.Independent.Intakenext100.P04.occasionalCopyAverage

For every real ttt and Boolean aaa, identify Boolean indices with 0,10,10,1 and define

v0,0=(10),v0,1=(01),v1,0=12(11),v1,1=12(1−1),Ra,g(i,j)=va,g(i)va,g(j)‾.v_{0,0}=\begin{pmatrix}1\\0\end{pmatrix},\quad v_{0,1}=\begin{pmatrix}0\\1\end{pmatrix},\quad v_{1,0}=\frac1{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix},\quad v_{1,1}=\frac1{\sqrt2}\begin{pmatrix}1\\-1\end{pmatrix}, \qquad R_{a,g}(i,j)=v_{a,g}(i)\overline{v_{a,g}(j)}.v0,0​=(10​),v0,1​=(01​),v1,0​=2​1​(11​),v1,1​=2​1​(1−1​),Ra,g​(i,j)=va,g​(i)va,g​(j)​.

Then occasionalCopyAverage at (t,a)(t,a)(t,a) is the complex matrix indexed by {0,1}⊔{0,1}2\{0,1\}\sqcup\{0,1\}^2{0,1}⊔{0,1}2 given by

At,a=14∑g∈{0,1}((1−t)Ra,g00t(Ra,g⊗Ra,g)),A_{t,a}=\frac14\sum_{g\in\{0,1\}} \begin{pmatrix} (1-t)R_{a,g}&0\\ 0&t(R_{a,g}\otimes R_{a,g}) \end{pmatrix},At,a​=41​g∈{0,1}∑​((1−t)Ra,g​0​0t(Ra,g​⊗Ra,g​)​),

where the tensor matrix has entry Ra,g(i,k)Ra,g(j,l)R_{a,g}(i,k)R_{a,g}(j,l)Ra,g​(i,k)Ra,g​(j,l) at ((i,j),(k,l))((i,j),(k,l))((i,j),(k,l)). The two weights are each 1/41/41/4, so their sum is 1/21/21/2; this matrix has trace 1/21/21/2. There is no restriction on ttt in this definition.

QAlgorithms.Papers.Independent.Intakenext100.P04.occasionalCopyState

For every real ttt and Booleans a,ga,ga,g, identify Boolean indices with 0,10,10,1 and let

v0,0=(10),v0,1=(01),v1,0=12(11),v1,1=12(1−1).v_{0,0}=\begin{pmatrix}1\\0\end{pmatrix},\quad v_{0,1}=\begin{pmatrix}0\\1\end{pmatrix},\quad v_{1,0}=\frac1{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix},\quad v_{1,1}=\frac1{\sqrt2}\begin{pmatrix}1\\-1\end{pmatrix}.v0,0​=(10​),v0,1​=(01​),v1,0​=2​1​(11​),v1,1​=2​1​(1−1​).

Set Ra,g(i,j)=va,g(i)va,g(j)‾R_{a,g}(i,j)=v_{a,g}(i)\overline{v_{a,g}(j)}Ra,g​(i,j)=va,g​(i)va,g​(j)​. Then occasionalCopyState at (t,a,g)(t,a,g)(t,a,g) is the complex matrix on the disjoint union {0,1}⊔{0,1}2\{0,1\}\sqcup\{0,1\}^2{0,1}⊔{0,1}2 given by

Ot,a,g=((1−t)Ra,g00t(Ra,g⊗Ra,g)),(Ra,g⊗Ra,g)(i,j),(k,l)=Ra,g(i,k)Ra,g(j,l).O_{t,a,g}= \begin{pmatrix} (1-t)R_{a,g}&0\\ 0&t(R_{a,g}\otimes R_{a,g}) \end{pmatrix}, \qquad (R_{a,g}\otimes R_{a,g})_{(i,j),(k,l)} =R_{a,g}(i,k)R_{a,g}(j,l).Ot,a,g​=((1−t)Ra,g​0​0t(Ra,g​⊗Ra,g​)​),(Ra,g​⊗Ra,g​)(i,j),(k,l)​=Ra,g​(i,k)Ra,g​(j,l).

Thus entries between the two summands of the disjoint union are zero. The definition permits every real ttt, including values outside [0,1][0,1][0,1]; at t=0t=0t=0 the second block vanishes, and at t=1t=1t=1 the first block vanishes.

QAlgorithms.Papers.Independent.Intakenext100.P04.preparationBranch

Let I,JI,JI,J be arbitrary types, HHH a complete complex inner product space, and b:I×J→Hb:I\times J\to Hb:I×J→H a Hilbert basis. Let ρ\rhoρ be a continuous complex linear operator that has a representation ρx=∑r∈N⟨vr,x⟩ur\rho x=\sum_{r\in\mathbb N}\langle v_r,x\rangle u_rρx=∑r∈N​⟨vr​,x⟩ur​ with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, satisfies ρ∗=ρ\rho^*=\rhoρ∗=ρ and Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every x∈Hx\in Hx∈H, and has ∑(i,j)∈I×J⟨b(i,j),ρb(i,j)⟩=1\sum_{(i,j)\in I\times J}\langle b_{(i,j)},\rho b_{(i,j)}\rangle=1∑(i,j)∈I×J​⟨b(i,j)​,ρb(i,j)​⟩=1. Let MMM consist of positive operators Efalse,EtrueE_{\mathrm{false}},E_{\mathrm{true}}Efalse​,Etrue​ summing to the identity, with matrix entries ⟨b(i,j),Egb(k,l)⟩=δikm(g,j,l)\langle b_{(i,j)},E_gb_{(k,l)}\rangle=\delta_{ik}m(g,j,l)⟨b(i,j)​,Eg​b(k,l)​⟩=δik​m(g,j,l) for some function mmm. For either Boolean ggg, this defines the continuous operator

Bg=Eg1/2ρEg1/2,B_g=E_g^{1/2}\rho E_g^{1/2},Bg​=Eg1/2​ρEg1/2​,

where the square root is obtained by continuous functional calculus. The definition performs no normalization by the trace of BgB_gBg​; in particular, a zero branch is allowed.

QAlgorithms.Papers.Independent.Intakenext100.P04.preparationWeight

For arbitrary types I,JI,JI,J, a complete complex inner product space HHH, and a Hilbert basis b:I×J→Hb:I\times J\to Hb:I×J→H, let ρ\rhoρ be self-adjoint, satisfy Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, have basis trace 111, and admit ρx=∑r∈N⟨vr,x⟩ur\rho x=\sum_{r\in\mathbb N}\langle v_r,x\rangle u_rρx=∑r∈N​⟨vr​,x⟩ur​ with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞. Let MMM consist of positive effects Efalse,EtrueE_{\mathrm{false}},E_{\mathrm{true}}Efalse​,Etrue​ summing to the identity, whose basis entries are ⟨b(i,j),Egb(k,l)⟩=δikm(g,j,l)\langle b_{(i,j)},E_gb_{(k,l)}\rangle=\delta_{ik}m(g,j,l)⟨b(i,j)​,Eg​b(k,l)​⟩=δik​m(g,j,l) for some function mmm. For each Boolean ggg, this defines the real number

wg=12Re⁡(∑(i,j)∈I×J⟨b(i,j),Eg1/2ρEg1/2b(i,j)⟩).w_g=\frac12\operatorname{Re}\left( \sum_{(i,j)\in I\times J} \left\langle b_{(i,j)},E_g^{1/2}\rho E_g^{1/2}b_{(i,j)}\right\rangle \right).wg​=21​Re​(i,j)∈I×J∑​⟨b(i,j)​,Eg1/2​ρEg1/2​b(i,j)​⟩​.

The basis trace of ρ\rhoρ is the same diagonal sum with ρ\rhoρ in place of Eg1/2ρEg1/2E_g^{1/2}\rho E_g^{1/2}Eg1/2​ρEg1/2​. Square roots use continuous functional calculus; the complex sum has value 000 if not summable. This is a definition with a factor 1/21/21/2, including when the branch is zero.

QAlgorithms.Papers.Independent.Intakenext100.P04.projectedJointState

Let HHH be any complete complex inner-product space, let III be any index type, and let b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​ be a Hilbert basis of HHH. Write τb(T)=∑i∈I′⟨bi,Tbi⟩\tau_b(T)=\sum'_{i\in I}\langle b_i,Tb_i\rangleτb​(T)=∑i∈I′​⟨bi​,Tbi​⟩. Let ρ\rhoρ be a bounded complex linear operator that admits sequences uj,vj∈Hu_j,v_j\in Huj​,vj​∈H with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞ and ρx=∑j′⟨vj,x⟩uj\rho x=\sum'_j\langle v_j,x\rangle u_jρx=∑j′​⟨vj​,x⟩uj​ for every xxx, and satisfies ρ†=ρ\rho^\dagger=\rhoρ†=ρ, Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, and τb(ρ)=1\tau_b(\rho)=1τb​(ρ)=1. For any bounded complex linear operator P:H→HP:H\to HP:H→H, the definition returns

(Re⁡τb(Pρ))−1PρP,\bigl(\operatorname{Re}\tau_b(P\rho)\bigr)^{-1}P\rho P,(Reτb​(Pρ))−1PρP,

where the real reciprocal is embedded into C\mathbb CC. There is no assumption that PPP is a projection or self-adjoint, and the rightmost factor is PPP itself. If Re⁡τb(Pρ)=0\operatorname{Re}\tau_b(P\rho)=0Reτb​(Pρ)=0, 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 III be an arbitrary type, HHH a complete complex inner product space, and b:I→Hb:I\to Hb:I→H a Hilbert basis. Let ρ:H→H\rho:H\to Hρ:H→H be a continuous complex linear operator admitting ρx=∑r∈N⟨vr,x⟩ur\rho x=\sum_{r\in\mathbb N}\langle v_r,x\rangle u_rρx=∑r∈N​⟨vr​,x⟩ur​ with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, satisfying ρ∗=ρ\rho^*=\rhoρ∗=ρ, Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, and ∑ℓ∈I⟨bℓ,ρbℓ⟩=1\sum_{\ell\in I}\langle b_\ell,\rho b_\ell\rangle=1∑ℓ∈I​⟨bℓ​,ρbℓ​⟩=1. For any natural number nnn, including 000, let AAA be a unital complex star-algebra homomorphism from the complex matrices indexed by nnn-bit strings to the continuous complex linear operators on HHH. This defines the matrix QQQ indexed by nnn-bit strings by

Qij=∑ℓ∈I⟨bℓ,A(Eji)ρbℓ⟩,(Eji)kl={1,k=j and l=i,0,otherwise.Q_{ij} = \sum_{\ell\in I} \left\langle b_\ell,A(E_{ji})\rho b_\ell\right\rangle, \qquad (E_{ji})_{kl}= \begin{cases} 1,&k=j\text{ and }l=i,\\ 0,&\text{otherwise}. \end{cases}Qij​=ℓ∈I∑​⟨bℓ​,A(Eji​)ρbℓ​⟩,(Eji​)kl​={1,0,​k=j and l=i,otherwise.​

In particular, the matrix unit used in entry (i,j)(i,j)(i,j) has row jjj and column iii. No finiteness or countability assumption is imposed on III; the complex infinite sum is assigned value 000 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 a,ga,ga,g, the definition returns the vector va,g∈C{false,true}v_{a,g}\in\mathbb C^{\{\mathrm{false},\mathrm{true}\}}va,g​∈C{false,true} whose coordinate at a Boolean zzz is

va,g(z)={1,a=false and z=g,0,a=false and z≠g,−1/2,a=true, z=true, g=true,1/2,a=true and not both z,g are true.v_{a,g}(z)= \begin{cases} 1,&a=\mathrm{false}\text{ and }z=g,\\ 0,&a=\mathrm{false}\text{ and }z\ne g,\\ -1/\sqrt2,&a=\mathrm{true},\ z=\mathrm{true},\ g=\mathrm{true},\\ 1/\sqrt2,&a=\mathrm{true}\text{ and not both }z,g\text{ are true}. \end{cases}va,g​(z)=⎩⎨⎧​1,0,−1/2​,1/2​,​a=false and z=g,a=false and z=g,a=true, z=true, g=true,a=true and not both z,g are true.​

Equivalently, in the coordinate order (false,true)(\mathrm{false},\mathrm{true})(false,true), the four vectors are vfalse,false=(1,0)v_{\mathrm{false},\mathrm{false}}=(1,0)vfalse,false​=(1,0), vfalse,true=(0,1)v_{\mathrm{false},\mathrm{true}}=(0,1)vfalse,true​=(0,1), vtrue,false=(1,1)/2v_{\mathrm{true},\mathrm{false}}=(1,1)/\sqrt2vtrue,false​=(1,1)/2​, and vtrue,true=(1,−1)/2v_{\mathrm{true},\mathrm{true}}=(1,-1)/\sqrt2vtrue,true​=(1,−1)/2​.

QAlgorithms.Papers.Independent.Intakenext100.P04.squaredHilbertFidelity

For any complete complex inner product space HHH, any index type III, any Hilbert basis b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​, and any two bounded complex-linear operators ρ,σ:H→H\rho,\sigma:H\to Hρ,σ:H→H, the definition assigns

(Re⁡∑i∈I⟨bi, f ⁣(f(ρ) σ f(ρ))bi⟩)2,f(t)=t,\left( \operatorname{Re}\sum_{i\in I} \left\langle b_i,\, f\!\left(f(\rho)\,\sigma\,f(\rho)\right)b_i \right\rangle \right)^2, \qquad f(t)=\sqrt t,(Rei∈I∑​⟨bi​,f(f(ρ)σf(ρ))bi​⟩)2,f(t)=t​,

where each application of fff 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 ρ\rhoρ or σ\sigmaσ. 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 N,rN,rN,r, let CCC consist of an injective binary-linear map E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, a function D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and a set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ satisfying D(E(y)+e)=yD(E(y)+e)=yD(E(y)+e)=y for all y∈Qry\in Q_ry∈Qr​ and e∈Ee\in\mathcal Ee∈E, where Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m and addition is pointwise XOR. For any x∈QNx\in Q_Nx∈QN​, the definition produces the bit string

(transposeEncoder⁡(C,x))i=⨁q=0N−1(xq∧E(ei)q),0≤i<r,\bigl(\operatorname{transposeEncoder}(C,x)\bigr)_i =\bigoplus_{q=0}^{N-1}\bigl(x_q\land E(e_i)_q\bigr), \qquad 0\le i<r,(transposeEncoder(C,x))i​=q=0⨁N−1​(xq​∧E(ei​)q​),0≤i<r,

where ei∈Qre_i\in Q_rei​∈Qr​ has a true bit exactly at coordinate iii. Thus each output bit is the parity of the coordinates where both xxx and E(ei)E(e_i)E(ei​) are true. The decoder and error set do not enter this formula. If r=0r=0r=0, the output is the empty bit string; an empty parity sum is false.

QAlgorithms.Papers.Independent.Intakenext100.P04.uniformKeyFidelity

For any natural number rrr, including 000, and any real-valued function ppp on the set of rrr-bit strings, this defines

Funif(p)=2−r(∑y∈{false,true}rp(y))2.F_{\mathrm{unif}}(p) = 2^{-r}\left(\sum_{y\in\{\mathrm{false},\mathrm{true}\}^{r}}\sqrt{p(y)}\right)^2.Funif​(p)=2−r​y∈{false,true}r∑​p(y)​​2.

No nonnegativity or normalization hypothesis is imposed on ppp. The real square-root operation has value 000 on negative inputs. For r=0r=0r=0, the sum has one term, indexed by the empty bit string, so the value is (p(∅))2(\sqrt{p(\varnothing)})^2(p(∅)​)2.

QAlgorithms.Papers.Independent.Intakenext100.P04.virtualCircuit

For natural numbers N,rN,rN,r, let CCC comprise an injective binary-linear map E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, a function D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and a set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ satisfying D(E(y)+e)=yD(E(y)+e)=yD(E(y)+e)=y for all y∈Qry\in Q_ry∈Qr​ and e∈Ee\in\mathcal Ee∈E, where Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m with pointwise XOR addition. The virtual circuit is the complex matrix U2U1U_2U_1U2​U1​, where U1U_1U1​ sends the basis label (x,y)(x,y)(x,y) to (x+E(y),y)(x+E(y),y)(x+E(y),y), and U2U_2U2​ sends (x,y)(x,y)(x,y) to (x,y+D(x))(x,y+D(x))(x,y+D(x)); each matrix has entry 111 at its indicated output label and 000 elsewhere. Equivalently, its entries are

V(p,(x,y))={1,p=(x+E(y), y+D(x+E(y))),0,otherwise.V(p,(x,y))= \begin{cases} 1,&p=(x+E(y),\,y+D(x+E(y))),\\ 0,&\text{otherwise}. \end{cases}V(p,(x,y))={1,0,​p=(x+E(y),y+D(x+E(y))),otherwise.​

This definition includes zero-length registers and evaluates DDD on all inputs, regardless of membership in the error set.

QAlgorithms.Papers.Independent.Intakenext100.P04.virtualIsometry

For natural numbers N,rN,rN,r, let CCC consist of an injective binary-linear encoder E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, a decoder D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and an error set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ such that D(E(y)+e)=yD(E(y)+e)=yD(E(y)+e)=y for every yyy and every e∈Ee\in\mathcal Ee∈E, where Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m and addition is pointwise XOR. Define the complex matrix VVV by V(p,(x,y))=1V(p,(x,y))=1V(p,(x,y))=1 when p=(x+E(y),y+D(x+E(y)))p=(x+E(y),y+D(x+E(y)))p=(x+E(y),y+D(x+E(y))), and 000 otherwise. The virtual isometry is the rectangular complex matrix WWW, with rows indexed by QN×QrQ_N\times Q_rQN​×Qr​ and columns by QNQ_NQN​, given by

W(p,x)=2−r/2∑y∈QrV(p,(x,y)).W(p,x)=2^{-r/2}\sum_{y\in Q_r}V(p,(x,y)).W(p,x)=2−r/2y∈Qr​∑​V(p,(x,y)).

Here the coefficient 2−r/22^{-r/2}2−r/2 is the yyy-coordinate of the vector obtained by applying the matrix with entries 2−r/2(−1)∑jajyj2^{-r/2}(-1)^{\sum_j a_jy_j}2−r/2(−1)∑j​aj​yj​ to the basis vector at the all-false string a=0a=0a=0. The formula includes r=0r=0r=0, when this coefficient is 111 and the sum has one term, as well as N=0N=0N=0.

QAlgorithms.Papers.Independent.Intakenext100.P04.virtualKeyEffect

For natural numbers N,rN,rN,r, let CCC comprise an injective binary-linear map E:Qr→QNE:Q_r\to Q_NE:Qr​→QN​, a decoder D:QN→QrD:Q_N\to Q_rD:QN​→Qr​, and a set E⊆QN\mathcal E\subseteq Q_NE⊆QN​ satisfying D(E(a)+e)=aD(E(a)+e)=aD(E(a)+e)=a for all a∈Qra\in Q_ra∈Qr​ and e∈Ee\in\mathcal Ee∈E, where Qm={0,1}mQ_m=\{0,1\}^mQm​={0,1}m and addition is pointwise XOR. Define V(p,(x,a))V(p,(x,a))V(p,(x,a)) to be 111 if p=(x+E(a),a+D(x+E(a)))p=(x+E(a),a+D(x+E(a)))p=(x+E(a),a+D(x+E(a))), and 000 otherwise, and define W(p,x)=2−r/2∑a∈QrV(p,(x,a))W(p,x)=2^{-r/2}\sum_{a\in Q_r}V(p,(x,a))W(p,x)=2−r/2∑a∈Qr​​V(p,(x,a)). For any y∈Qry\in Q_ry∈Qr​, put hy(a)=2−r/2(−1)∑jyjajh_y(a)=2^{-r/2}(-1)^{\sum_jy_ja_j}hy​(a)=2−r/2(−1)∑j​yj​aj​ and Py(a,a′)=hy(a)hy(a′)‾P_y(a,a')=h_y(a)\overline{h_y(a')}Py​(a,a′)=hy​(a)hy​(a′)​. The virtual key effect is the complex matrix on QNQ_NQN​ defined by

W∗(IQN⊗Py)W,W^*(I_{Q_N}\otimes P_y)W,W∗(IQN​​⊗Py​)W,

where W∗W^*W∗ is the conjugate transpose and the tensor-product matrix has entries (IQN⊗Py)((x,a),(x′,a′))=1{x=x′}Py(a,a′)(I_{Q_N}\otimes P_y)((x,a),(x',a'))=\mathbf1_{\{x=x'\}}P_y(a,a')(IQN​​⊗Py​)((x,a),(x′,a′))=1{x=x′}​Py​(a,a′). 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 N,rN,rN,r, let CCC consist of an injective binary linear encoder e:{0,1}r→{0,1}Ne:\{0,1\}^r\to\{0,1\}^Ne:{0,1}r→{0,1}N, a decoder d:{0,1}N→{0,1}rd:\{0,1\}^N\to\{0,1\}^rd:{0,1}N→{0,1}r, and an error set E\mathcal EE satisfying d(e(y)+x)=yd(e(y)+x)=yd(e(y)+x)=y for every yyy and every x∈Ex\in\mathcal Ex∈E, with addition interpreted as XOR. Let ρ\rhoρ be any complex matrix indexed by NNN-bit strings; no positivity or trace condition is imposed on ρ\rhoρ. Define matrices U1,U2U_1,U_2U1​,U2​ by U1∣x,y⟩=∣x+e(y),y⟩U_1|x,y\rangle=|x+e(y),y\rangleU1​∣x,y⟩=∣x+e(y),y⟩ and U2∣x,y⟩=∣x,y+d(x)⟩U_2|x,y\rangle=|x,y+d(x)\rangleU2​∣x,y⟩=∣x,y+d(x)⟩, put U=U2U1U=U_2U_1U=U2​U1​, and let h0(y)=2−r/2h_0(y)=2^{-r/2}h0​(y)=2−r/2 for every rrr-bit string yyy. The definition returns the rrr-bit matrix VC(ρ)V_C(\rho)VC​(ρ) with entries

VC(ρ)a,b=∑s∈{0,1}N[U(ρ⊗h0h0†)U†](s,a),(s,b).V_C(\rho)_{a,b} =\sum_{s\in\{0,1\}^N} \bigl[U(\rho\otimes h_0h_0^\dagger)U^\dagger\bigr]_{(s,a),(s,b)}.VC​(ρ)a,b​=s∈{0,1}N∑​[U(ρ⊗h0​h0†​)U†](s,a),(s,b)​.

Thus the first register is summed out. Zero values of NNN or rrr are included, and a zero-length register has one basis label.

QAlgorithms.Papers.Independent.Intakenext100.P04.weightedEmittedBranch

For arbitrary types I,JI,JI,J, a complete complex inner product space HHH, and a Hilbert basis b:I×J→Hb:I\times J\to Hb:I×J→H, let ρ\rhoρ be self-adjoint and positive in the sense that Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for every xxx, with basis trace 111 and a representation ρx=∑r∈N⟨vr,x⟩ur\rho x=\sum_{r\in\mathbb N}\langle v_r,x\rangle u_rρx=∑r∈N​⟨vr​,x⟩ur​ satisfying ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞. Let MMM have positive effects Efalse,EtrueE_{\mathrm{false}},E_{\mathrm{true}}Efalse​,Etrue​ summing to the identity and satisfying ⟨b(i,j),Egb(k,l)⟩=δikm(g,j,l)\langle b_{(i,j)},E_gb_{(k,l)}\rangle=\delta_{ik}m(g,j,l)⟨b(i,j)​,Eg​b(k,l)​⟩=δik​m(g,j,l) for some function mmm. For each Boolean ggg, this defines the matrix WgW_gWg​ by

(Wg)ik=12∑j∈J⟨b(i,j),Eg1/2ρEg1/2b(k,j)⟩.(W_g)_{ik} =\frac12\sum_{j\in J} \left\langle b_{(i,j)},E_g^{1/2}\rho E_g^{1/2}b_{(k,j)}\right\rangle.(Wg​)ik​=21​j∈J∑​⟨b(i,j)​,Eg1/2​ρEg1/2​b(k,j)​⟩.

Here square roots use continuous functional calculus, and the basis trace of ρ\rhoρ means ∑(i,j)⟨b(i,j),ρb(i,j)⟩\sum_{(i,j)}\langle b_{(i,j)},\rho b_{(i,j)}\rangle∑(i,j)​⟨b(i,j)​,ρb(i,j)​⟩. The factor 1/21/21/2 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 000 when not summable.

QAlgorithms.Papers.Independent.Intakenext100.P04.xBasisVector

For every natural number nnn, including 000, and every bit string x:{0,…,n−1}→{false,true}x:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}x:{0,…,n−1}→{false,true}, this defines a vector hxh_xhx​ in the complex Euclidean space indexed by all nnn-bit strings. It is obtained by multiplying the coordinate unit vector at xxx by the matrix whose (y,x)(y,x)(y,x)-entry is negative (1/2)n(1/\sqrt2)^n(1/2​)n when the number of positions where both xxx and yyy are true is odd, and positive (1/2)n(1/\sqrt2)^n(1/2​)n otherwise. Equivalently,

hx(y)=2−n/2(−1)∑q=0n−1[xq=true] [yq=true].h_x(y)=2^{-n/2}(-1)^{\sum_{q=0}^{n-1}[x_q=\mathrm{true}]\,[y_q=\mathrm{true}]}.hx​(y)=2−n/2(−1)∑q=0n−1​[xq​=true][yq​=true].

For n=0n=0n=0, there is one empty bit string, and the vector’s sole coordinate is 111.

QAlgorithms.Papers.Independent.Intakenext100.P04.xProjector

For every natural number nnn, including 000, and every nnn-bit string xxx, define hx(y)=2−n/2(−1)∑q=0n−1[xq=true][yq=true]h_x(y)=2^{-n/2}(-1)^{\sum_{q=0}^{n-1}[x_q=\mathrm{true}][y_q=\mathrm{true}]}hx​(y)=2−n/2(−1)∑q=0n−1​[xq​=true][yq​=true] for every nnn-bit string yyy. This declaration defines the complex matrix indexed by nnn-bit strings with entries

(Xx)yz=hx(y)hx(z)‾=2−n(−1)∑q=0n−1[xq=true][yq=true]+∑q=0n−1[xq=true][zq=true].(X_x)_{yz}=h_x(y)\overline{h_x(z)} = 2^{-n}(-1)^{ \sum_{q=0}^{n-1}[x_q=\mathrm{true}][y_q=\mathrm{true}] + \sum_{q=0}^{n-1}[x_q=\mathrm{true}][z_q=\mathrm{true}] }.(Xx​)yz​=hx​(y)hx​(z)​=2−n(−1)∑q=0n−1​[xq​=true][yq​=true]+∑q=0n−1​[xq​=true][zq​=true].

For n=0n=0n=0, 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 nnn, including 000, and every nnn-bit string xxx, this defines the complex matrix indexed by pairs of nnn-bit strings whose entries are

(Zx)yz={1,y=x and z=x,0,otherwise.(Z_x)_{yz}= \begin{cases} 1,&y=x\text{ and }z=x,\\ 0,&\text{otherwise}. \end{cases}(Zx​)yz​={1,0,​y=x and z=x,otherwise.​

Thus the definition takes the coordinate unit vector at xxx and forms the matrix with entries equal to its yyy-coordinate times the complex conjugate of its zzz-coordinate. For n=0n=0n=0, the index set consists of the single empty bit string, and the matrix is the one-dimensional identity.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me