Pratik Patil

MarginalEigenbasisTable.lean

1module23public import SubentropyCertificates.MarginalPurity4import all D5.S3.Quantum.Subentropy.EigenbasisBlocks56/-! Diagonalizing both marginals gives a probability table with their7spectra as its row and column sums. Full diagonal pinching bounds the8original state's subentropy by the classical subentropy of the table. -/9@[expose] public section10noncomputable section11set_option autoImplicit false12set_option backward.isDefEq.respectTransparency false13open Matrix MeasureTheory Set14open scoped BigOperators ComplexOrder MatrixOrder Kronecker15namespace SubentropyCertificates.QubitDeficit16open D5.S3.Quantum.Foundation.FiniteStateChannel17open D5.S3.Quantum.Information.PartialTraceMutualInformation18open D5.S3.Quantum.Subentropy.Basic19open D5.S3.Quantum.Subentropy.ClassicalQuantumGram20open D5.S3.Quantum.Subentropy.EigenbasisBlocks21open D5.S3.Quantum.Subentropy.PinchingGap22open SubentropyCertificates.ClassicalCurve2324variable {D F : Type*} [Fintype D] [DecidableEq D] [Fintype F] [DecidableEq F]2526private theorem reindex_subentropy (M : Matrix D D ℂ) (e : F ≃ D) :27    matrixSubentropy (M.submatrix e e) = matrixSubentropy M := by28  unfold matrixSubentropy subentropyKernel29  apply setIntegral_congr_fun measurableSet_Ioi30  intro t _31  have h : 1 + (t⁻¹ : ℝ) • M.submatrix e e = (1 + (t⁻¹ : ℝ) • M).submatrix e e := by32    simp [Matrix.submatrix_add, Matrix.submatrix_smul, Matrix.submatrix_one_equiv]33  dsimp only34  rw [h, Matrix.det_submatrix_equiv_self]3536omit [DecidableEq D] [DecidableEq F] in37private theorem reindex_trace (M : Matrix D D ℂ) (e : F ≃ D) :38    (M.submatrix e e).trace = M.trace := e.sum_comp (fun i => M i i)3940private theorem diagonal_upper (M : Matrix D D ℂ) (hM : M.PosSemidef)41    (ht : M.trace = 1) (i₀ : D) :42    matrixSubentropy M ≤ classicalSubentropy (fun i => (M i i).re) := by43  let e : D × Unit ≃ D := Equiv.prodUnique D Unit44  let T := M.submatrix e e45  have h := (actual_pinching_gap_laws (i₀, ())).2 T (hM.submatrix e)46    ((reindex_trace M e).trans ht)47  let P := diagonal (fun i => ((M i i).re : ℂ))48  have he : blockPinch T = P.submatrix e e := by49    ext ⟨i, u⟩ ⟨j, v⟩50    cases u; cases v51    change (if i = j then M i j else 0) = P i j52    by_cases hij : i = j53    · subst j54      simp only [ite_true, P, Matrix.diagonal_apply_eq]55      apply Complex.ext56      · rfl57      · exact (RCLike.nonneg_iff.mp (hM.diag_nonneg (i := i))).258    · simp [hij, P]59  rw [he, reindex_subentropy P e] at h60  change 0 ≤ matrixSubentropy P - matrixSubentropy (M.submatrix e e) at h61  rw [reindex_subentropy M e] at h62  exact sub_nonneg.mp h6364private theorem local_subentropy (M : Matrix (D × F) (D × F) ℂ) (U : Matrix D D ℂ)65    (hu : U * U.conjTranspose = 1) :66    matrixSubentropy (localConjugate U M) = matrixSubentropy M := by67  let J := U.conjTranspose ⊗ₖ (1 : Matrix F F ℂ)68  have hJ : J.conjTranspose * J = 1 := by69    simp only [J, Matrix.conjTranspose_kronecker, Matrix.conjTranspose_conjTranspose,70      Matrix.conjTranspose_one, ← Matrix.mul_kronecker_mul, Matrix.one_mul, hu,71      Matrix.one_kronecker_one]72  simpa only [J, localConjugate, Matrix.conjTranspose_kronecker,73    Matrix.conjTranspose_conjTranspose, Matrix.conjTranspose_one] using74    matrixSubentropy_isometric_embedding M J hJ7576private theorem eigenbasis_diagonal {M : Matrix D D ℂ} (h : M.IsHermitian) :77    (h.eigenvectorUnitary : Matrix D D ℂ).conjTranspose * M * h.eigenvectorUnitary =78      diagonal (fun i => (h.eigenvalues i : ℂ)) := by79  simpa only [Unitary.conjStarAlgAut_apply, Unitary.coe_star,80    Matrix.star_eq_conjTranspose, Matrix.conjTranspose_conjTranspose,81    Function.comp_def, RCLike.ofReal_eq_complex_ofReal] using h.conjStarAlgAut_star_eigenvectorUnitary8283/-- The joint probabilities in a product of marginal eigenbases. Row and84column sums are the actual eigenvalues, including any zero eigenvalues. -/85theorem marginal_eigenbasis_table (ρ : DensityState (D × F)) (i₀ : D × F) :86    let hA := (partialTraceRight_posSemidef (density_posSemidef ρ)).isHermitian87    let hB := (partialTraceLeft_posSemidef (density_posSemidef ρ)).isHermitian88    ∃ p ∈ probabilitySimplex (D × F),89      (∀ i, ∑ j, p (i,j) = hA.eigenvalues i) ∧90      (∀ j, ∑ i, p (i,j) = hB.eigenvalues j) ∧91      subentropy ρ ≤ classicalSubentropy p := by92  let M := CStarMatrix.ofMatrix.symm ρ.193  have hM := density_posSemidef ρ94  let hA := (partialTraceRight_posSemidef hM).isHermitian95  let hB := (partialTraceLeft_posSemidef hM).isHermitian96  let U : Matrix D D ℂ := hA.eigenvectorUnitary97  let V : Matrix F F ℂ := hB.eigenvectorUnitary98  have hU : U * U.conjTranspose = 1 := Unitary.coe_mul_star_self hA.eigenvectorUnitary99  have hV : V * V.conjTranspose = 1 := Unitary.coe_mul_star_self hB.eigenvectorUnitary100  let e := Equiv.prodComm F D101  let N := M.submatrix e e102  let L := localConjugate V N103  let P := L.submatrix e.symm e.symm104  let K := localConjugate U P105  have hL := local_density V hV N (hM.submatrix e)106  have hK := local_density U hU P (hL.1.submatrix e.symm)107  have ht : K.trace = 1 := hK.2.trans ((reindex_trace L e.symm).trans108    (hL.2.trans ((reindex_trace M e).trans ρ.2.2)))109  have hright : partialTraceRight K = diagonal (fun i => (hA.eigenvalues i : ℂ)) := by110    rw [show partialTraceRight K = _ from local_right U P,111      show partialTraceRight P = partialTraceLeft L from rfl, local_left V hV N]112    exact eigenbasis_diagonal hA113  have hleft : partialTraceLeft K = diagonal (fun j => (hB.eigenvalues j : ℂ)) := by114    rw [show partialTraceLeft K = _ from local_left U hU P,115      show partialTraceLeft P = partialTraceRight L from rfl, local_right V N]116    exact eigenbasis_diagonal hB117  let p := fun i => (K i i).re118  refine ⟨p, ⟨fun i => (RCLike.nonneg_iff.mp (hK.1.diag_nonneg (i := i))).1, ?_⟩, ?_, ?_, ?_⟩119  · simpa [p, Matrix.trace, Matrix.diag_apply, Complex.re_sum] using congrArg Complex.re ht120  · intro i121    simpa [p, partialTraceRight, Complex.re_sum] using congrArg (fun A => (A i i).re) hright122  · intro j123    simpa [p, partialTraceLeft, Complex.re_sum] using congrArg (fun A => (A j j).re) hleft124  · have hQ : matrixSubentropy K = matrixSubentropy M :=125      (local_subentropy P U hU).trans ((reindex_subentropy L e.symm).trans126        ((local_subentropy N V hV).trans (reindex_subentropy M e)))127    exact hQ.symm.le.trans (diagonal_upper K hK.1 ht i₀)128129end SubentropyCertificates.QubitDeficit

Axioms used

Choose a statement to see which axioms its proof uses.