Exact Lean source
TensorCloningPrescribedRestriction
formalization/Cloning/TensorCloningPrescribedRestriction.lean
Source hash: bcb64ceb46a20bf5eba976cebbc96c800d3f8da9ec9121aac9d608d3e07ea2c9
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.TensorCloning.prefixWordEquivtheorem Cloning.TensorCloning.tensorPower_prefixdefinition Cloning.TensorCloning.restrictionChanneltheorem Cloning.TensorCloning.restrictionChannel_coefficienttheorem Cloning.TensorCloning.partialTrace_kroneckertheorem Cloning.TensorCloning.restrictionChannel_tensorStatetheorem Cloning.TensorCloning.matrixRegister_tensorPowertheorem Cloning.TensorCloning.restrictionChannel_covarianttheorem Cloning.TensorCloning.restrictionChannel_self1import Cloning.TensorCloningPrescribedTrace
2import Cloning.TensorCloningGlobalCovariance
3import Cloning.PCTPhysicalState
4
5/-! Exact tensor-prefix restriction, including all-input covariance and
6identity at equal sample size. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder Matrix Kronecker Classical
9namespace Cloning.TensorCloning
10open Cloning.PCT Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner Cloning.TensorLie
11open Cloning.PCTPurificationChannel Cloning.PCTReducedGaussian Cloning.PCTPhysicalState
12open Cloning.FiniteKrausLift Cloning.Compression
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15
16def prefixWordEquiv (n m d : ℕ) (h : m≤n) :
17 (Fin n → Fin d) ≃ (Fin m → Fin d) × (Fin (n-m) → Fin d) :=
18 (Equiv.arrowCongr (finCongr (Nat.add_sub_of_le h).symm) (Equiv.refl (Fin d))).trans
19 (splitWordsEquiv m (n-m))
20
21theorem tensorPower_prefix (n m d : ℕ) (h : m≤n) (U : Matrix (Fin d) (Fin d) ℂ) :
22 (tensorPower n U).submatrix (prefixWordEquiv n m d h).symm (prefixWordEquiv n m d h).symm =
23 tensorPower m U ⊗ₖ tensorPower (n-m) U := by
24 ext a b
25 change (∏ i : Fin n, U
26 (Fin.addCases a.1 a.2 ((finCongr (Nat.add_sub_of_le h).symm) i))
27 (Fin.addCases b.1 b.2 ((finCongr (Nat.add_sub_of_le h).symm) i))) =
28 (∏ i, U (a.1 i) (b.1 i)) * (∏ i, U (a.2 i) (b.2 i))
29 rw [(finCongr (Nat.add_sub_of_le h).symm).prod_comp
30 (fun i : Fin (m+(n-m)) => U (Fin.addCases a.1 a.2 i) (Fin.addCases b.1 b.2 i))]
31 rw [Fin.prod_univ_add]
32 simp only [Fin.addCases_left,Fin.addCases_right]
33
34def restrictionChannel (n m d : ℕ) (h : m≤n) :
35 QuantumChannel (TensorRegister n (Fin d)) (TensorRegister m (Fin d)) :=
36 discardChannel (prefixWordEquiv n m d h)
37
38theorem restrictionChannel_coefficient (n m d : ℕ) (h : m≤n)
39 (X : TraceClass (TensorRegister n (Fin d))) (a c : Fin m → Fin d) :
40 ((restrictionChannel n m d h).toLinearMap X).1 (lp.single 2 c 1) a=
41 ∑ b : Fin (n-m) → Fin d,
42 X.1 (lp.single 2 ((prefixWordEquiv n m d h).symm (c,b)) 1)
43 ((prefixWordEquiv n m d h).symm (a,b)) :=
44 discardChannel_coefficient _ X a c
45
46theorem partialTrace_kronecker {A B : Type*} [Fintype A] [Fintype B]
47 (M : Matrix A A ℂ) (N : Matrix B B ℂ) : partialTrace (M ⊗ₖ N)=(Matrix.trace N) • M := by
48 ext a c
49 simp only [partialTrace,Matrix.kronecker_apply,Matrix.smul_apply,smul_eq_mul,
50 Matrix.trace,Matrix.diag,← Finset.mul_sum]
51 ring
52
53theorem restrictionChannel_tensorState {d : ℕ} (n m : ℕ) (h : m≤n)
54 (ρ : Cloning.MatrixFidelity.State (Fin (d+1))) :
55 (restrictionChannel n m (d+1) h).toLinearMap (tensorState ρ n).1=(tensorState ρ m).1 := by
56 change (discardChannel _).toLinearMap (registerLiftCLM (tensorPower n ρ.matrix))=
57 registerLiftCLM (tensorPower m ρ.matrix)
58 rw [discardChannel_registerLift]
59 change registerLiftCLM (partialTrace ((tensorPower n ρ.matrix).submatrix
60 (prefixWordEquiv n m (d+1) h).symm (prefixWordEquiv n m (d+1) h).symm))=_
61 rw [tensorPower_prefix,partialTrace_kronecker,trace_tensorPower,ρ.trace_one,one_pow,one_smul]
62
63theorem matrixRegister_tensorPower (n d : ℕ) (U : Matrix (Fin d) (Fin d) ℂ) :
64 matrixRegister (tensorPower n U)=tensorOperator n U := by
65 ext x w
66 simp only [matrixRegister_apply,tensorOperator_apply,tensorPower]
67
68theorem restrictionChannel_covariant (n m d : ℕ) (h : m≤n)
69 (U : Matrix (Fin d) (Fin d) ℂ) (hU : Uᴴ*U=1)
70 (X : TraceClass (TensorRegister n (Fin d))) :
71 (restrictionChannel n m d h).toLinearMap (conjugationLinearMap (tensorOperator n U) X)=
72 conjugationLinearMap (tensorOperator m U) ((restrictionChannel n m d h).toLinearMap X) := by
73 have hT : (tensorPower (n-m) U)ᴴ*tensorPower (n-m) U=1 := by
74 rw [← tensorPower_star,← tensorPower_mul,hU,tensorPower_one]
75 simpa only [matrixRegister_tensorPower,restrictionChannel] using
76 discardChannel_covariant (prefixWordEquiv n m d h) (tensorPower n U)
77 (tensorPower m U) (tensorPower (n-m) U) hT (tensorPower_prefix n m d h U) X
78
79theorem restrictionChannel_self (n d : ℕ) (h : n≤n) (X : TraceClass (TensorRegister n (Fin d))) :
80 (restrictionChannel n n d h).toLinearMap X=X := by
81 apply Subtype.ext
82 apply register_operator_ext
83 intro a c
84 rw [restrictionChannel_coefficient]
85 have he (w : Fin n → Fin d) (z : Fin (n-n) → Fin d) :
86 (prefixWordEquiv n n d h).symm (w,z)=w := by
87 funext i
88 change Fin.addCases w z (Fin.cast (Nat.add_sub_of_le h).symm i)=w i
89 have hi : Fin.cast (Nat.add_sub_of_le h).symm i=Fin.castAdd (n-n) i := Fin.ext rfl
90 rw [hi,Fin.addCases_left]
91 simp only [he,Finset.sum_const,Fintype.card_fun,Fintype.card_fin,Nat.sub_self,pow_zero,
92 Finset.card_univ,one_nsmul]
93
94end Cloning.TensorCloning