Exact Lean source
PCTRankPurificationCompletion
formalization/Cloning/PCTRankPurificationCompletion.lean
Source hash: 1fce4be5086d2c1b74b0c2c91cef05ec87de1e55ca0cf87592f992e58cf424ea
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
definition
Cloning.PCTRankPurification.complementKraustheorem Cloning.PCTRankPurification.complementKraus_normalizationdefinition Cloning.PCTRankPurification.supportedPurificationKraustheorem Cloning.PCTRankPurification.supportedPurificationKraus_normalizationdefinition Cloning.PCTRankPurification.supportedPurificationChanneltheorem Cloning.PCTRankPurification.complementKraus_mul_eq_zerotheorem Cloning.PCTRankPurification.supportedPurificationChannel_apply_supported1import Cloning.PCTPurificationChannel
2
3/-! A square-root moment normalized on a physical support projection extends
4canonically to an all-input channel by preparing a fixed state on its complement. -/
5noncomputable section
6open scoped BigOperators Classical Matrix Kronecker MatrixOrder ComplexOrder
7namespace Cloning.PCTRankPurification
8open Cloning.Channels Cloning.Compression Cloning.PCTPurificationChannel
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 1000000
11variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
12
13/-- Rank-one output preparation after measuring a row of the rejected support. -/
14def complementKraus (P : Matrix A A ℂ) (b0 : B) (a : A) : Matrix B A ℂ :=
15 fun b c => if b=b0 then (1-P) a c else 0
16
17theorem complementKraus_normalization (P : Matrix A A ℂ) (hP : Pᴴ=P)
18 (hPP : P*P=P) (b0 : B) :
19 ∑ a, (complementKraus P b0 a)ᴴ*complementKraus P b0 a = 1-P := by
20 have he : (1-P)ᴴ*(1-P)=1-P := by
21 rw [Matrix.conjTranspose_sub,Matrix.conjTranspose_one,hP]
22 noncomm_ring [hPP]
23 calc
24 _ = (1-P)ᴴ*(1-P) := by
25 ext a c
26 simp only [Matrix.sum_apply,Matrix.mul_apply,Matrix.conjTranspose_apply,complementKraus]
27 simp
28 _ = _ := he
29
30def supportedPurificationKraus (R : Matrix (A×B) (A×B) ℂ)
31 (P : Matrix A A ℂ) (b0 : A×B) : Sum B A → Matrix (A×B) A ℂ :=
32 Sum.elim (purificationKraus R) (complementKraus P b0)
33
34theorem supportedPurificationKraus_normalization
35 (R : Matrix (A×B) (A×B) ℂ) (hR : R.PosSemidef)
36 (P : Matrix A A ℂ) (hP : Pᴴ=P) (hPP : P*P=P)
37 (htrace : partialTrace R=P) (b0 : A×B) :
38 ∑ i, (supportedPurificationKraus R P b0 i)ᴴ*supportedPurificationKraus R P b0 i = 1 := by
39 rw [Fintype.sum_sum_type]
40 change (∑ b,(purificationKraus R b)ᴴ*purificationKraus R b)+
41 (∑ a,(complementKraus P b0 a)ᴴ*complementKraus P b0 a)=1
42 rw [purificationKraus_normalization hR,htrace,complementKraus_normalization P hP hPP]
43 abel
44
45/-- A genuine CPTP map on all input matrices, including the rejected sectors. -/
46def supportedPurificationChannel
47 (R : Matrix (A×B) (A×B) ℂ) (hR : R.PosSemidef)
48 (P : Matrix A A ℂ) (hP : Pᴴ=P) (hPP : P*P=P)
49 (htrace : partialTrace R=P) (b0 : A×B) : MatrixChannel A (A×B) :=
50 ofKraus (supportedPurificationKraus R P b0)
51 (supportedPurificationKraus_normalization R hR P hP hPP htrace b0)
52
53theorem complementKraus_mul_eq_zero (P X : Matrix A A ℂ) (hX : (1-P)*X=0)
54 (b0 : B) (a : A) : complementKraus P b0 a*X=0 := by
55 ext b c
56 by_cases hb : b=b0
57 · subst b
58 simpa [complementKraus,Matrix.mul_apply] using congrArg (fun M => M a c) hX
59 · simp [complementKraus,Matrix.mul_apply,hb]
60
61/-- On supported inputs the completion has exactly the intended square-root action. -/
62theorem supportedPurificationChannel_apply_supported
63 (R : Matrix (A×B) (A×B) ℂ) (hR : R.PosSemidef)
64 (P : Matrix A A ℂ) (hP : Pᴴ=P) (hPP : P*P=P)
65 (htrace : partialTrace R=P) (b0 : A×B)
66 (X : Matrix A A ℂ) (hX : P*X=X) :
67 (supportedPurificationChannel R hR P hP hPP htrace b0).toFun X = purificationMap R X := by
68 change krausMap (supportedPurificationKraus R P b0) X = _
69 unfold krausMap
70 rw [Fintype.sum_sum_type]
71 change (∑ b,purificationKraus R b*X*(purificationKraus R b)ᴴ)+
72 (∑ a,complementKraus P b0 a*X*(complementKraus P b0 a)ᴴ)=_
73 have hx : (1-P)*X=0 := by rw [Matrix.sub_mul,Matrix.one_mul,hX,sub_self]
74 simp only [complementKraus_mul_eq_zero P X hx,Matrix.zero_mul,Finset.sum_const_zero,add_zero]
75 exact (purificationMap_eq_kraus R X).symm
76
77end Cloning.PCTRankPurification