Exact Lean source
TensorCloningChannel
formalization/Cloning/TensorCloningChannel.lean
Source hash: b38c910d8582455309ac795ba18c8d73380f5445d726a0c163cf09b6b493ec2d
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.
In the dependency map: Lifted channels · Known spectrum
Declarations in this module
definition
Cloning.TensorCloning.PartitionCompatibledefinition Cloning.TensorCloning.partitionHighestStatedefinition Cloning.TensorCloning.partitionTransitionChanneldefinition Cloning.TensorCloning.copyTransitiondefinition Cloning.TensorCloning.channeltheorem Cloning.TensorCloning.channel_applydefinition Cloning.TensorCloning.knownCopyWeighttheorem Cloning.TensorCloning.knownCopyWeight_nonnegtheorem Cloning.TensorCloning.knownCopyWeight_sumdefinition Cloning.TensorCloning.knownSpectrumChannel1import Cloning.InfiniteFiniteInstrument
2import Cloning.TensorCartanChannel
3import Cloning.TensorLANEmbeddingSchur
4import Cloning.TensorSchurDecompositionTrace
5import Cloning.TensorCloningGlobalCovarianceState
6
7/-! Concrete global cloning channels on the physical tensor registers.
8The channel measures the exhaustive Schur decomposition, applies the actual
9Cartan sector channel whenever the partition difference is admissible, and
10samples the output physical copy with a normalized classical row. -/
11noncomputable section
12open scoped BigOperators InnerProductSpace Classical
13namespace Cloning.TensorCloning
14open Cloning.PCT Cloning.TensorLie Cloning.TensorLAN Cloning.InfiniteTraceClass
15set_option backward.isDefEq.respectTransparency false
16set_option maxHeartbeats 800000
17local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
18 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
19
20def PartitionCompatible {d : ℕ} (μ ν : Fin d → ℕ) : Prop :=
21 (∀ i, μ i ≤ ν i) ∧ Antitone (fun i ↦ ν i - μ i)
22
23def partitionHighestState {d : ℕ} (μ : Fin d → ℕ) (hμ : Antitone μ) :
24 DensityState (cyclicSector (partitionHighestTensor μ hμ)) :=
25 DensityState.pure ⟨partitionHighestTensor μ hμ, highest_mem_cyclicSector _⟩
26 (partitionHighestTensor_norm μ hμ)
27
28/-- The concrete sector channel, including the invariant maximally mixed
29sector replacement on inadmissible partition pairs. -/
30def partitionTransitionChannel {d : ℕ} (μ ν : Fin d → ℕ)
31 (hμ : Antitone μ) (hν : Antitone ν) :
32 QuantumChannel (cyclicSector (partitionHighestTensor μ hμ))
33 (cyclicSector (partitionHighestTensor ν hν)) := by
34 by_cases h : PartitionCompatible μ ν
35 · have he : (fun i ↦ μ i + (ν i - μ i)) = ν :=
36 funext fun i ↦ Nat.add_sub_of_le (h.1 i)
37 let a : {v : Fin d → ℕ // Antitone v} :=
38 ⟨fun i ↦ μ i + (ν i - μ i), sumPartition_antitone μ (fun i ↦ ν i - μ i) hμ h.2⟩
39 let b : {v : Fin d → ℕ // Antitone v} := ⟨ν, hν⟩
40 have hab : a = b := Subtype.ext he
41 exact Eq.mp (congrArg (fun η : {v : Fin d → ℕ // Antitone v} ↦
42 QuantumChannel (cyclicSector (partitionHighestTensor μ hμ))
43 (cyclicSector (partitionHighestTensor η.val η.property))) hab)
44 (physicalCartanChannel μ (fun i ↦ ν i - μ i) hμ h.2)
45 · exact QuantumChannel.ofContraction 0 (by intro x; simp) (partitionInvariantState ν hν)
46
47/-- Each target copy is the actual physical canonical sector embedding. -/
48def copyTransition (n m d : ℕ) (i : SchurCopy n d) (j : SchurCopy m d) :
49 QuantumChannel ((recursivePhysicalDecomposition n d).get i).CanonicalSector
50 (TensorRegister m (Fin d)) :=
51 let A := (recursivePhysicalDecomposition n d).get i
52 let B := (recursivePhysicalDecomposition m d).get j
53 (QuantumChannel.ofIsometry B.canonicalEmbedding).comp
54 (partitionTransitionChannel A.weight B.weight A.weight_antitone B.weight_antitone)
55
56/-- A literal state-independent all-input quantum channel for every normalized
57finite row of output-copy probabilities. -/
58def channel (n m d : ℕ) (q : SchurCopy n d → SchurCopy m d → ℝ)
59 (hq : ∀ i j, 0 ≤ q i j) (hs : ∀ i, ∑ j, q i j = 1) :
60 QuantumChannel (TensorRegister n (Fin d)) (TensorRegister m (Fin d)) :=
61 QuantumChannel.ofHilbertSum
62 (fun i : SchurCopy n d ↦ ((recursivePhysicalDecomposition n d).get i).canonicalEmbedding)
63 (canonicalSectorHilbertSum (recursivePhysicalDecomposition n d)
64 (recursivePhysicalDecomposition_is_decomposition n d).1
65 (recursivePhysicalDecomposition_is_decomposition n d).2)
66 (fun i ↦ QuantumChannel.finiteMixture (q i) (hq i) (hs i) (copyTransition n m d i))
67
68/-- Exact full-register action, valid for all complex inputs. -/
69theorem channel_apply (n m d : ℕ) (q : SchurCopy n d → SchurCopy m d → ℝ)
70 (hq : ∀ i j, 0 ≤ q i j) (hs : ∀ i, ∑ j, q i j = 1)
71 (A : TraceClass (TensorRegister n (Fin d))) :
72 (channel n m d q hq hs).toLinearMap A =
73 ∑ i : SchurCopy n d, ∑ j : SchurCopy m d,
74 (q i j : ℂ) • (copyTransition n m d i j).toLinearMap
75 (conjugationLinearMap
76 ((recursivePhysicalDecomposition n d).get i).canonicalEmbedding.toContinuousLinearMap.adjoint A) := by
77 simp [channel]
78
79/-- Exact output-copy sampling probabilities for a known spectrum. Each
80physical copy has its actual sector trace as its sampling probability. -/
81def knownCopyWeight (m d : ℕ) (p : Fin d → ℝ) (j : SchurCopy m d) : ℝ :=
82 ((recursivePhysicalDecomposition m d).get j).character p
83
84theorem knownCopyWeight_nonneg (m d : ℕ) (p : Fin d → ℝ) (j : SchurCopy m d) :
85 0 ≤ knownCopyWeight m d p j := PhysicalHighestTensor.character_nonneg _ _
86
87theorem knownCopyWeight_sum (m d : ℕ) (p : Fin d → ℝ)
88 (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) :
89 ∑ j : SchurCopy m d, knownCopyWeight m d p j = 1 := by
90 have h := sum_physical_characters (recursivePhysicalDecomposition m d)
91 (recursivePhysicalDecomposition_is_decomposition m d).1
92 (recursivePhysicalDecomposition_is_decomposition m d).2 p hp
93 simpa only [knownCopyWeight, hs, one_pow] using h
94
95/-- Actual known-spectrum global cloning protocol. No unknown eigenbasis
96appears in its definition. -/
97def knownSpectrumChannel (n m d : ℕ) (p : Fin d → ℝ)
98 (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) :
99 QuantumChannel (TensorRegister n (Fin d)) (TensorRegister m (Fin d)) :=
100 channel n m d (fun _ ↦ knownCopyWeight m d p)
101 (fun _ ↦ knownCopyWeight_nonneg m d p) (fun _ ↦ knownCopyWeight_sum m d p hp hs)
102
103end Cloning.TensorCloning