Offline · exact source
Exact Lean source

TensorFlatProjectorTransitionCovariance

formalization/Cloning/TensorFlatProjectorTransitionCovariance.lean

Source hash: f59ef58dc1427cfad67299f9c19b466db12b0f7d7d8c305908f025c99f124ace

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.TensorFlatProjectorRankLaw
2import Cloning.TensorFlatProjectorMoments
3import Cloning.TensorFlatProjectorMixture
4import Cloning.TensorFlatProjectorStateFidelity
5import Cloning.TensorCloningSectorCovariance
6 
7/-! Flat physical transition fidelity on the complete unitary orbit. -/
8noncomputable section
9open scoped BigOperators InnerProductSpace Matrix Classical
10namespace Cloning.TensorCloning
11open Cloning.PCT Cloning.TensorLie Cloning.TensorLAN Cloning.InfiniteTraceClass Cloning.Hybrid
12set_option maxHeartbeats 1800000
13set_option synthInstance.maxHeartbeats 200000
14set_option backward.isDefEq.respectTransparency false
15variable {n m d r : ℕ}
16local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
17  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18 
19theorem copySectorPositive_unitary (H : PhysicalHighestTensor n d)
20    (U : Matrix (Fin d) (Fin d) ℂ) (hU : Uᴴ * U = 1)
21    (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
22    copySectorPositive H U p hp =
23      (copySectorPositive H 1 p hp).map
24        (QuantumChannel.ofIsometry (copySectorUnitary H U hU).toLinearIsometry).toPositiveTracePreservingMap := by
25  apply Subtype.ext
26  change canonicalRotatedGibbs H U p =
27    conjugationLinearMap (copySectorUnitary H U hU).toLinearIsometry.toContinuousLinearMap
28      (canonicalRotatedGibbs H 1 p)
29  rw [canonicalRotatedGibbs_one]
30  rfl
31 
32/-- The actual conditional transition payoff is constant on the whole
33physical unitary orbit, for every admissible finite Cartan transition. -/
34theorem nonnegativeTransitionFidelity_unitary (n m d : ℕ) (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a)
35    (U : Matrix (Fin d) (Fin d) ℂ) (hU : Uᴴ * U = 1)
36    (i : SchurCopy n d) (j : SchurCopy m d)
37    (hc : PartitionCompatible ((recursivePhysicalDecomposition n d).get i).weight
38      ((recursivePhysicalDecomposition m d).get j).weight) :
39    nonnegativeTransitionFidelity p hp U i j = nonnegativeTransitionFidelity p hp 1 i j := by
40  let A := (recursivePhysicalDecomposition n d).get i
41  let B := (recursivePhysicalDecomposition m d).get j
42  let C := partitionTransitionChannel A.weight B.weight A.weight_antitone B.weight_antitone
43  let V := QuantumChannel.ofIsometry (copySectorUnitary B U hU).toLinearIsometry
44  have he : (copySectorPositive A U p hp).map C.toPositiveTracePreservingMap =
45      ((copySectorPositive A 1 p hp).map C.toPositiveTracePreservingMap).map V.toPositiveTracePreservingMap := by
46    rw [copySectorPositive_unitary A U hU p hp]
47    apply Subtype.ext
48    exact partitionTransitionChannel_covariant A.weight B.weight A.weight_antitone B.weight_antitone hc U hU
49      (copySectorPositive A 1 p hp).1
50  change ((copySectorPositive A U p hp).map C.toPositiveTracePreservingMap).rootFidelity
51    (copySectorPositive B U p hp) =
52    ((copySectorPositive A 1 p hp).map C.toPositiveTracePreservingMap).rootFidelity (copySectorPositive B 1 p hp)
53  rw [he, copySectorPositive_unitary B U hU p hp]
54  exact rootFidelity_map_isometryEquiv (copySectorUnitary B U hU) _ _
55 
56 
57theorem padPartition_compatible (mu lam : Fin r → ℕ)
58    (hc : PartitionCompatible mu lam) (k : ℕ) :
59    PartitionCompatible (padPartition mu k) (padPartition lam k) := by
60  constructor
61  · intro a
62    refine Fin.addCases ?_ ?_ a
63    · intro i
64      simpa only [padPartition,Fin.append_left] using hc.1 i
65    · intro i; simp [padPartition]
66  · have he : (fun a => padPartition lam k a-padPartition mu k a) =
67        padPartition (fun a => lam a-mu a) k := by
68      funext a
69      refine Fin.addCases ?_ ?_ a <;> intro i <;> simp [padPartition]
70    rw [he]
71    exact padPartition_antitone _ hc.2 k
72 
73/-- Copy labels determine the physical conditional fidelity at the identity. -/
74theorem nonnegativeTransitionFidelity_one_eq (p : Fin d → ℝ) (hp : ∀a,0≤p a)
75    (i : SchurCopy n d) (j : SchurCopy m d) :
76    nonnegativeTransitionFidelity p hp 1 i j =
77      ((nonnegativePartitionGibbsPositive ((recursivePhysicalDecomposition n d).get i).weight
78        ((recursivePhysicalDecomposition n d).get i).weight_antitone p hp).map
79        (partitionTransitionChannel ((recursivePhysicalDecomposition n d).get i).weight
80          ((recursivePhysicalDecomposition m d).get j).weight
81          ((recursivePhysicalDecomposition n d).get i).weight_antitone
82          ((recursivePhysicalDecomposition m d).get j).weight_antitone).toPositiveTracePreservingMap).rootFidelity
83        (nonnegativePartitionGibbsPositive ((recursivePhysicalDecomposition m d).get j).weight
84          ((recursivePhysicalDecomposition m d).get j).weight_antitone p hp) := by
85  have hstate (H : PhysicalHighestTensor n d) : copySectorPositive H 1 p hp =
86      nonnegativePartitionGibbsPositive H.weight H.weight_antitone p hp := by
87    apply Subtype.ext
88    exact canonicalRotatedGibbs_one H p
89  have hstate' (H : PhysicalHighestTensor m d) : copySectorPositive H 1 p hp =
90      nonnegativePartitionGibbsPositive H.weight H.weight_antitone p hp := by
91    apply Subtype.ext
92    exact canonicalRotatedGibbs_one H p
93  simp only [nonnegativeTransitionFidelity,hstate,hstate']
94 
95def weightTransitionFidelity (p : Fin d → ℝ) (hp : ∀a,0≤p a)
96    (mu lam : Fin d → ℕ) : ℝ :=
97  if hm : Antitone mu then
98    if hl : Antitone lam then
99      ((nonnegativePartitionGibbsPositive _ hm p hp).map
100        (partitionTransitionChannel _ _ hm hl).toPositiveTracePreservingMap).rootFidelity
101        (nonnegativePartitionGibbsPositive _ hl p hp)
102    else 0
103  else 0
104 
105def labelTransitionFidelity (p : Fin d → ℝ) (hp : ∀a,0≤p a)
106    (mu : Cloning.YoungGeneral.Shape d n) (lam : Cloning.YoungGeneral.Shape d m) : ℝ :=
107  weightTransitionFidelity p hp (fun a => (mu a).val) (fun a => (lam a).val)
108 
109theorem labelTransitionFidelity_copy (p : Fin d → ℝ) (hp : ∀a,0≤p a)
110    (i : SchurCopy n d) (j : SchurCopy m d) :
111    labelTransitionFidelity p hp ((recursivePhysicalDecomposition n d).get i).shape
112      ((recursivePhysicalDecomposition m d).get j).shape =
113      nonnegativeTransitionFidelity p hp 1 i j := by
114  rw [nonnegativeTransitionFidelity_one_eq]
115  simp only [labelTransitionFidelity,weightTransitionFidelity,PhysicalHighestTensor.shape,
116    dif_pos ((recursivePhysicalDecomposition n d).get i).weight_antitone,
117    dif_pos ((recursivePhysicalDecomposition m d).get j).weight_antitone]
118 
119theorem padPartition_compatible_iff (mu lam : Fin r → ℕ) (k : ℕ) :
120    PartitionCompatible (padPartition mu k) (padPartition lam k) ↔ PartitionCompatible mu lam := by
121  constructor
122  · intro h
123    constructor
124    · intro i
125      simpa only [padPartition,Fin.append_left] using h.1 (Fin.castAdd k i)
126    · intro i j hij
127      simpa only [padPartition,Fin.append_left] using h.2 (show Fin.castAdd k i ≤ Fin.castAdd k j from hij)
128  · exact fun h => padPartition_compatible mu lam h k
129 
130theorem labelTransitionFidelity_pad (mu : Cloning.YoungGeneral.Shape r n)
131    (lam : Cloning.YoungGeneral.Shape r m) (hmu : Antitone (fun a => (mu a).val))
132    (hlam : Antitone (fun a => (lam a).val))
133    (hc : PartitionCompatible (fun a => (mu a).val) (fun a => (lam a).val))
134    (k : ℕ) (hr : 0<r) :
135    labelTransitionFidelity (rankFlatSpectrum r k) (rankFlatSpectrum_nonneg r k)
136      (padShape mu k) (padShape lam k) =
137      Real.sqrt (Cloning.YoungDimensionRatio.dimensionRatio r k (Cloning.YoungGeneral.shapeRows mu) /
138        Cloning.YoungDimensionRatio.dimensionRatio r k (Cloning.YoungGeneral.shapeRows lam)) := by
139  unfold labelTransitionFidelity
140  rw [padShape_val,padShape_val]
141  simp only [weightTransitionFidelity,dif_pos (padPartition_antitone _ hmu k),
142    dif_pos (padPartition_antitone _ hlam k)]
143  exact partitionTransition_rankFlat_fidelity _ _ hmu hlam hc k hr
144 
145end Cloning.TensorCloning