Exact Lean source
PCTRankAdaptedPartialTrace
formalization/Cloning/PCTRankAdaptedPartialTrace.lean
Source hash: b60cf47a94d9799ec3b23aeebc947f25bc6af5784204f3d049bdbe12b79ed70b
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
theorem
Cloning.PCTRankAdapted.partialTrace_rectangulartheorem Cloning.PCTRankAdapted.partialTraceLinear_registerLifttheorem Cloning.PCTRankAdapted.partialTraceLinear_conjugationtheorem Cloning.PCTRankAdapted.register_rect_exttheorem Cloning.PCTRankAdapted.regroup_single_recttheorem Cloning.PCTRankAdapted.regroup_tensorMapdefinition Cloning.PCTRankAdapted.reduceOutputtheorem Cloning.PCTRankAdapted.reduceOutput_conjugation1import Cloning.PCTRankAdaptedWerner
2
3/-! Rectangular system compression commutes exactly with the physical
4partial trace, including the actual regrouping of all tensor slots. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace Matrix Kronecker ComplexOrder
7namespace Cloning.PCTRankAdapted
8open Cloning.PCT Cloning.PCTPurificationChannel Cloning.FiniteKrausLift
9open Cloning.InfiniteTraceClass Cloning.Compression
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 900000
12set_option linter.unusedSectionVars false
13variable {A B E : Type*} [Fintype A] [Fintype B] [Fintype E]
14 [DecidableEq A] [DecidableEq B] [DecidableEq E]
15
16theorem partialTrace_rectangular (J : Matrix B A ℂ)
17 (X : Matrix (A × E) (A × E) ℂ) :
18 partialTrace ((J ⊗ₖ (1 : Matrix E E ℂ)) * X * (J ⊗ₖ (1 : Matrix E E ℂ))ᴴ) =
19 J * partialTrace X * Jᴴ := by
20 apply Matrix.ext_iff_trace_mul_left.mpr
21 intro T
22 calc
23 _ = Matrix.trace ((T ⊗ₖ (1 : Matrix E E ℂ)) *
24 ((J ⊗ₖ (1 : Matrix E E ℂ)) * X * (J ⊗ₖ (1 : Matrix E E ℂ))ᴴ)) := (trace_tensor_pairing T _).symm
25 _ = Matrix.trace (((J ⊗ₖ (1 : Matrix E E ℂ))ᴴ *
26 (T ⊗ₖ (1 : Matrix E E ℂ)) * (J ⊗ₖ (1 : Matrix E E ℂ))) * X) := by
27 rw [← Matrix.mul_assoc, ← Matrix.mul_assoc, Matrix.trace_mul_cycle]
28 simp only [Matrix.mul_assoc]
29 _ = Matrix.trace (((Jᴴ * T * J) ⊗ₖ (1 : Matrix E E ℂ)) * X) := by
30 rw [Matrix.conjTranspose_kronecker, Matrix.conjTranspose_one,
31 ← Matrix.mul_kronecker_mul, ← Matrix.mul_kronecker_mul]
32 simp only [Matrix.one_mul, Matrix.mul_one]
33 _ = Matrix.trace ((Jᴴ * T * J) * partialTrace X) := trace_tensor_pairing _ X
34 _ = Matrix.trace (T * (J * partialTrace X * Jᴴ)) := by
35 calc
36 _ = Matrix.trace (Jᴴ * (T * (J * partialTrace X))) := by simp only [Matrix.mul_assoc]
37 _ = Matrix.trace ((T * (J * partialTrace X)) * Jᴴ) := Matrix.trace_mul_comm _ _
38 _ = _ := by simp only [Matrix.mul_assoc]
39
40theorem partialTraceLinear_registerLift (X : Matrix (A × E) (A × E) ℂ) :
41 partialTraceLinear (registerLiftCLM X) = registerLiftCLM (partialTrace X) := by
42 apply Subtype.ext
43 apply register_operator_ext
44 intro a c
45 simp only [partialTraceLinear_coefficient, registerLiftCLM_coefficient, partialTrace]
46
47theorem partialTraceLinear_conjugation (J : Matrix B A ℂ)
48 (X : TraceClass (Register (A × E))) :
49 partialTraceLinear (conjugationLinearMap (matrixRegister (J ⊗ₖ (1 : Matrix E E ℂ))) X) =
50 conjugationLinearMap (matrixRegister J) (partialTraceLinear X) := by
51 obtain ⟨M,rfl⟩ : ∃ M : Matrix (A × E) (A × E) ℂ, registerLiftCLM M = X :=
52 ⟨Cloning.InfiniteFiniteCorner.matrixOf (registerBasis _) X.1,
53 Cloning.PCTGlobal.registerLiftCLM_matrixOf X⟩
54 rw [conjugation_matrixRegister, partialTraceLinear_registerLift,
55 partialTraceLinear_registerLift, conjugation_matrixRegister, partialTrace_rectangular]
56
57theorem register_rect_ext {X Y : Register A →L[ℂ] Register B}
58 (h : ∀ a b, X (lp.single 2 a 1) b = Y (lp.single 2 a 1) b) : X = Y := by
59 ext x b
60 have hx : x = ∑ a, x a • (lp.single 2 a 1 : Register A) := by
61 ext a
62 simp [lp.single_apply, Pi.single_apply]
63 rw [hx]
64 simp only [map_sum, map_smul, lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul,
65 Pi.smul_apply, smul_eq_mul, h]
66
67theorem regroup_single_rect (L : ℕ) (w : Fin L → A × E) :
68 regroup L (lp.single 2 w 1) = lp.single 2 (pairWordsEquiv L w) 1 := by
69 rw [regroup, OrthogonalFamily.linearIsometry_apply_single]
70 exact one_smul ℂ _
71
72theorem regroup_tensorMap (L : ℕ) (J : Matrix B A ℂ) :
73 (regroup (A:=B) (B:=E) L).toContinuousLinearMap.comp
74 (tensorMap L (J ⊗ₖ (1 : Matrix E E ℂ))) =
75 (matrixRegister (tensorPower L J ⊗ₖ (1 : Matrix (Fin L → E) (Fin L → E) ℂ))).comp
76 (regroup (A:=A) (B:=E) L).toContinuousLinearMap := by
77 apply register_rect_ext
78 intro w v
79 rcases v with ⟨a,b⟩
80 simp only [ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap,
81 regroup_apply, tensorMap, matrixRegister_single, regroup_single_rect,
82 Matrix.kroneckerMap_apply, tensorPower, Finset.prod_mul_distrib]
83 congr 1
84 change tensorPower L (1 : Matrix E E ℂ) b (fun i => (w i).2) = _
85 rw [tensorPower_one]
86 rfl
87
88/-- Physical reduction, with the system and environment grouped only inside
89the channel. -/
90def reduceOutput (L : ℕ) (X : TraceClass (Register (Fin L → A × E))) :
91 TraceClass (Register (Fin L → A)) :=
92 partialTraceLinear (conjugationLinearMap (regroup L).toContinuousLinearMap X)
93
94theorem reduceOutput_conjugation (L : ℕ) (J : Matrix B A ℂ)
95 (X : TraceClass (Register (Fin L → A × E))) :
96 reduceOutput L (conjugationLinearMap (tensorMap L (J ⊗ₖ (1 : Matrix E E ℂ))) X) =
97 conjugationLinearMap (tensorMap L J) (reduceOutput L X) := by
98 unfold reduceOutput
99 rw [Cloning.PCTGlobal.conjugation_comp, regroup_tensorMap,
100 ← Cloning.PCTGlobal.conjugation_comp, partialTraceLinear_conjugation]
101 rfl
102
103end Cloning.PCTRankAdapted