Pratik Patil

AncillaTracePairing.lean

1module23public import SubentropyCertificates.AncillaEffectivePOVM45/-! The trace pairing of a joint effect against an independent product state. -/6@[expose] public section7noncomputable section8open Matrix9open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator Kronecker10namespace SubentropyCertificates.Discrimination11open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)12open D5.S3.Quantum.Information.PartialTraceMutualInformation13open SubentropyCertificates.BinarySpectra (densityMatrix)1415variable {B C : Type*} [Fintype B] [DecidableEq B] [Fintype C] [DecidableEq C]1617omit [DecidableEq B] in18private theorem trace_partial_pair (H : Matrix (B × C) (B × C) ℂ) (R : Matrix B B ℂ) :19    ((partialTraceRight H) * R).trace = (H * (R ⊗ₖ (1 : Matrix C C ℂ))).trace := by20  simp only [Matrix.trace, diag_apply, Matrix.mul_apply, partialTraceRight, Finset.sum_mul,21    Fintype.sum_prod_type, kroneckerMap_apply, one_apply, mul_ite, mul_one, mul_zero,22    Finset.sum_ite_eq', Finset.mem_univ, ite_true]23  exact Finset.sum_congr rfl fun _ _ ↦ Finset.sum_comm2425/-- Partial trace after weighting a joint effect by the ancilla square root preserves its26trace pairing with every product input. The ancillary density may be singular. -/27theorem ancilla_trace_pairing (ν : DensityState C) (E : Matrix (B × C) (B × C) ℂ)28    (R : Matrix B B ℂ) :29    (ancillaEffect ν E * R).trace = (E * (R ⊗ₖ densityMatrix ν)).trace := by30  let S := (1 : Matrix B B ℂ) ⊗ₖ CFC.sqrt (densityMatrix ν)31  let T := R ⊗ₖ (1 : Matrix C C ℂ)32  have hs : S * T * S = R ⊗ₖ densityMatrix ν := by33    simp only [S, T, ← mul_kronecker_mul, one_mul, mul_one,34      CFC.sqrt_mul_sqrt_self _ (density_posSemidef ν).nonneg]35  change (partialTraceRight (S * E * S) * R).trace = _36  rw [trace_partial_pair]37  change (S * E * S * T).trace = _38  calc39    _ = (S * (E * (S * T))).trace := by simp only [Matrix.mul_assoc]40    _ = ((E * (S * T)) * S).trace := trace_mul_comm _ _41    _ = (E * (R ⊗ₖ densityMatrix ν)).trace := by rw [Matrix.mul_assoc, hs]4243end SubentropyCertificates.Discrimination

Axioms used

Choose a statement to see which axioms its proof uses.