Offline · exact source
Exact Lean source

WeylSqueezerPartialTrace

formalization/Cloning/WeylSqueezerPartialTrace.lean

Source hash: 81b5297f0e5fe6f0ceb8468353df3d49e6bb17e1da99010607f13d03e2652aad

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.WeylSqueezerProductSlices
2import Cloning.WeylSqueezerKraus
3 
4/-! The actual partial-trace channels on either half of the doubled Fock
5register, with exact all-input Weyl characteristic identities. -/
6noncomputable section
7open scoped Topology InnerProductSpace
8namespace Cloning.WeylSqueezer
9open Cloning.MultimodeCoherent Cloning.InfiniteTraceClass Cloning.WeylSqueezerProduct
10set_option backward.isDefEq.respectTransparency false
11variable {d : ℕ}
12 
13def signalPartialTrace (d : ℕ) : QuantumChannel (Fock (d+d)) (Fock d) :=
14  QuantumChannel.ofRectangularKraus (signalSlice (a := d) (b := d))
15    (fun x => signalSlice_norm_sq_hasSum (a := d) (b := d) x)
16 
17def idlerPartialTrace (d : ℕ) : QuantumChannel (Fock (d+d)) (Fock d) :=
18  QuantumChannel.ofRectangularKraus (idlerSlice (a := d) (b := d))
19    (fun x => idlerSlice_norm_sq_hasSum (a := d) (b := d) x)
20 
21theorem signalPartialTrace_characteristic (T : TraceClass (Fock (d+d))) (a : Fin d → ℂ) :
22    tracePairing ((signalPartialTrace d).toLinearMap T) (displacement a)=
23      tracePairing T (displacement (Fin.append a 0)) := by
24  have hpure (x : Fock (d+d)) :
25      tracePairing ((signalPartialTrace d).toLinearMap (vectorProjector x)) (displacement a)=
26        1*⟪x,displacement (Fin.append a 0) x⟫_ℂ := by
27    have hs := rectangularKraus_pairing_pure_hasSum (signalSlice (a := d) (b := d))
28      (fun y => signalSlice_norm_sq_hasSum (a := d) (b := d) y) x (displacement a)
29    have ht := signalSlice_inner_hasSum (a := d) (b := d) x (displacement (Fin.append a 0) x)
30    simp only [signalSlice_displacement] at ht
31    simpa only [one_mul] using hs.unique ht
32  simpa only [one_mul] using
33    channel_pairing_of_pure (signalPartialTrace d) (displacement a)
34      (displacement (Fin.append a 0)) 1 hpure T
35 
36theorem idlerPartialTrace_characteristic (T : TraceClass (Fock (d+d))) (b : Fin d → ℂ) :
37    tracePairing ((idlerPartialTrace d).toLinearMap T) (displacement b)=
38      tracePairing T (displacement (Fin.append 0 b)) := by
39  have hpure (x : Fock (d+d)) :
40      tracePairing ((idlerPartialTrace d).toLinearMap (vectorProjector x)) (displacement b)=
41        1*⟪x,displacement (Fin.append 0 b) x⟫_ℂ := by
42    have hs := rectangularKraus_pairing_pure_hasSum (idlerSlice (a := d) (b := d))
43      (fun y => idlerSlice_norm_sq_hasSum (a := d) (b := d) y) x (displacement b)
44    have ht := idlerSlice_inner_hasSum (a := d) (b := d) x (displacement (Fin.append 0 b) x)
45    simp only [idlerSlice_displacement] at ht
46    simpa only [one_mul] using hs.unique ht
47  simpa only [one_mul] using
48    channel_pairing_of_pure (idlerPartialTrace d) (displacement b)
49      (displacement (Fin.append 0 b)) 1 hpure T
50 
51end Cloning.WeylSqueezer