Exact Lean source
PCTRankOneWerner
formalization/Cloning/PCTRankOneWerner.lean
Source hash: a6618bce6080ab6f421cf2b9909651b0a08b7885370cfd6de976dab536206209
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.PCTRankAdaptedProduct
2
3/-! A one-dimensional purification environment disappears exactly, leaving
4the ordinary finite pure-state Werner cloner on the physical system. -/
5noncomputable section
6open scoped BigOperators Classical InnerProductSpace Matrix ComplexOrder
7namespace Cloning.PCTRankOne
8open Cloning.PCT Cloning.PCTPurificationChannel Cloning.PCTRankAdapted
9open Cloning.FiniteKrausLift Cloning.InfiniteTraceClass
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12variable {A : Type*} [Fintype A] [DecidableEq A]
13
14def singletonInsertion : Matrix (A×Fin 1) A ℂ := fun ab a => if ab.1=a then 1 else 0
15
16theorem singletonInsertion_isometry :
17 (singletonInsertion (A:=A))ᴴ*singletonInsertion (A:=A)=(1 : Matrix A A ℂ) := by
18 ext a c
19 by_cases h : a=c
20 · subst c
21 simp [singletonInsertion,Matrix.mul_apply,Matrix.conjTranspose_apply,Fintype.sum_prod_type,Matrix.one_apply]
22 · simp [singletonInsertion,Matrix.mul_apply,Matrix.conjTranspose_apply,Fintype.sum_prod_type,Matrix.one_apply,h,Ne.symm h]
23
24theorem singletonSlice_regroup (L : ℕ) :
25 (environmentSlice (fun _ : Fin L => (0 : Fin 1))).comp
26 (regroup (A:=A) (B:=Fin 1) L).toContinuousLinearMap=
27 (tensorMap L (singletonInsertion (A:=A))).adjoint := by
28 apply register_rect_ext
29 intro w a
30 rw [ContinuousLinearMap.comp_apply,environmentSlice_apply]
31 change regroup L (lp.single 2 w 1) (a,fun _ => (0 : Fin 1))=_
32 rw [regroup_apply,tensorMap_adjoint]
33 have he : (fun i => (a i,(0 : Fin 1)))=w ↔ ∀i,(w i).1=a i := by
34 constructor
35 · intro h i
36 exact (congrArg Prod.fst (congrFun h i)).symm
37 · intro h
38 funext i
39 exact Prod.ext (h i).symm (Subsingleton.elim _ _)
40 simp [tensorMap,matrixRegister_single,tensorPower,Matrix.conjTranspose_apply,
41 singletonInsertion,apply_ite,Fintype.prod_ite_zero,lp.single_apply,Pi.single_apply,he]
42
43theorem reduceOutput_singleton (L : ℕ) (X : TraceClass (Register (Fin L → A×Fin 1))) :
44 reduceOutput L X=conjugationLinearMap (tensorMap L (singletonInsertion (A:=A))).adjoint X := by
45 unfold reduceOutput partialTraceLinear
46 simp only [LinearMap.sum_apply,Fintype.sum_unique]
47 rw [show (default : Fin L → Fin 1)=(fun _ => (0 : Fin 1)) from Subsingleton.elim _ _,
48 Cloning.PCTGlobal.conjugation_comp,singletonSlice_regroup]
49
50/-- Finite equality of the actual reduced Werner output and the system-only
51Werner output when the purification environment has dimension one. -/
52theorem reducedWernerOutput_singleton {L s : ℕ} (hA : Fintype.card A=s+1)
53 (ψ : Register A) (hψ : ‖ψ‖=1) (S : Finset (Fin L)) :
54 reducedWernerOutput (by simpa using hA : Fintype.card (A×Fin 1)=s+1)
55 (matrixRegister (singletonInsertion (A:=A)) ψ)
56 ((matrixRegister_norm _ singletonInsertion_isometry ψ).trans hψ) S=
57 pureWernerOutput hA ψ hψ S := by
58 change reduceOutput L (pureWernerOutput _ _ _ S)=_
59 rw [reduceOutput_singleton,pureWernerOutput_compression hA
60 (by simpa using hA : Fintype.card (A×Fin 1)=s+1)
61 (singletonInsertion (A:=A)) singletonInsertion_isometry ψ hψ S]
62 have hscale : supportFactor S.card L s s=1 :=
63 div_self (wernerScale_pos S.card L s).ne'
64 rw [hscale,Complex.ofReal_one,one_smul]
65
66end Cloning.PCTRankOne