Plain-language statement
The dual of a Kronecker product of maps is the Kronecker product of their duals.
Exact Lean statement
lemma dual_kron {A B C D : Type*} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
[DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D]
(M : MatrixMap A B π) (N : MatrixMap C D π) :
(M βββ N).dual = M.dual βββ N.dualFormal artifact
Lean source
lemma dual_kron {A B C D : Type*} [Fintype A] [Fintype B] [Fintype C] [Fintype D] [DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D] (M : MatrixMap A B π) (N : MatrixMap C D π) : (M βββ N).dual = M.dual βββ N.dual := by have h_trace : β (X : Matrix (A Γ C) (A Γ C) π) (Y : Matrix (B Γ D) (B Γ D) π), ( (M βββ N) X * Y ).trace = ( X * (M.dual βββ N.dual) Y ).trace := by -- By definition of dual, we know that $(M x1 * y1).trace = (x1 * M.dual y1).trace$ and $(N x2 * y2).trace = (x2 * N.dual y2).trace$. have h_dual : β (x1 : Matrix A A π) (y1 : Matrix B B π), (M x1 * y1).trace = (x1 * M.dual y1).trace := by intro x1 y1 convert MatrixMap.Dual.trace_eq M x1 y1 using 1 have h_dual_N : β (x2 : Matrix C C π) (y2 : Matrix D D π), (N x2 * y2).trace = (x2 * N.dual y2).trace := by exact fun x2 y2 => MatrixMap.Dual.trace_eq N x2 y2; intro X Y; -- By definition of Kronecker product, we can write X and Y as sums of Kronecker products. obtain β¨X_sum, hX_sumβ© : β X_sum : Finset (Matrix A A π Γ Matrix C C π), X = β p β X_sum, (Matrix.kroneckerMap (fun a b => a * b) p.1 p.2) := by refine' β¨ Finset.univ.image fun p : A Γ A Γ C Γ C => ( Matrix.of fun i j => if i = p.1 β§ j = p.2.1 then X ( p.1, p.2.2.1 ) ( p.2.1, p.2.2.2 ) else 0, Matrix.of fun i j => if i = p.2.2.1 β§ j = p.2.2.2 then 1 else 0 ), _ β©; ext β¨a, cβ© β¨a', c'β©; rw [ Finset.sum_apply, Finset.sum_apply ]; rw [ Finset.sum_eq_single ( ( Matrix.of fun i j => if i = a β§ j = a' then X ( a, c ) ( a', c' ) else 0, Matrix.of fun i j => if i = c β§ j = c' then 1 else 0 ) ) ] <;> simp; Β· intro a_1 b x x_1 x_2 x_3 a_2 a_3 a_4 subst a_3 a_2 contrapose! a_4; aesop; Β· exact fun h => False.elim ( h a a' c c' ( by ext i j; aesop ) ( by ext i j; aesop ) ) obtain β¨Y_sum, hY_sumβ© : β Y_sum : Finset (Matrix B B π Γ Matrix D D π), Y = β p β Y_sum, (Matrix.kroneckerMap (fun a b => a * b) p.1 p.2) := by use Finset.image (fun p => (Matrix.of (fun i j => Y (i, p.1) (j, p.2)), Matrix.of (fun i j => if i = p.1 β§ j = p.2 then 1 else 0))) (Finset.univ : Finset (D Γ D)); ext β¨i, jβ© β¨k, lβ©; simp [ Matrix.kroneckerMap ] ; rw [ Finset.sum_image ] <;> simp [ Matrix.sum_apply ]; Β· rw [ Finset.sum_eq_single ( j, l ) ] <;> aesop; Β· intro p q h subst hX_sum simp_all only [Prod.mk.injEq, EmbeddingLike.apply_eq_iff_eq] obtain β¨fst, sndβ© := p obtain β¨fst_1, snd_1β© := q obtain β¨left, rightβ© := h simp_all only [Prod.mk.injEq] apply And.intro Β· have := congr_fun ( congr_fun right fst ) snd; aesop; Β· replace right := congr_fun ( congr_fun right fst ) snd; aesop; -- By linearity of the trace and the properties of the Kronecker product, we can expand both sides of the equation. have h_expand : β (x1 y1 : Matrix A A π) (x2 y2 : Matrix C C π) (x3 y3 : Matrix B B π) (x4 y4 : Matrix D D π), ( (M βββ N) (Matrix.kroneckerMap (fun a b => a * b) x1 x2) * Matrix.kroneckerMap (fun a b => a * b) x3 x4 ).trace = ( Matrix.kroneckerMap (fun a b => a * b) x1 x2 * (M.dual βββ N.dual) (Matrix.kroneckerMap (fun a b => a * b) x3 x4) ).trace := by intro x1 y1 x2 y2 x3 y3 x4 y4 simp [MatrixMap.kron_map_of_kron_state] convert congr_argβ ( Β· * Β· ) ( h_dual x1 x3 ) ( h_dual_N x2 x4 ) using 1 <;> simp [ Matrix.trace, Matrix.mul_apply, Matrix.kroneckerMap_apply ] Β· simp only [Finset.sum_sigma', Finset.sum_mul _ _ _, Finset.mul_sum]; refine' Finset.sum_bij ( fun x _ => β¨ β¨ x.fst.1, x.snd.1 β©, β¨ x.fst.2, x.snd.2 β© β© ) _ _ _ _ <;> simp [ mul_assoc, mul_comm, mul_left_comm ]; Β· bound; Β· exact fun b => β¨ _, _, _, _, rfl β©; Β· simp only [mul_assoc, Finset.mul_sum _ _ _, Finset.sum_mul]; simp only [β Finset.sum_product', mul_left_comm]; refine' Finset.sum_bij ( fun x _ => ( x.1.2, x.2.2, x.1.1, x.2.1 ) ) _ _ _ _ <;> simp; simp_all [ Matrix.trace_sum, Finset.sum_mul _ _ _ ]; simp [Matrix.mul_sum, h_expand] apply dual_unique; assumption;- Project
- quantumInfo
- License
- MIT
- Commit
- 56e83a9288a3
- Source
- QuantumInfo/Finite/CPTPMap/Dual.lean:155-206
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Conj Transpose isometry mul isometry le one
conjTranspose_isometry_mul_isometry_le_one
Project documentation
The operator norm of the conjugate transpose is equal to the operator norm. -/ theorem Matrix.opNorm_conjTranspose_eq_opNorm {m n : Type*} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] (A : Matrix m n π) : Matrix.opNorm Aα΄΄ = Matrix.opNorm A := by unfold Matrix.opNorm rw [β ContinuousLinearMap.adjoint.norm_map (toEuclideanLin A).toContinuousLine...
Source project: quantumInfo
Person-level attribution pending.
Convex roof of pure
convex_roof_of_pure
Plain-language statement
The convex roof extension of g : KetUpToPhase d β ββ₯0 applied to a pure state Ο is g (KetUpToPhase.mk Ο).
Source project: quantumInfo
Person-level attribution pending.
Id achieves Rate log dim
CPTPMap.id_achievesRate_log_dim
Plain-language statement
The identity channel on D dimensional space achieves a rate of log2(D).
Source project: quantumInfo
Person-level attribution pending.