Exact Lean source
WernerPhysicalChannel
formalization/Cloning/WernerPhysicalChannel.lean
Source hash: 6ee311022d34b7f8221c0c1cb45c060aecf992b3684d269ce5b7d58202af82ab
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.GeneralSymmetricOccupation.wernerChanneltheorem Cloning.GeneralSymmetricOccupation.wernerChannel_applydefinition Cloning.GeneralSymmetricOccupation.splitSymmetricProjectortheorem Cloning.GeneralSymmetricOccupation.splitSymmetricProjector_idempotenttheorem Cloning.GeneralSymmetricOccupation.splitSymmetricProjector_selfAdjointtheorem Cloning.GeneralSymmetricOccupation.physical_tensor_coretheorem Cloning.GeneralSymmetricOccupation.wernerChannel_physical_sandwichtheorem Cloning.GeneralSymmetricOccupation.wernerChannel_tracetheorem Cloning.GeneralSymmetricOccupation.wernerChannel_completelyPositive1import Cloning.GeneralSymmetricBalance
2
3/-! # Werner's full CPTP channel on arbitrary symmetric inputs
4
5The map is constructed from the actual symmetric-tensor splitting matrix.
6Its partial-trace balance is proved combinatorially, so trace preservation
7and complete positivity have no representation-theoretic assumptions.
8The final identity is exactly the dimension-ratio symmetric sandwich in
9the literal computational tensor basis, for every input matrix.
10-/
11noncomputable section
12set_option synthInstance.maxHeartbeats 200000
13set_option maxHeartbeats 1000000
14set_option backward.isDefEq.respectTransparency false
15open scoped BigOperators InnerProductSpace Matrix Kronecker ComplexOrder
16
17namespace Cloning.GeneralSymmetricOccupation
18
19/-- The full `n → n+r` Werner channel on arbitrary matrices of the input
20symmetric sector, with complete positivity and trace preservation proved. -/
21def wernerChannel (n r s : ℕ) :
22 Cloning.Channels.MatrixChannel (Occupation n (s + 1)) (Occupation (n + r) (s + 1)) :=
23 Cloning.CartanChannel.cartanChannel (splittingMatrix n r (s + 1))
24 ((n + s).choose s : ℝ) ((n + r + s).choose s : ℝ)
25 (by exact_mod_cast Nat.choose_pos (Nat.le_add_left s n))
26 (by exact_mod_cast Nat.choose_pos (Nat.le_add_left s (n + r)))
27 (splittingMatrix_balance n r s)
28
29/-- Exact Kraus/sandwich formula in the two occupation registers. -/
30theorem wernerChannel_apply (n r s : ℕ)
31 (X : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ) :
32 (wernerChannel n r s).toFun X =
33 (((n + s).choose s : ℝ) / ((n + r + s).choose s : ℝ)) •
34 ((splittingMatrix n r (s + 1)).conjTranspose *
35 (X ⊗ₖ (1 : Matrix (Occupation r (s + 1)) (Occupation r (s + 1)) ℂ)) *
36 splittingMatrix n r (s + 1)) :=
37 Cloning.CartanChannel.cartanChannel_apply _ _ _ _ _ _ X
38
39/-- The actual computational projector onto the output symmetric tensor space. -/
40def splitSymmetricProjector (n r d : ℕ) :
41 Matrix (Word n d × Word r d) (Word n d × Word r d) ℂ :=
42 splitColumnMatrix n r d * (splitColumnMatrix n r d).conjTranspose
43
44theorem splitSymmetricProjector_idempotent (n r d : ℕ) :
45 splitSymmetricProjector n r d * splitSymmetricProjector n r d =
46 splitSymmetricProjector n r d := by
47 unfold splitSymmetricProjector
48 calc
49 _ = splitColumnMatrix n r d *
50 ((splitColumnMatrix n r d).conjTranspose * splitColumnMatrix n r d) *
51 (splitColumnMatrix n r d).conjTranspose := by simp only [Matrix.mul_assoc]
52 _ = _ := by rw [splitColumnMatrix_isometry]; simp
53
54theorem splitSymmetricProjector_selfAdjoint (n r d : ℕ) :
55 (splitSymmetricProjector n r d).conjTranspose = splitSymmetricProjector n r d := by
56 simp [splitSymmetricProjector]
57
58/-- Core physical tensor identity for every input matrix: the environment
59identity is the whole computational tensor identity. -/
60theorem physical_tensor_core {n r d : ℕ}
61 (X : Matrix (Occupation n d) (Occupation n d) ℂ) :
62 (splitColumnMatrix n r d).conjTranspose *
63 ((columnMatrix n d * X * (columnMatrix n d).conjTranspose) ⊗ₖ
64 (1 : Matrix (Word r d) (Word r d) ℂ)) * splitColumnMatrix n r d =
65 (splittingMatrix n r d).conjTranspose *
66 (X ⊗ₖ (1 : Matrix (Occupation r d) (Occupation r d) ℂ)) * splittingMatrix n r d := by
67 calc
68 _ = (splittingMatrix n r d).conjTranspose *
69 ((columnMatrix n d ⊗ₖ columnMatrix r d).conjTranspose *
70 ((columnMatrix n d * X * (columnMatrix n d).conjTranspose) ⊗ₖ
71 (1 : Matrix (Word r d) (Word r d) ℂ)) *
72 (columnMatrix n d ⊗ₖ columnMatrix r d)) * splittingMatrix n r d := by
73 rw [← splittingMatrix_physical]
74 simp only [Matrix.conjTranspose_mul, Matrix.mul_assoc]
75 _ = _ := by
76 rw [Cloning.Compression.tensor_compression _ _ X
77 (columnMatrix_isometry n d) (columnMatrix_isometry r d)]
78
79/-- The constructed CPTP map equals Werner's symmetric-projection formula
80in the actual computational tensor basis, on every symmetric input matrix. -/
81theorem wernerChannel_physical_sandwich (n r s : ℕ)
82 (X : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ) :
83 splitColumnMatrix n r (s + 1) * (wernerChannel n r s).toFun X *
84 (splitColumnMatrix n r (s + 1)).conjTranspose =
85 (((n + s).choose s : ℝ) / ((n + r + s).choose s : ℝ)) •
86 (splitSymmetricProjector n r (s + 1) *
87 ((columnMatrix n (s + 1) * X * (columnMatrix n (s + 1)).conjTranspose) ⊗ₖ
88 (1 : Matrix (Word r (s + 1)) (Word r (s + 1)) ℂ)) *
89 splitSymmetricProjector n r (s + 1)) := by
90 rw [wernerChannel_apply, ← physical_tensor_core]
91 simp only [splitSymmetricProjector, Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_assoc]
92
93/-- The physical Werner map preserves trace for every input operator. -/
94theorem wernerChannel_trace (n r s : ℕ)
95 (X : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ) :
96 Matrix.trace ((wernerChannel n r s).toFun X) = Matrix.trace X :=
97 (wernerChannel n r s).trace_preserving X
98
99/-- Positivity holds after arbitrary finite ancilla extension. -/
100theorem wernerChannel_completelyPositive (n r s k : ℕ)
101 (X : Matrix (Fin k × Occupation n (s + 1)) (Fin k × Occupation n (s + 1)) ℂ)
102 (hX : X.PosSemidef) :
103 (Cloning.Channels.amplify (wernerChannel n r s).toFun X).PosSemidef :=
104 (wernerChannel n r s).completely_positive k X hX
105
106end Cloning.GeneralSymmetricOccupation