Definitions for Distance measures to compare real and ideal quantum processes
DefinitionQAlgorithms_Papers_Independent_Advance50_P17The objects the formalized statements of Distance measures to compare real and ideal quantum processes (arXiv:quant-ph/0408063) are stated in. Each was checked against the paper by a blind read-back and a moderator.
ProcessDensityInput: Normalized density operators; source PDF pp.3--4.FiniteProcess: CPTP maps, using the accepted finite normalized Kraus convention; PDF p.3.ProcessPureInput: Pure inputs are unit vectors; the distances act on their densities, PDF pp.3--4.MetricAxioms: The four metric axioms, including separation, PDF p.1.FiniteStateDistance: A state-distance family on finite registers, PDF pp.4--5.ProcessDistance: A process-distance family, allowing compatible input and output registers, PDF pp.1--2.ProcessMetrics: Metric property on actual CPTP maps, PDF pp.1--2.ProcessChaining: Chaining is uniform over compatible CPTP maps, PDF p.2.StateMetrics: State metric axioms hold in every positive finite dimension, PDF p.5.StateContinuous: Continuity on normalized states, the regularity implicit in the Haar integral, PDF p.7.StateContractive: Contractivity includes changing finite registers, PDF pp.4--6.StateStable: Tensor stability and invariance under canonical basis permutations, PDF pp.3,5. The latter identifies the reference-first Choi tensor order with the product order.StateDoublyConvex: Joint convexity under common finite probability mixtures, PDF pp.5,8. This is a genuine additional premise for the generic pure-input conclusion; it is NOT assumed of A,B,C, whose printed joint-convexity claim is deferred.Choice: The paper's four candidate state metrics, PDF pp.4--5.stateDistance: A, B, C are decreasing transforms of squared quantum fidelity, PDF p.4.normalizedProcessState: Reference-first normalized Choi state, Eq.(3), PDF p.3.proDistance: Process-state distance, Eq.(6), PDF p.5.proFidelity: Process fidelity is squared fidelity of normalized Choi states, PDF pp.5--6.haarColumnInput: Haar input obtained from one column of Haar U(card I), transported to I, PDF p.7. The column is fixed independently of the channels.pureInputAverage: Normalized Haar pure-state average, PDF p.7.aveDistance: Eq.(13): average the distance, PDF p.7.aveFidelity: Eq.(14): average squared fidelity before any transform, PDF p.7.maxDistance: Eq.(16), supremum over the nonempty compact unit sphere, PDF p.8. Attainment and equality with mixed-input optimization are conclusions below.minFidelity: Eq.(17), minimum squared fidelity over pure inputs, PDF p.8.stabDistance: Eq.(18): input-sized identity ancilla, PDF p.8.stabFidelity: Stabilized minimum squared fidelity, PDF p.8.stabC: C_stab = sqrt(1-F_stab), PDF pp.8--9.purifiedFidelity: Actual purified channel-pair fidelity objective, PDF pp.12--13.purifiedChannelTraceDistance: Actual purified trace-distance objective; this is not D(E(rho),F(rho)), PDF p.13.binarySuccess: Success for the binary POVM {M,I-M}, guessing E at M, PDF pp.4,7--8.optimalSuccess: Optimized equal-prior success; the effect set is nonempty and bounded on states, PDF p.4.basisOutputLaw: Classical computational-basis output law, Section V, PDF pp.9--10.jointLaw: Uniform joint law retains the input label, PDF p.10.worstFunctionErrorProbability: Actual worst-case function error, PDF p.9.meanError: Uniform finite-instance average, not a Haar average, PDF p.9.classicalVariation: Classical total variation, PDF p.10.bhattacharyya: UNSQUARED Bhattacharyya overlap, explicitly defined on PDF p.10.fidelityTransform: Transform an already averaged fidelity, a different construction from Eq.(13), PDF p.7.reconstructionCoefficients: Corrected Eq.(11) coefficient matrix, computed from two operator bases, PDF p.6. The b coefficient uses U V_j^dagger U^dagger as forced by Eq.(10), correcting the printed typo.pairedOperator: Corrected Eq.(12) paired operators; coefficients are computed independently of E, PDF p.6.hermitianImag: Hermitian imaginary part, reference note [45], PDF p.15.inputPauliLabel: Fixed labels I,X,Y,Z for the qubit construction, PDF pp.6--7.tomographyQubitInput: Normalize the source's four one-qubit input matrices to trace one, PDF p.6.tomographyProductInput: Product density inputs with wire 0 first, PDF pp.6--7.productPauli: Pauli product from the accepted fixed tensor convention, PDF pp.6--7.productCoefficient: Real expansion coefficients in the NORMALIZED density basis: I=2rho_0, P=2rho_P-2rho_0, tensorized over the wires, PDF pp.6--7.productObservable: Paired Hermitian observables for the normalized n-qubit basis, PDF pp.6--7.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumOutputMetrics
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Defs_Stabilizer
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P53
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75
import Definitions.Def_QAlgorithms_Defs_LocalHamiltonian
noncomputable section
open MeasureTheory Filter
open scoped Matrix ComplexConjugate Topology
namespace QAlgorithms.Papers.Independent.Advance50.P17
open QAlgorithms.Papers.Independent.Information100.P53 (fidelity)
open QAlgorithms.Papers.Independent.Information100.P08 (canonicalPurification)
open QAlgorithms.Papers.Independent.Information100.P75 (hermitianReal)
/-- Normalized density operators; source PDF pp.3--4. -/
abbrev ProcessDensityInput (I : Type) [Fintype I] [Nonempty I] := {rho : Matrix I I ℂ // IsDensityMatrix rho}
/-- CPTP maps, using the accepted finite normalized Kraus convention; PDF p.3. -/
abbrev FiniteProcess (I J : Type) [Fintype I] [Fintype J] [DecidableEq I]
[Nonempty I] [Nonempty J] :=
{E : Superop I J // IsChannel E}
/-- Pure inputs are unit vectors; the distances act on their densities, PDF pp.3--4. -/
abbrev ProcessPureInput (I : Type) [Fintype I] [Nonempty I] := {psi : EuclideanSpace ℂ I // IsState psi}
/-- The four metric axioms, including separation, PDF p.1. -/
def MetricAxioms {X : Type*} (delta : X → X → ℝ) : Prop :=
(∀ x y, 0 ≤ delta x y) ∧ (∀ x y, delta x y = 0 ↔ x = y) ∧
(∀ x y, delta x y = delta y x) ∧
(∀ x y z, delta x z ≤ delta x y + delta y z)
/-- A state-distance family on finite registers, PDF pp.4--5. -/
abbrev FiniteStateDistance := ∀ {I : Type} [Fintype I] [DecidableEq I],
Matrix I I ℂ → Matrix I I ℂ → ℝ
/-- A process-distance family, allowing compatible input and output registers, PDF pp.1--2. -/
abbrev ProcessDistance := ∀ {I J : Type} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J], Superop I J → Superop I J → ℝ
/-- Metric property on actual CPTP maps, PDF pp.1--2. -/
def ProcessMetrics (delta : ProcessDistance) : Prop :=
∀ (I J : Type) [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
[Nonempty I] [Nonempty J], MetricAxioms (fun E F : FiniteProcess I J => delta E.val F.val)
/-- Chaining is uniform over compatible CPTP maps, PDF p.2. -/
def ProcessChaining (delta : ProcessDistance) : Prop :=
∀ (I J K : Type) [Fintype I] [Fintype J] [Fintype K]
[DecidableEq I] [DecidableEq J] [DecidableEq K]
[Nonempty I] [Nonempty J] [Nonempty K],
∀ E1 F1 : FiniteProcess I J, ∀ E2 F2 : FiniteProcess J K,
delta (E2.val ∘ E1.val) (F2.val ∘ F1.val) ≤ delta E1.val F1.val + delta E2.val F2.val
/-- State metric axioms hold in every positive finite dimension, PDF p.5. -/
def StateMetrics (delta : FiniteStateDistance) : Prop :=
∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I],
MetricAxioms (fun rho sigma : ProcessDensityInput I => delta rho.val sigma.val)
/-- Continuity on normalized states, the regularity implicit in the Haar integral, PDF p.7. -/
def StateContinuous (delta : FiniteStateDistance) : Prop :=
∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I],
Continuous (fun p : ProcessDensityInput I × ProcessDensityInput I => delta p.1.val p.2.val)
/-- Contractivity includes changing finite registers, PDF pp.4--6. -/
def StateContractive (delta : FiniteStateDistance) : Prop :=
∀ (I J : Type) [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
[Nonempty I] [Nonempty J], ∀ E : FiniteProcess I J, ∀ rho sigma : ProcessDensityInput I,
delta (E.val rho.val) (E.val sigma.val) ≤ delta rho.val sigma.val
/-- Tensor stability and invariance under canonical basis permutations, PDF pp.3,5.
The latter identifies the reference-first Choi tensor order with the product order. -/
def StateStable (delta : FiniteStateDistance) : Prop :=
(∀ (I J : Type) [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
[Nonempty I] [Nonempty J], ∀ rho sigma : ProcessDensityInput I, ∀ tau : ProcessDensityInput J,
delta (Matrix.kronecker tau.val rho.val) (Matrix.kronecker tau.val sigma.val) =
delta rho.val sigma.val) ∧
(∀ (I J : Type) [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
[Nonempty I] [Nonempty J], ∀ e : I ≃ J, ∀ rho sigma : ProcessDensityInput I,
delta (Matrix.reindex e e rho.val) (Matrix.reindex e e sigma.val) = delta rho.val sigma.val)
/-- Joint convexity under common finite probability mixtures, PDF pp.5,8.
This is a genuine additional premise for the generic pure-input conclusion; it is NOT
assumed of A,B,C, whose printed joint-convexity claim is deferred. -/
def StateDoublyConvex (delta : FiniteStateDistance) : Prop :=
∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I],
∀ (L : Type) [Fintype L], ∀ p : L → ℝ, (∀ j, 0 ≤ p j) → (∑ j, p j) = 1 →
∀ rho sigma : L → ProcessDensityInput I,
delta (∑ j, (p j : ℂ) • (rho j).val) (∑ j, (p j : ℂ) • (sigma j).val) ≤
∑ j, p j * delta (rho j).val (sigma j).val
/-- The paper's four candidate state metrics, PDF pp.4--5. -/
inductive Choice where
| trace
| angle
| bures
| sine
deriving DecidableEq
/-- A, B, C are decreasing transforms of squared quantum fidelity, PDF p.4. -/
def stateDistance (c : Choice) {I : Type} [Fintype I] [DecidableEq I]
(rho sigma : Matrix I I ℂ) : ℝ :=
match c with
| .trace => traceDistance rho sigma
| .angle => Real.arccos (Real.sqrt (fidelity rho sigma))
| .bures => Real.sqrt (2 - 2 * Real.sqrt (fidelity rho sigma))
| .sine => Real.sqrt (1 - fidelity rho sigma)
variable {I J K : Type} [Fintype I] [Fintype J] [Fintype K]
[DecidableEq I] [DecidableEq J] [DecidableEq K]
[Nonempty I] [Nonempty J] [Nonempty K]
/-- Reference-first normalized Choi state, Eq.(3), PDF p.3. -/
def normalizedProcessState (E : Superop I I) : Matrix (I × I) (I × I) ℂ :=
idTensorSuperop E (pureDensity (finiteMaxEntangled I))
/-- Process-state distance, Eq.(6), PDF p.5. -/
def proDistance (delta : FiniteStateDistance) (E F : Superop I I) : ℝ :=
delta (normalizedProcessState E) (normalizedProcessState F)
/-- Process fidelity is squared fidelity of normalized Choi states, PDF pp.5--6. -/
def proFidelity (E F : Superop I I) : ℝ := fidelity (normalizedProcessState E) (normalizedProcessState F)
/-- Haar input obtained from one column of Haar U(card I), transported to I, PDF p.7.
The column is fixed independently of the channels. -/
def haarColumnInput (U : Matrix.unitaryGroup (Fin (Fintype.card I)) ℂ) : EuclideanSpace ℂ I :=
WithLp.toLp 2 fun i => (U : Matrix (Fin (Fintype.card I)) (Fin (Fintype.card I)) ℂ)
(Fintype.equivFin I i) (Fintype.equivFin I (Classical.choice (inferInstance : Nonempty I)))
/-- Normalized Haar pure-state average, PDF p.7. -/
def pureInputAverage (g : EuclideanSpace ℂ I → ℝ) : ℝ :=
∫ U, g (haarColumnInput U) ∂Schur.unitaryHaar (Fintype.card I)
/-- Eq.(13): average the distance, PDF p.7. -/
def aveDistance (delta : FiniteStateDistance) (E F : Superop I I) : ℝ :=
pureInputAverage (fun psi => delta (E (pureDensity psi)) (F (pureDensity psi)))
/-- Eq.(14): average squared fidelity before any transform, PDF p.7. -/
def aveFidelity (E F : Superop I I) : ℝ :=
pureInputAverage (fun psi => fidelity (E (pureDensity psi)) (F (pureDensity psi)))
/-- Eq.(16), supremum over the nonempty compact unit sphere, PDF p.8.
Attainment and equality with mixed-input optimization are conclusions below. -/
def maxDistance (delta : FiniteStateDistance) (E F : Superop I I) : ℝ :=
sSup (Set.range (fun psi : ProcessPureInput I => delta (E (pureDensity psi.val)) (F (pureDensity psi.val))))
/-- Eq.(17), minimum squared fidelity over pure inputs, PDF p.8. -/
def minFidelity (E F : Superop I I) : ℝ :=
sInf (Set.range (fun psi : ProcessPureInput I => fidelity (E (pureDensity psi.val)) (F (pureDensity psi.val))))
/-- Eq.(18): input-sized identity ancilla, PDF p.8. -/
def stabDistance (delta : FiniteStateDistance) (E F : Superop I I) : ℝ :=
maxDistance delta (idTensorSuperop (R := I) E) (idTensorSuperop (R := I) F)
/-- Stabilized minimum squared fidelity, PDF p.8. -/
def stabFidelity (E F : Superop I I) : ℝ :=
minFidelity (idTensorSuperop (R := I) E) (idTensorSuperop (R := I) F)
/-- C_stab = sqrt(1-F_stab), PDF pp.8--9. -/
def stabC (E F : Superop I I) : ℝ := Real.sqrt (1 - stabFidelity E F)
/-- Actual purified channel-pair fidelity objective, PDF pp.12--13. -/
def purifiedFidelity (E F : Superop I I) (rho : Matrix I I ℂ) : ℝ :=
fidelity (idTensorSuperop E (pureDensity (canonicalPurification rho)))
(idTensorSuperop F (pureDensity (canonicalPurification rho)))
/-- Actual purified trace-distance objective; this is not D(E(rho),F(rho)), PDF p.13. -/
def purifiedChannelTraceDistance (E F : Superop I I) (rho : Matrix I I ℂ) : ℝ :=
traceDistance (idTensorSuperop E (pureDensity (canonicalPurification rho)))
(idTensorSuperop F (pureDensity (canonicalPurification rho)))
/-- Success for the binary POVM {M,I-M}, guessing E at M, PDF pp.4,7--8. -/
def binarySuccess (rho sigma M : Matrix I I ℂ) : ℝ :=
(effectProb M rho + effectProb (1 - M) sigma) / 2
/-- Optimized equal-prior success; the effect set is nonempty and bounded on states, PDF p.4. -/
def optimalSuccess (rho sigma : Matrix I I ℂ) : ℝ :=
sSup (Set.range (fun M : {M : Matrix I I ℂ // IsEffect M} => binarySuccess rho sigma M.val))
/-- Classical computational-basis output law, Section V, PDF pp.9--10. -/
def basisOutputLaw (E : Superop I I) (x y : I) : ℝ := (E (pureDensity (ket x)) y y).re
/-- Uniform joint law retains the input label, PDF p.10. -/
def jointLaw (E : Superop I I) (xy : I × I) : ℝ :=
basisOutputLaw E xy.1 xy.2 / Fintype.card I
/-- Actual worst-case function error, PDF p.9. -/
def worstFunctionErrorProbability (E : Superop I I) (f : I → I) : ℝ :=
sSup (Set.range (fun x => 1 - basisOutputLaw E x (f x)))
/-- Uniform finite-instance average, not a Haar average, PDF p.9. -/
def meanError (E : Superop I I) (f : I → I) : ℝ :=
(∑ x, (1 - basisOutputLaw E x (f x))) / Fintype.card I
/-- Classical total variation, PDF p.10. -/
def classicalVariation {X : Type} [Fintype X] (p q : X → ℝ) : ℝ :=
(∑ x, |p x - q x|) / 2
/-- UNSQUARED Bhattacharyya overlap, explicitly defined on PDF p.10. -/
def bhattacharyya {X : Type} [Fintype X] (p q : X → ℝ) : ℝ :=
∑ x, Real.sqrt (p x * q x)
/-- Transform an already averaged fidelity, a different construction from Eq.(13), PDF p.7. -/
def fidelityTransform (c : Choice) (f : ℝ) : ℝ :=
match c with
| .trace => f
| .angle => Real.arccos (Real.sqrt f)
| .bures => Real.sqrt (2 - 2 * Real.sqrt f)
| .sine => Real.sqrt (1 - f)
/-- Corrected Eq.(11) coefficient matrix, computed from two operator bases, PDF p.6.
The b coefficient uses U V_j^dagger U^dagger as forced by Eq.(10), correcting the printed typo. -/
def reconstructionCoefficients (r s : Module.Basis (I × I) ℂ (Matrix I I ℂ))
(V : I × I → Matrix.unitaryGroup I ℂ) (U : Matrix.unitaryGroup I ℂ) (k l : I × I) : ℂ :=
∑ j, s.repr ((U : Matrix I I ℂ) * (V j : Matrix I I ℂ)ᴴ * (U : Matrix I I ℂ)ᴴ) l *
r.repr (V j : Matrix I I ℂ) k
/-- Corrected Eq.(12) paired operators; coefficients are computed independently of E, PDF p.6. -/
def pairedOperator (r : Module.Basis (I × I) ℂ (Matrix I I ℂ))
(V : I × I → Matrix.unitaryGroup I ℂ) (U : Matrix.unitaryGroup I ℂ) (k : I × I) : Matrix I I ℂ :=
∑ j, r.repr (V j : Matrix I I ℂ) k •
((U : Matrix I I ℂ) * (V j : Matrix I I ℂ)ᴴ * (U : Matrix I I ℂ)ᴴ)
/-- Hermitian imaginary part, reference note [45], PDF p.15. -/
def hermitianImag (A : Matrix I I ℂ) : Matrix I I ℂ := (2 * Complex.I)⁻¹ • (A - Aᴴ)
/-- Fixed labels I,X,Y,Z for the qubit construction, PDF pp.6--7. -/
def inputPauliLabel (k : Fin 4) : QAlgorithms.Stabilizer.Pauli := ![QAlgorithms.Stabilizer.Pauli.I, QAlgorithms.Stabilizer.Pauli.X, QAlgorithms.Stabilizer.Pauli.Y, QAlgorithms.Stabilizer.Pauli.Z] k
/-- Normalize the source's four one-qubit input matrices to trace one, PDF p.6. -/
def tomographyQubitInput (k : Fin 4) : Matrix Bool Bool ℂ :=
if k = 0 then (2⁻¹ : ℂ) • 1 else (2⁻¹ : ℂ) • (1 + (inputPauliLabel k).mat)
/-- Product density inputs with wire 0 first, PDF pp.6--7. -/
def tomographyProductInput (n : ℕ) (k : Fin n → Fin 4) : Matrix (Qubits n) (Qubits n) ℂ :=
Matrix.of fun x y => ∏ t, tomographyQubitInput (k t) (x t) (y t)
/-- Pauli product from the accepted fixed tensor convention, PDF pp.6--7. -/
def productPauli (n : ℕ) (j : Fin n → Fin 4) : Matrix (Qubits n) (Qubits n) ℂ :=
QAlgorithms.Stabilizer.PauliString.toMatrix ⟨0, fun t => inputPauliLabel (j t)⟩
/-- Real expansion coefficients in the NORMALIZED density basis: I=2rho_0,
P=2rho_P-2rho_0, tensorized over the wires, PDF pp.6--7. -/
def productCoefficient (n : ℕ) (j k : Fin n → Fin 4) : ℝ :=
∏ t, if j t = 0 then (if k t = 0 then 2 else 0)
else if k t = j t then 2 else if k t = 0 then -2 else 0
/-- Paired Hermitian observables for the normalized n-qubit basis, PDF pp.6--7. -/
def productObservable (n : ℕ) (U : Matrix.unitaryGroup (Qubits n) ℂ)
(k : Fin n → Fin 4) : Matrix (Qubits n) (Qubits n) ℂ :=
∑ j : Fin n → Fin 4, (productCoefficient n j k : ℂ) •
((U : Matrix (Qubits n) (Qubits n) ℂ) * (productPauli n j)ᴴ *
(U : Matrix (Qubits n) (Qubits n) ℂ)ᴴ)
/-! Sanity checks for the complete local definitions and imported reuse interfaces. -/
example (rho sigma : Matrix I I ℂ) : fidelity rho sigma = rootFidelity rho sigma ^ 2 := rfl
example (rho : Matrix I I ℂ) : stateDistance .trace rho rho = 0 := by
simp [stateDistance, traceDistance, traceNorm, cfc_zero]
example (E F : Superop I I) : proDistance (stateDistance .sine) E F =
Real.sqrt (1 - proFidelity E F) := rfl
example (E : Superop I I) (x y : I) : jointLaw E (x,y) =
basisOutputLaw E x y / Fintype.card I := rfl
example (psi : EuclideanSpace ℂ I) :
pureInputAverage (I := I) (fun _ => (0 : ℝ)) = 0 := by simp [pureInputAverage]
example (rho : Matrix I I ℂ) (a i : I) : canonicalPurification rho (a,i) =
cfc Real.sqrt rho i a := rfl
example : tomographyQubitInput 0 false false = (2⁻¹ : ℂ) := by simp [tomographyQubitInput]
example (x y : Qubits 0) : tomographyProductInput 0 (fun i => Fin.elim0 i) x y = 1 := by
simp [tomographyProductInput]
example : productCoefficient 0 (fun i => Fin.elim0 i) (fun i => Fin.elim0 i) = 1 := by
simp [productCoefficient]
end QAlgorithms.Papers.Independent.Advance50.P17
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P17.Choice
This declares a type with exactly four distinct alternatives, named , , , and , and provides a procedure deciding equality between any two alternatives.
QAlgorithms.Papers.Independent.Advance50.P17.FiniteProcess
For finite, nonempty types , with specified finite enumerations and decidable equality on , this is the type of functions admitting a finite Kraus representation: there exist a natural number and matrices such that
Each element consists of the function together with evidence that such a representation exists; no decidable-equality assumption on is required. Although ranges over all natural numbers, cannot satisfy the completeness equation because is nonempty.
QAlgorithms.Papers.Independent.Advance50.P17.FiniteStateDistance
This is the type of families assigning, for every finite type with a specified finite enumeration and decidable equality, a real-valued function of two arbitrary complex matrices. Empty index types are included. The matrices need not be positive semidefinite or have trace one, and the family is not required to satisfy nonnegativity, symmetry, separation, a triangle inequality, or compatibility between different index types or choices of structures.
QAlgorithms.Papers.Independent.Advance50.P17.MetricAxioms
For any type and any function , this proposition means that, for every ,
There are no finiteness or nonemptiness assumptions on ; when is empty, all these conditions hold vacuously.
QAlgorithms.Papers.Independent.Advance50.P17.ProcessChaining
For a family assigning a real number to every pair of functions between square complex matrix spaces over finite index types with specified finite enumerations and decidable equality, this proposition requires that, for every three nonempty such types , every two functions , and every two functions , each admitting a finite Kraus representation,
For each of these four functions separately, a finite Kraus representation consists of some and matrices from its input index space to its output index space, with for every input matrix and on its input space. The proposition does not itself require any other metric properties of .
QAlgorithms.Papers.Independent.Advance50.P17.ProcessDensityInput
For any finite, nonempty type , with a specified finite enumeration, this is the type of complex matrices indexed by that are positive semidefinite and satisfy . Each element consists of such a matrix together with evidence of these conditions. One-element index types are allowed; empty index types are excluded.
QAlgorithms.Papers.Independent.Advance50.P17.ProcessDistance
This is the type of families assigning, for every pair of finite types with specified finite enumerations and decidable equality on both types, a real-valued function of two arbitrary functions
Either index type may be empty. The functions need not be linear or admit Kraus representations, and no metric properties or compatibility between different index types or choices of structures are required.
QAlgorithms.Papers.Independent.Advance50.P17.ProcessMetrics
For a family assigning a real number to every pair of functions from complex matrices to complex matrices, for every finite with specified finite enumerations and decidable equality, this proposition requires the following on every pair of nonempty such index types: , restricted to functions admitting finite Kraus representations, is nonnegative, vanishes exactly on equal functions, is symmetric, and satisfies the triangle inequality. Here admitting a finite Kraus representation means that, for some and ,
Explicitly, for every three such functions , the required conditions are , , , and . No conditions are imposed here on pairs involving functions without such representations or on empty index types.
QAlgorithms.Papers.Independent.Advance50.P17.ProcessPureInput
For any finite, nonempty type , with a specified finite enumeration, this is the type of vectors , equipped with the Euclidean norm, satisfying . Each element includes evidence of this equality. Vectors differing by a complex phase are retained as distinct vectors unless they are equal; one-element index types are allowed, and empty index types are excluded.
QAlgorithms.Papers.Independent.Advance50.P17.StateContinuous
For a family assigning a real number to every pair of arbitrary square complex matrices over each finite index type with a specified finite enumeration and decidable equality, this proposition requires that, for every nonempty such type , the function
is jointly continuous on pairs of positive semidefinite matrices of trace one. The domain carries the product of the subspace topologies inherited from the usual finite-dimensional complex matrix space. No continuity requirement is imposed on other matrices or on empty index types.
QAlgorithms.Papers.Independent.Advance50.P17.StateContractive
For a family assigning a real number to every pair of arbitrary square complex matrices over each finite index type with a specified finite enumeration and decidable equality, this proposition requires that, for every two nonempty such types , every function admitting a finite Kraus representation, and every positive semidefinite with ,
The required representation of consists of some and satisfying for every matrix and . No other metric properties of are required by this proposition.
QAlgorithms.Papers.Independent.Advance50.P17.StateDoublyConvex
For a family assigning a real number to each pair of complex square matrices on any finite index type with decidable equality, this property means the following: for every nonempty finite type with decidable equality, every finite type , every family of real weights satisfying and , and every two families and of positive semidefinite complex matrices with trace ,
Zero weights are permitted. If is empty, its weights cannot satisfy the required sum, so that case imposes no condition. No metric axioms for are included in this definition.
QAlgorithms.Papers.Independent.Advance50.P17.StateMetrics
For a family assigning a real number to every pair of arbitrary square complex matrices over each finite index type with a specified finite enumeration and decidable equality, this proposition requires that, on every nonempty such type , its restriction to positive semidefinite matrices of trace one satisfies the metric axioms. Explicitly, for every three such matrices ,
One-dimensional spaces are included. This proposition imposes no requirements on other matrices or on empty index types.
QAlgorithms.Papers.Independent.Advance50.P17.StateStable
For a family assigning a real number to every pair of arbitrary square complex matrices over each finite index type with a specified finite enumeration and decidable equality, this proposition is the conjunction of two requirements, each quantified over all nonempty finite types with these structures. First, for every positive semidefinite and , all of trace one,
where is the left tensor factor and . Second, for every bijection and every positive semidefinite of trace one,
If no bijection exists, the second requirement for that pair of types is vacuous.
QAlgorithms.Papers.Independent.Advance50.P17.aveDistance
For every nonempty finite type with decidable equality, every family of real-valued functions on pairs of complex square matrices over finite index types with decidable equality, and arbitrary functions from complex matrices to themselves, put , let be the selected finite-type equivalence, and let be classically selected. For define and . This definition returns
with normalized Haar measure . No metric, linearity, channel, or integrability assumptions are imposed; a nonintegrable integrand gives value under the total integral convention.
QAlgorithms.Papers.Independent.Advance50.P17.aveFidelity
For every nonempty finite type with decidable equality and arbitrary functions from complex matrices to themselves, put , choose the finite-type equivalence and the classically selected element , and define and . Writing for the total real continuous-functional-calculus operation associated with the real square-root function, this definition returns
where is normalized Haar measure. No linearity, channel, or integrability assumption is required; the total integral returns if the integrand is not integrable.
QAlgorithms.Papers.Independent.Advance50.P17.basisOutputLaw
For a finite index type with decidable equality, any function , and indices , this definition gives
Thus is the outer product of the coordinate unit vector at with itself. No channel or positivity assumption is imposed on , so the value need not be a probability. Supplying requires to have elements.
QAlgorithms.Papers.Independent.Advance50.P17.bhattacharyya
For any finite type and arbitrary functions , this defines
Neither nonnegativity nor normalization is required of or . The real square root is defined to be zero on negative arguments, and the sum is zero when is empty.
QAlgorithms.Papers.Independent.Advance50.P17.binarySuccess
For a finite index type and arbitrary complex matrices on , this definition gives
where is the identity matrix. Neither nor is required to be a density matrix, and is not required to satisfy any positivity bounds, so the value is not assumed to be a probability. For an empty index type it is .
QAlgorithms.Papers.Independent.Advance50.P17.classicalVariation
For any finite type and arbitrary real-valued functions , this definition gives
Neither function is required to be nonnegative or to sum to . The empty type is included, in which case the empty sum gives value .
QAlgorithms.Papers.Independent.Advance50.P17.fidelityTransform
For a choice among the four labels trace, angle, bures, and sine, and any real number , this defines
There is no assumption that . Real square roots of negative numbers are zero; the real arccosine is defined on all real arguments, taking value above and below .
QAlgorithms.Papers.Independent.Advance50.P17.haarColumnInput
For every nonempty finite type with decidable equality, put , let be the equivalence selected by the finite-type structure, and let be the element selected by classical choice from the nonemptiness assumption. For each unitary complex matrix , this defines the vector by
Thus it selects the column indexed by and relabels its rows using ; no element is supplied as a separate argument.
QAlgorithms.Papers.Independent.Advance50.P17.hermitianImag
For any index type and any complex matrix , this defines the matrix
where and is the conjugate transpose. No Hermitian or positivity hypothesis is imposed on .
QAlgorithms.Papers.Independent.Advance50.P17.inputPauliLabel
For an integer , this defines a Pauli label by
The output is one of these four labels, rather than a matrix.
QAlgorithms.Papers.Independent.Advance50.P17.jointLaw
For a finite index type with decidable equality, any function , and a pair , this definition gives
where has entry at and elsewhere. No channel assumption is imposed on , so the resulting function on pairs is not required to be nonnegative or normalized. An argument can exist only when is nonempty.
QAlgorithms.Papers.Independent.Advance50.P17.maxDistance
For every nonempty finite type with decidable equality, every family of real-valued functions on pairs of complex square matrices over finite index types with decidable equality, and arbitrary functions from complex matrices to themselves, this defines
No metric, continuity, boundedness, linearity, or channel assumptions are included, and attainment is not asserted. The set of unit vectors is nonempty; if the displayed real-valued set is unbounded above, the total real supremum operation used in the definition returns .
QAlgorithms.Papers.Independent.Advance50.P17.meanError
For a finite index type with decidable equality, any function , and any function , this definition gives
where has entry at and elsewhere. No channel assumption is imposed on , so the summands need not be probabilities. The empty index type is included: its sum and denominator are both , and the total real division convention makes the value .
QAlgorithms.Papers.Independent.Advance50.P17.minFidelity
For every nonempty finite type with decidable equality and arbitrary functions from complex matrices to themselves, write and let denote the total real continuous-functional-calculus operation associated with the real square-root function. This defines
The input vectors range over all vectors of Euclidean norm , and the infimum is over a nonempty set of nonnegative real numbers. No linearity, channel, continuity, or output normalization assumption is imposed, and attainment of the infimum is not asserted.
QAlgorithms.Papers.Independent.Advance50.P17.normalizedProcessState
For every nonempty finite type with decidable equality and every function from complex matrices to complex matrices, write . This defines a complex matrix indexed by , obtained by applying separately to the matrix blocks of the outer product of the vector whose coordinate is when and otherwise. Explicitly, if is the matrix with its sole nonzero entry equal to at , then
No linearity or channel assumption on is required, and no assertion that is a density matrix is part of the definition.
QAlgorithms.Papers.Independent.Advance50.P17.optimalSuccess
For a finite index type with decidable equality and arbitrary complex matrices on , this definition gives the real supremum
The supremum ranges over all matrices for which both and are positive semidefinite. No density assumptions are imposed on , and the definition itself does not assert that the supremum is attained. For an empty index type the value is .
QAlgorithms.Papers.Independent.Advance50.P17.pairedOperator
For a finite index type with decidable equality, a complex vector-space basis of the complex matrices, any family of unitary matrices , a unitary matrix , and , this defines
where is the -th coordinate of in , and denotes conjugate transpose. The coordinate is used without conjugation, and no basis condition is imposed on . If is empty, there is no index at which to evaluate the definition.
QAlgorithms.Papers.Independent.Advance50.P17.proDistance
For every nonempty finite type with decidable equality, every family of real-valued functions on pairs of complex square matrices over finite index types with decidable equality, and arbitrary functions from complex matrices to themselves, put and define matrices indexed by through
where has entry at and elsewhere. The definition returns . No metric conditions on or linearity or channel conditions on are assumed.
QAlgorithms.Papers.Independent.Advance50.P17.proFidelity
For every nonempty finite type with decidable equality and arbitrary functions from complex matrices to themselves, let and let be the matrix with entry at and elsewhere. Define and define in the same way. Writing for the total real continuous-functional-calculus operation associated with the real square-root function, this definition returns
There is no linearity, channel, positivity, or normalization hypothesis on or their resulting matrices.
QAlgorithms.Papers.Independent.Advance50.P17.productCoefficient
For any natural number , including , and assignments , this defines the real number
For , the empty product is .
QAlgorithms.Papers.Independent.Advance50.P17.productObservable
For any natural number , a unitary matrix indexed by Boolean strings of length , and , this defines
where , for , and for , , , and all remaining are zero. Here , with
in Boolean order false, true, and denotes conjugate transpose. When , there is one summand, both empty products are , and the result is the one-entry identity matrix.
QAlgorithms.Papers.Independent.Advance50.P17.productPauli
For any natural number , including , and any assignment , this defines the complex matrix
for Boolean strings of length , where, in Boolean order false, true,
The Pauli-string phase is zero, so its scalar phase factor is . For , this is the one-entry matrix with entry .
QAlgorithms.Papers.Independent.Advance50.P17.pureInputAverage
For every nonempty finite type with decidable equality and every function , put , choose the finite-type equivalence and the classically selected element , and set for each unitary complex matrix . This definition returns
where is Haar measure normalized to give the whole unitary group measure . No measurability or integrability hypothesis on is required; the total integral used here returns when its integrand is not integrable.
QAlgorithms.Papers.Independent.Advance50.P17.purifiedChannelTraceDistance
For a finite index type with decidable equality, arbitrary functions , and any complex matrix on , let denote the total real continuous functional calculus with . Form and , and put , , using
and the analogous extension of . The defined value is
where denotes conjugate transpose. No density, normalization, or channel assumptions are imposed, and the empty index type is included.
QAlgorithms.Papers.Independent.Advance50.P17.purifiedFidelity
For a finite index type with decidable equality, arbitrary functions , and any complex matrix on , define to be the total real continuous functional calculus with , and form the vector with . Set , , and , where
and similarly for . The defined value is
There is no assumption that is a density matrix, that is normalized, or that are channels. The empty index type is included.
QAlgorithms.Papers.Independent.Advance50.P17.reconstructionCoefficients
For a finite index type with decidable equality, let and be complex vector-space bases of the space of complex matrices, let be any family of unitary matrices, let be a unitary matrix, and let . Writing and for the corresponding basis coordinates of a matrix , this defines the complex number
where denotes conjugate transpose. The family is not required to be a basis, and the coordinate factors are multiplied without complex conjugation. If is empty, there are no indices at which to evaluate this definition.
QAlgorithms.Papers.Independent.Advance50.P17.stabC
For a finite, nonempty index type with decidable equality and arbitrary functions , this definition gives
Here is the total real continuous functional calculus with , , , and . The extension is defined by , and similarly for . No channel assumptions are imposed. The outer real square root equals when its argument is negative, so the definition does not require the infimum to be at most .
QAlgorithms.Papers.Independent.Advance50.P17.stabDistance
For a finite, nonempty index type with decidable equality, arbitrary functions , and a family assigning a real value to every pair of complex square matrices on every finite index type with decidable equality, this definition gives
Here , and the extensions act on matrix blocks by
with the same definition for . No channel, linearity, continuity, or metric assumptions are imposed on . The supremum is the real supremum used by the code, which returns if the set of values is unbounded above; no attainment is asserted.
QAlgorithms.Papers.Independent.Advance50.P17.stabFidelity
For a finite, nonempty index type with decidable equality and arbitrary functions , this definition gives
Here is the real continuous functional calculus of with the function , as a total operation on matrices; ; and
with the analogous formula for . Neither function is required to be a channel or to preserve density matrices, and the infimum need not be attained.
QAlgorithms.Papers.Independent.Advance50.P17.stateDistance
For a choice among , , , and , any finite type with decidable equality, and arbitrary complex matrices , let denote the total real continuous-functional-calculus operation on associated with the real square-root function, and put . The definition returns
Neither positivity nor trace normalization of , nor nonemptiness of , is assumed. All functions used are total; in particular, the real square root of a negative number is .
QAlgorithms.Papers.Independent.Advance50.P17.tomographyProductInput
For any natural number , including , and any label assignment , this defines a complex matrix indexed by Boolean strings of length through
where and for , with
in Boolean order false, true. For , the empty product is , so the resulting matrix has one entry equal to .
QAlgorithms.Papers.Independent.Advance50.P17.tomographyQubitInput
For , this defines a complex matrix indexed by Boolean values as
where, ordering the Boolean indices as false then true,
QAlgorithms.Papers.Independent.Advance50.P17.worstFunctionErrorProbability
For a finite index type with decidable equality, any function , and any function , this definition gives
where has entry at and elsewhere. For nonempty , this is the largest of the finitely many displayed values; for empty , the real supremum convention gives . No channel assumption is imposed on , and the values are not required to lie in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.