Exact Lean source
PCTRankAdaptedFidelity
formalization/Cloning/PCTRankAdaptedFidelity.lean
Source hash: 81447dc90366b018934e9d27522c2c54310417655c8b7479919e4617d67264f4
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.PCTRankAdaptedReduced
2import Cloning.InfiniteFidelityHilbertSum
3import Cloning.MatrixFidelityEmbedding
4import Cloning.MatrixFidelityScaling
5
6/-! Target-support compression and its exact root-fidelity factor. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace Matrix MatrixOrder ComplexOrder
9namespace Cloning.PCTRankAdapted
10open Cloning.PCT Cloning.PCTPurificationChannel Cloning.FiniteKrausLift
11open Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner Cloning.Hybrid
12open Cloning.InfiniteFidelityHilbertSum
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 900000
15set_option linter.unusedSectionVars false
16variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
17
18/-- Fidelity to an embedded target depends exactly on compression to its
19support; no assumption that the first state is supported there is imposed. -/
20theorem matrix_fidelity_compression (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
21 (X : Matrix B B ℂ) (Y : Matrix A A ℂ) (hX : X.PosSemidef) (hY : Y.PosSemidef) :
22 Cloning.MatrixFidelity.fidelity X (J * Y * Jᴴ) =
23 Cloning.MatrixFidelity.fidelity (Jᴴ * X * J) Y := by
24 unfold Cloning.MatrixFidelity.fidelity
25 rw [Cloning.MatrixFidelity.sqrt_isometric_embedding J hJ hY]
26 have he : (J * CFC.sqrt Y * Jᴴ) * X * (J * CFC.sqrt Y * Jᴴ) =
27 J * (CFC.sqrt Y * (Jᴴ * X * J) * CFC.sqrt Y) * Jᴴ := by
28 simp only [Matrix.mul_assoc]
29 rw [he, Cloning.MatrixFidelity.sqrt_isometric_embedding J hJ
30 (Cloning.MatrixFidelity.sandwich_posSemidef (hX.conjTranspose_mul_mul_same J) Y)]
31 rw [Matrix.trace_mul_comm, ← Matrix.mul_assoc, hJ, Matrix.one_mul]
32
33theorem matrixOf_conjugation (J : Matrix B A ℂ) (X : TraceClass (Register A)) :
34 matrixOf (registerBasis B) (conjugationLinearMap (matrixRegister J) X).1 =
35 J * matrixOf (registerBasis A) X.1 * Jᴴ := by
36 have h := congrArg (fun T : TraceClass (Register B) => matrixOf (registerBasis B) T.1)
37 (conjugation_matrixRegister J (matrixOf (registerBasis A) X.1))
38 rw [Cloning.PCTGlobal.registerLiftCLM_matrixOf X] at h
39 exact h.trans (matrixOf_ofMatrix (registerBasis B).orthonormal _)
40
41theorem matrixOf_real_smul (c : ℝ) (X : TraceClass (Register A)) :
42 matrixOf (registerBasis A) ((c : ℂ) • X).1 = c • matrixOf (registerBasis A) X.1 := by
43 ext a b
44 change ⟪registerBasis A a, (c : ℂ) • (X.1 (registerBasis A b))⟫_ℂ =
45 c • ⟪registerBasis A a, X.1 (registerBasis A b)⟫_ℂ
46 simp only [inner_smul_right, Complex.real_smul]
47
48/-- General finite physical support-factor identity used after the exact
49Werner and partial-trace compression theorems. -/
50theorem rootFidelity_of_compression (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
51 (X : PositiveTraceClass (Register B)) (Z Y : PositiveTraceClass (Register A))
52 (c : ℝ) (hc : 0 ≤ c)
53 (hcomp : conjugationLinearMap (matrixRegister J).adjoint X.1 = (c : ℂ) • Z.1) :
54 X.rootFidelity (Y.map (QuantumChannel.ofIsometry (matrixIsometry J hJ)).toPositiveTracePreservingMap) =
55 Real.sqrt c * Z.rootFidelity Y := by
56 rw [← rootFidelity_matrixOf_basis (registerBasis B).toOrthonormalBasis,
57 ← rootFidelity_matrixOf_basis (registerBasis A).toOrthonormalBasis Z Y]
58 simp only [HilbertBasis.coe_toOrthonormalBasis]
59 have hy : matrixOf (registerBasis B)
60 (Y.map (QuantumChannel.ofIsometry (matrixIsometry J hJ)).toPositiveTracePreservingMap).1.1 =
61 J * matrixOf (registerBasis A) Y.1.1 * Jᴴ := matrixOf_conjugation J Y.1
62 rw [hy, matrix_fidelity_compression J hJ _ _
63 (matrixOf_posSemidef _ X.2) (matrixOf_posSemidef _ Y.2)]
64 have hM := congrArg (fun T : TraceClass (Register A) => matrixOf (registerBasis A) T.1) hcomp
65 dsimp only at hM
66 rw [← matrixRegister_conjTranspose, matrixOf_conjugation, Matrix.conjTranspose_conjTranspose,
67 matrixOf_real_smul] at hM
68 rw [hM, Cloning.MatrixFidelity.fidelity_smul_left c _ _ hc (matrixOf_posSemidef _ Z.2)]
69
70end Cloning.PCTRankAdapted