Exact Lean source
PCTCountMeasurementFidelity
formalization/Cloning/PCTCountMeasurementFidelity.lean
Source hash: 7e33137e4c9883791a6f092b66446860d924abe26b5ea2d43389c25df9770a14
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
1import Cloning.PCTCountMeasurementChannel
2import Cloning.MatrixFidelityScaling
3
4/-! Actual quantum root fidelity is bounded above by the classical affinity
5of any finite coarse computational measurement. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Matrix Classical ComplexOrder
8namespace Cloning.PCTCountMeasurement
9open Cloning.PCT Cloning.PCTPurificationChannel Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner
10open Cloning.Hybrid
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
14
15theorem measuredMatrix_eq_diagonal_real (label : I → J) (A : TraceClass (Register I)) (hA : 0≤A.1) :
16 measuredMatrix label (matrixOf (registerBasis I) A.1) =
17 Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j A : ℂ)) := by
18 unfold measuredMatrix
19 congr 1
20 funext j
21 rw [weightCLM_apply, Complex.ofReal_sum]
22 apply Finset.sum_congr rfl
23 intro i _
24 by_cases hi : label i=j
25 · simp only [if_pos hi, matrixOf]
26 have hp := Complex.nonneg_iff.mp
27 ((A.1.nonneg_iff_isPositive.mp hA).inner_nonneg_right (registerBasis I i))
28 apply Complex.ext <;> simp [hp.2]
29 · simp only [if_neg hi, Complex.ofReal_zero]
30
31theorem measurementChannel_positive_apply (label : I → J) (A : TraceClass (Register I)) (hA : 0≤A.1) :
32 (measurementChannel label).toLinearMap A =
33 registerLiftCLM (Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j A : ℂ))) := by
34 rw [measurementChannel_apply, measuredMatrix_eq_diagonal_real label A hA]
35
36theorem measurementChannel_rootFidelity (label : I → J) (A B : PositiveTraceClass (Register I)) :
37 (A.map (measurementChannel label).toPositiveTracePreservingMap).rootFidelity
38 (B.map (measurementChannel label).toPositiveTracePreservingMap) =
39 ∑ j, Real.sqrt (weightCLM (registerBasis I) label j A.1 * weightCLM (registerBasis I) label j B.1) := by
40 let C := A.map (measurementChannel label).toPositiveTracePreservingMap
41 let D := B.map (measurementChannel label).toPositiveTracePreservingMap
42 have heA : C.1 = registerLiftCLM (Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j A.1 : ℂ))) :=
43 measurementChannel_positive_apply label A.1 A.2
44 have heB : D.1 = registerLiftCLM (Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j B.1 : ℂ))) :=
45 measurementChannel_positive_apply label B.1 B.2
46 have hmatA : matrixOf (registerBasis J) C.1.1 =
47 Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j A.1 : ℂ)) := by
48 rw [heA]
49 exact matrixOf_ofMatrix (registerBasis J).orthonormal _
50 have hmatB : matrixOf (registerBasis J) D.1.1 =
51 Matrix.diagonal (fun j => (weightCLM (registerBasis I) label j B.1 : ℂ)) := by
52 rw [heB]
53 exact matrixOf_ofMatrix (registerBasis J).orthonormal _
54 have hf := Cloning.InfiniteFidelityHilbertSum.rootFidelity_matrixOf_basis
55 (registerBasis J).toOrthonormalBasis C D
56 simp only [HilbertBasis.coe_toOrthonormalBasis] at hf
57 rw [hmatA, hmatB, Cloning.MatrixFidelity.fidelity_diagonal_real _ _
58 (fun j => weightCLM_nonneg _ label j A.1 A.2) (fun j => weightCLM_nonneg _ label j B.1 B.2)] at hf
59 change C.rootFidelity D = _
60 rw [← hf]
61 apply Finset.sum_congr rfl
62 intro j _
63 exact (Real.sqrt_mul (weightCLM_nonneg _ label j A.1 A.2) _).symm
64
65/-- Finite count measurement is an actual CPTP map, hence this upper bound
66uses full quantum data processing rather than a diagonal-state assumption. -/
67theorem rootFidelity_le_measurement_affinity (label : I → J) (A B : PositiveTraceClass (Register I)) :
68 A.rootFidelity B ≤ ∑ j, Real.sqrt
69 (weightCLM (registerBasis I) label j A.1 * weightCLM (registerBasis I) label j B.1) := by
70 have h := Cloning.InfiniteFidelity.fidelity_data_processing (measurementChannel label) A.1 B.1 A.2 B.2
71 change A.rootFidelity B ≤ (A.map (measurementChannel label).toPositiveTracePreservingMap).rootFidelity
72 (B.map (measurementChannel label).toPositiveTracePreservingMap) at h
73 exact h.trans_eq (measurementChannel_rootFidelity label A B)
74
75end Cloning.PCTCountMeasurement