Pratik Patil

AncillaStateDifference.lean

1module23public import SubentropyCertificates.CalibratedGram4import all SubentropyCertificates.MarginalEigenbasisTable5import all D5.S3.Quantum.Subentropy.ClassicalQuantumGram67/-! The extended conditional subentropy as a difference for the original joint and average states. -/8@[expose] public section9noncomputable section10open Matrix11open scoped Kronecker BigOperators12namespace SubentropyCertificates.AncillaLimit13open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)14open D5.S3.Quantum.Information.PartialTraceMutualInformation (productState)15open D5.S3.Quantum.Information.OrthogonalRecordEntropy (recordState mixtureState)16open D5.S3.Quantum.Subentropy.ClassicalQuantumGram (conditionalSubentropy record_entries)17open D5.S3.Quantum.Subentropy.Basic (matrixSubentropy)18open SubentropyCertificates.BinarySpectra (densityMatrix)19open SubentropyCertificates.ConditionalContinuity (ancillaBlocks sum_ancillaBlocks)2021/-- Regrouping the joint state lets both subentropies use a single ancillary tensor factor. -/22theorem conditional_product_eq_state_difference {X B C : Type*}23    [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B] [Fintype C] [DecidableEq C]24    (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B)25    (ν : DensityState C) :26    conditionalSubentropy p hp hs (fun x ↦ productState (ρ x) ν) =27      matrixSubentropy (densityMatrix (recordState p hp hs ρ) ⊗ₖ densityMatrix ν) -28      matrixSubentropy (densityMatrix (mixtureState p hp hs ρ) ⊗ₖ densityMatrix ν) := by29  let σ := fun x ↦ productState (ρ x) ν30  let e := (Equiv.prodAssoc X B C).symm31  have hrec : densityMatrix (recordState p hp hs σ) =32      ((densityMatrix (recordState p hp hs ρ)) ⊗ₖ densityMatrix ν).submatrix e e := by33    ext ⟨x,b,c⟩ ⟨y,d,j⟩34    change _ = densityMatrix (recordState p hp hs ρ) (x,b) (y,d) * densityMatrix ν c j35    rw [show densityMatrix (recordState p hp hs σ) (x,b,c) (y,d,j) = _ from36      record_entries p hp hs σ (x,b,c) (y,d,j),37      show densityMatrix (recordState p hp hs ρ) (x,b) (y,d) = _ from38      record_entries p hp hs ρ (x,b) (y,d)]39    by_cases h : x = y40    · subst y41      simp only [ite_true]42      exact (mul_assoc (p x : ℂ) (densityMatrix (ρ x) b d) (densityMatrix ν c j)).symm43    · simp [h]44  have hmix : densityMatrix (mixtureState p hp hs σ) =45      densityMatrix (mixtureState p hp hs ρ) ⊗ₖ densityMatrix ν := by46    change (∑ x, p x • (densityMatrix (ρ x) ⊗ₖ densityMatrix ν)) =47      (∑ x, p x • densityMatrix (ρ x)) ⊗ₖ densityMatrix ν48    rw [← sum_ancillaBlocks]49    simp only [ancillaBlocks, smul_kronecker]50  change matrixSubentropy (densityMatrix (recordState p hp hs σ)) -51    matrixSubentropy (densityMatrix (mixtureState p hp hs σ)) = _52  rw [hrec, QubitDeficit.reindex_subentropy, hmix]5354end SubentropyCertificates.AncillaLimit

Axioms used

Choose a statement to see which axioms its proof uses.