Offline · exact source
Exact Lean source

MatrixLiftedCPTPAction

formalization/Cloning/MatrixLiftedCPTPAction.lean

Source hash: 04e12d95b91a7450a4ebdef8565b6d279043544c57840a7c158a62aeb15759ce

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.MatrixLiftedCPTP
2import Cloning.MatrixChannelFidelity
3 
4/-! Exact action of the genuine sector channel on the manuscript's lifted states. -/
5noncomputable section
6open scoped BigOperators Matrix MatrixOrder ComplexOrder Kronecker
7open Matrix Cloning.Channels Cloning.MatrixFidelity Cloning.MatrixLiftedChannel
8 
9namespace Cloning.MatrixLiftedCPTP
10 
11set_option backward.isDefEq.respectTransparency false
12set_option linter.unusedSectionVars false
13 
14variable {μ ν : Type*} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν]
15variable {α χ : μ → Type*} {β κ : ν → Type*}
16variable [∀ i, Fintype (α i)] [∀ i, Fintype (χ i)]
17variable [∀ j, Fintype (β j)] [∀ j, Fintype (κ j)]
18variable [∀ i, DecidableEq (α i)] [∀ i, DecidableEq (χ i)]
19variable [∀ j, DecidableEq (β j)] [∀ j, DecidableEq (κ j)]
20 
21/-- Discarding any normalized multiplicity state recovers its entire complex
22sector matrix, with no positivity or trace-one requirement on that matrix. -/
23theorem inputReduction_blockDiagonal (Y : ∀ i, Matrix (α i) (α i) ℂ)
24    (σ : ∀ i, State (χ i)) (i : μ) :
25    inputReduction i (Matrix.blockDiagonal' (fun i => Y i ⊗ₖ (σ i).matrix)) = Y i := by
26  ext a b
27  simp only [inputReduction, Matrix.sum_apply, Matrix.submatrix_apply,
28    Matrix.blockDiagonal'_apply_eq, Matrix.kroneckerMap_apply]
29  rw [← Finset.mul_sum]
30  change Y i a b * Matrix.trace (σ i).matrix = Y i a b
31  rw [(σ i).trace_one, mul_one]
32 
33/-- The output law of the actual channel agrees with the previously defined
34transition blocks, independently of the discarded multiplicity states. -/
35theorem outputBlock_weightedInput (Φ : ∀ i j, MatrixChannel (α i) (β j))
36    (K : μ → ν → ℝ) (ρ : ∀ i, State (α i)) (σ : ∀ i, State (χ i))
37    (p : μ → ℝ) (j : ν) :
38    outputBlock Φ K j
39      (Matrix.blockDiagonal' (fun i => (p i • (ρ i).matrix) ⊗ₖ (σ i).matrix)) =
40      transitionOutput Φ ρ (kernelJoint p K) j := by
41  simp only [outputBlock, inputReduction_blockDiagonal,
42    channel_map_real_smul, smul_smul, transitionOutput, kernelJoint]
43  apply Finset.sum_congr rfl
44  intro i _
45  rw [mul_comm]
46 
47/-- The all-input CPTP construction has exactly the desired lifted output. -/
48theorem channel_weightedInput (Φ : ∀ i j, MatrixChannel (α i) (β j))
49    (K : μ → ν → ℝ) (hK : ∀ i j, 0 ≤ K i j)
50    (hKsum : ∀ i, ∑ j, K i j = 1) (τ : ∀ j, State (κ j))
51    (ρ : ∀ i, State (α i)) (σ : ∀ i, State (χ i)) (p : μ → ℝ) :
52    (channel Φ K hK hKsum τ).toFun
53      (Matrix.blockDiagonal' (fun i => (p i • (ρ i).matrix) ⊗ₖ (σ i).matrix)) =
54      liftedOutput Φ ρ τ (kernelJoint p K) := by
55  simp only [channel, channelMap, outputBlock_weightedInput, liftedOutput]
56 
57/-- In particular, a probability law gives exactly `liftedStateOfKernel`,
58now as the action of one genuine CPTP map on all input states. -/
59theorem channel_liftedStateOfKernel (Φ : ∀ i j, MatrixChannel (α i) (β j))
60    (K : μ → ν → ℝ) (hK : ∀ i j, 0 ≤ K i j)
61    (hKsum : ∀ i, ∑ j, K i j = 1) (τ : ∀ j, State (κ j))
62    (ρ : ∀ i, State (α i)) (σ : ∀ i, State (χ i)) (p : μ → ℝ)
63    (hp : ∀ i, 0 ≤ p i) (hpsum : ∑ i, p i = 1) :
64    (channel Φ K hK hKsum τ).toFun
65      (Matrix.blockDiagonal' (fun i => (p i • (ρ i).matrix) ⊗ₖ (σ i).matrix)) =
66      (liftedStateOfKernel Φ ρ τ p K hp hpsum hK hKsum).matrix :=
67  channel_weightedInput Φ K hK hKsum τ ρ σ p
68 
69/-- Fidelity of the actual channel output, including its prepared ancillary
70states, equals the previously established exact sector formula. -/
71theorem channel_weightedInput_fidelity (Φ : ∀ i j, MatrixChannel (α i) (β j))
72    (K : μ → ν → ℝ) (hK : ∀ i j, 0 ≤ K i j)
73    (hKsum : ∀ i, ∑ j, K i j = 1) (τ : ∀ j, State (κ j))
74    (ρ : ∀ i, State (α i)) (σ : ∀ i, State (χ i))
75    (p : μ → ℝ) (hp : ∀ i, 0 ≤ p i)
76    (target : ∀ j, State (β j)) (q : ν → ℝ) (hq : ∀ j, 0 ≤ q j) :
77    fidelity ((channel Φ K hK hKsum τ).toFun
78      (Matrix.blockDiagonal' (fun i => (p i • (ρ i).matrix) ⊗ₖ (σ i).matrix)))
79      (Matrix.blockDiagonal' (fun j => (q j • (target j).matrix) ⊗ₖ (τ j).matrix)) =
80      ∑ j, Real.sqrt (q j) *
81        fidelity (transitionOutput Φ ρ (kernelJoint p K) j) (target j).matrix := by
82  rw [channel_weightedInput]
83  exact liftedOutput_fidelity Φ ρ target τ (kernelJoint_nonneg hp hK) q hq
84 
85end Cloning.MatrixLiftedCPTP