QubitDeficit.lean
1module23public import SubentropyCertificates.BinaryTableDeficit4public import SubentropyCertificates.MarginalEigenbasisTable5public import SubentropyCertificates.SubadditivityTheorem67/-! The accepted two-qubit subadditivity deficit bound (cor:qubit-deficit). -/8@[expose] public section9noncomputable section10set_option autoImplicit false11set_option backward.isDefEq.respectTransparency false12open Matrix13open scoped BigOperators ComplexOrder MatrixOrder14namespace SubentropyCertificates.QubitDeficit15open D5.S3.Quantum.Foundation.FiniteStateChannel16open D5.S3.Quantum.Information.PartialTraceMutualInformation17open D5.S3.Quantum.Information.InputInformationBalance18open D5.S3.Quantum.Subentropy.Basic19open D5.S3.Quantum.Subentropy.DensityKernel20open SubentropyCertificates.ClassicalCurve21open SubentropyCertificates.QuantumEquality22open SubentropyCertificates.Subadditivity2324private theorem det_qubit_spectrum {A : Matrix (Fin 2) (Fin 2) ℂ} (hA : A.IsHermitian) :25 A.det.re = hA.eigenvalues 0 * hA.eigenvalues 1 := by26 rw [hA.det_eq_prod_eigenvalues, Fin.prod_univ_two]27 change (((hA.eigenvalues 0 : ℂ) * (hA.eigenvalues 1 : ℂ))).re = _28 simp2930private theorem qubit_det_cases (ρ : DensityState (Fin 2)) :31 let d := (CStarMatrix.ofMatrix.symm ρ.1).det.re32 0 ≤ d ∧ (d = 0 ↔ IsPure ρ) := by33 let A := CStarMatrix.ofMatrix.symm ρ.134 have hA := density_posSemidef ρ35 let w := hA.isHermitian.eigenvalues36 have hp := spectral_prob hA ρ.2.237 change (∀ i, 0 ≤ w i) ∧ ∑ i, w i = 1 at hp38 change 0 ≤ A.det.re ∧ (A.det.re = 0 ↔ IsPure ρ)39 rw [det_qubit_spectrum hA.isHermitian, ← subentropy_zero_iff_pure, subentropy,40 subentropy_of_spectrum hA.isHermitian, classical_zero_iff_pointMass w hp]41 change 0 ≤ w 0 * w 1 ∧ (w 0 * w 1 = 0 ↔ ∃ i, w = pointMass i)42 refine ⟨mul_nonneg (hp.1 _) (hp.1 _), ?_⟩43 have hs := hp.244 rw [Fin.sum_univ_two] at hs45 constructor46 · intro hz47 rcases mul_eq_zero.mp hz with h | h48 · refine ⟨1, funext fun j => ?_⟩49 fin_cases j <;> simp [pointMass] <;> linarith only [h, hs]50 · refine ⟨0, funext fun j => ?_⟩51 fin_cases j <;> simp [pointMass] <;> linarith only [h, hs]52 · rintro ⟨i, hi⟩53 rw [hi]54 fin_cases i <;> simp [pointMass]5556/-- The product of the actual marginal determinants divided by three is57a lower bound for the subadditivity deficit of any two-qubit density matrix. -/58theorem two_qubit_subadditivity_deficit (ρ : DensityState (Fin 2 × Fin 2)) :59 (CStarMatrix.ofMatrix.symm (marginalRight ρ).1).det.re *60 (CStarMatrix.ofMatrix.symm (marginalLeft ρ).1).det.re / 3 ≤61 subentropy (marginalRight ρ) + subentropy (marginalLeft ρ) - subentropy ρ := by62 have hA := (partialTraceRight_posSemidef (density_posSemidef ρ)).isHermitian63 have hB := (partialTraceLeft_posSemidef (density_posSemidef ρ)).isHermitian64 obtain ⟨p, hp, hr, hc, hdiag⟩ := marginal_eigenbasis_table ρ (0,0)65 have he := classical_two_by_two_deficit p hp66 dsimp only at he67 rw [funext hr, funext hc] at he68 rw [hr 0, hr 1, hc 0, hc 1] at he69 let M := CStarMatrix.ofMatrix.symm ρ.170 change (partialTraceRight M).det.re * (partialTraceLeft M).det.re / 3 ≤71 matrixSubentropy (partialTraceRight M) + matrixSubentropy (partialTraceLeft M) - subentropy ρ72 rw [det_qubit_spectrum hA, det_qubit_spectrum hB,73 subentropy_of_spectrum hA, subentropy_of_spectrum hB]74 exact he.trans (sub_le_sub_left hdiag _)7576/-- The displayed lower bound is positive when both marginals are mixed.77For a pure marginal the bound and the deficit both vanish. -/78theorem two_qubit_deficit_boundary_cases (ρ : DensityState (Fin 2 × Fin 2)) :79 let bound := (CStarMatrix.ofMatrix.symm (marginalRight ρ).1).det.re *80 (CStarMatrix.ofMatrix.symm (marginalLeft ρ).1).det.re / 381 let deficit := subentropy (marginalRight ρ) + subentropy (marginalLeft ρ) - subentropy ρ82 (¬ IsPure (marginalRight ρ) ∧ ¬ IsPure (marginalLeft ρ) ↔ 0 < bound) ∧83 (IsPure (marginalRight ρ) ∨ IsPure (marginalLeft ρ) → bound = 0 ∧ deficit = 0) := by84 obtain ⟨ha, ha0⟩ := qubit_det_cases (marginalRight ρ)85 obtain ⟨hb, hb0⟩ := qubit_det_cases (marginalLeft ρ)86 dsimp only87 constructor88 · rw [← ha0, ← hb0, div_pos_iff_of_pos_right (by norm_num : (0 : ℝ) < 3)]89 constructor90 · rintro ⟨h, k⟩91 exact mul_pos (lt_of_le_of_ne ha (Ne.symm h)) (lt_of_le_of_ne hb (Ne.symm k))92 · intro h93 exact ⟨fun hz => by simp [hz] at h, fun hz => by simp [hz] at h⟩94 · intro hp95 refine ⟨?_, sub_eq_zero.mpr ((subadditivity_with_equality ρ).2.mpr hp).symm⟩96 rcases hp with h | h97 · simp [ha0.mpr h]98 · simp [hb0.mpr h]99100end SubentropyCertificates.QubitDeficit
Axioms used
Choose a statement to see which axioms its proof uses.