Documentation

CslibFrontier.Foundations.Quantum.DensityMatrix.RelativeEntropy

Quantum relative entropy of finite density matrices #

The finite value is the trace of the first state against the difference of the matrix logarithms. It is finite precisely when the second state's kernel is contained in the first state's kernel. Nonnegativity follows from classical Gibbs' inequality applied to the two distributions formed from eigenvalues and squared overlaps of the eigenvectors. This supplies the nonnegativity used in Bavarian, Vidick and Yuen, Proposition 5.2. The same distributions identify their Bhattacharyya coefficient with the trace overlap of the two positive square roots. This controls fidelity and the squared error of aligning purifications using a local unitary.

Main results #

def Cslib.Quantum.SupportLE {ι : Type u_1} [Fintype ι] (ρ σ : Matrix ι ι ℂ) :

The support of ρ is contained in that of σ, stated in terms of their kernels.

theorem Cslib.Quantum.SupportLE.refl {ι : Type u_1} [Fintype ι] (ρ : Matrix ι ι ℂ) :
SupportLE ρ ρ

Every matrix has its own support.

theorem Cslib.Quantum.SupportLE.trans {ι : Type u_1} [Fintype ι] {ρ σ τ : Matrix ι ι ℂ} (hρσ : SupportLE ρ σ) (hστ : SupportLE σ τ) :
SupportLE ρ τ

Support inclusion is transitive.

theorem Cslib.Quantum.SupportLE.of_le {ι : Type u_1} [Fintype ι] {σ τ : Matrix ι ι ℂ} (hσ : σ.PosSemidef) (h : σ ≤ τ) :
SupportLE σ τ

The support of a positive semidefinite matrix is contained in that of every larger positive semidefinite matrix.

theorem Cslib.Quantum.SupportLE.sum_smul {ι : Type u_1} [Fintype ι] {κ : Type u_2} [Fintype κ] (w : κ → ℝ) (hw : ∀ (k : κ), 0 ≤ w k) {ρ σ : κ → Matrix ι ι ℂ} (hσ : ∀ (k : κ), (σ k).PosSemidef) (hs : ∀ (k : κ), SupportLE (ρ k) (σ k)) :
SupportLE (∑ k : κ, w k • ρ k) (∑ k : κ, w k • σ k)

Support inclusion is preserved by nonnegative weighted sums of the pairs when the reference matrices are positive semidefinite.

theorem Cslib.Quantum.SupportLE.conjTranspose_mul_mul {ι : Type u_1} [Fintype ι] {κ : Type u_2} [Fintype κ] {ρ σ : Matrix ι ι ℂ} (h : SupportLE ρ σ) (hσ : σ.PosSemidef) (V : Matrix ι κ ℂ) :

A rectangular compression preserves support inclusion when its reference is positive semidefinite.

theorem Cslib.Quantum.SupportLE.submatrix {ι : Type u_1} [Fintype ι] {κ : Type u_2} [Fintype κ] {ρ σ : Matrix ι ι ℂ} (h : SupportLE ρ σ) (hσ : σ.PosSemidef) (f : κ → ι) :
SupportLE (ρ.submatrix f f) (σ.submatrix f f)

Principal submatrices inherit support inclusion from a pair with positive semidefinite reference.

noncomputable def Cslib.Quantum.relativeEntropyReal {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ σ : Matrix ι ι ℂ) :

The finite trace formula, with the logarithm assigned zero on the kernel.

noncomputable def Cslib.Quantum.relativeEntropy {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ σ : Matrix ι ι ℂ) :

Umegaki relative entropy in nats, taking value infinity on a support mismatch.

theorem Cslib.Quantum.relativeEntropy_of_supportLE {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (h : SupportLE ρ σ) :
theorem Cslib.Quantum.relativeEntropy_reindex {ι : Type u_1} [Fintype ι] [DecidableEq ι] {κ : Type u_2} [Fintype κ] [DecidableEq κ] (e : ι ≃ κ) {ρ σ : Matrix ι ι ℂ} (hρ : ρ.IsHermitian) (hσ : σ.PosSemidef) :

Relabelling both matrix coordinates by one equivalence preserves relative entropy.

theorem Cslib.Quantum.eigenvalue_mul_overlap_eq_zero_of_supportLE {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A B : Matrix ι ι ℂ} (hA : A.IsHermitian) (hB : B.IsHermitian) (hs : SupportLE A B) (i j : ι) (hj : hB.eigenvalues j = 0) :

A source eigenvalue weighted by its overlap with a reference kernel vector vanishes under support inclusion.

theorem Cslib.Quantum.sum_eigenbasis_overlap_row {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A B : Matrix ι ι ℂ} (hA : A.IsHermitian) (hB : B.IsHermitian) (i : ι) :

The squared overlaps with the eigenbasis of the second matrix sum to one in each row.

The finite trace formula expressed in the eigenbases of its two arguments.

theorem Cslib.Quantum.relativeEntropyReal_smul {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) (hs : SupportLE ρ σ) {a b : ℝ} (ha : 0 < a) (hb : 0 < b) :
relativeEntropyReal (a • ρ) (b • σ) = a * (Real.log (a / b) + relativeEntropyReal ρ σ)

Positive scalar weights contribute a classical log likelihood to the block entropy.

theorem Cslib.Quantum.exists_pmf_relativeEntropyReal_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) (hs : SupportLE ρ σ) :
∃ (p : PMF (ι × ι)) (q : PMF (ι × ι)), p.support ⊆ q.support ∧ relativeEntropyReal ρ σ = ∑ z : ι × ι, (p z).toReal * Real.log ((p z).toReal / (q z).toReal) ∧ Probability.PMF.bhattacharyya p q = (CFC.sqrt ρ * CFC.sqrt σ).trace.re

Weight the squared eigenbasis overlaps by the two sets of eigenvalues. The resulting distributions give the finite trace formula and the square-root trace overlap.

theorem Cslib.Quantum.relativeEntropyReal_nonneg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) (hs : SupportLE ρ σ) :

Finite quantum relative entropy is nonnegative whenever the supports are compatible.

@[simp]
theorem Cslib.Quantum.relativeEntropy_self {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ρ : Matrix ι ι ℂ) :
theorem Cslib.Quantum.relativeEntropy_nonneg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) :

Quantum relative entropy is nonnegative, with an infinite value if the support test fails.

theorem Cslib.Quantum.relativeEntropy_smul_right {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : ρ.IsHermitian) (hσ : σ.IsHermitian) {c : ℝ} (hc : 0 < c) :
relativeEntropy ρ (c • σ) = relativeEntropy ρ σ + ↑(-(Real.log c * ρ.trace.re))

Scaling the reference by a positive constant subtracts the logarithm of that constant times the source trace. The identity uses only the support of the source.

When relative entropy is finite, fidelity is at least the exponential of minus half the entropy in nats.

theorem Cslib.Quantum.two_mul_one_sub_rootFidelity_le_relativeEntropy {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ρ σ : Matrix ι ι ℂ} (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) :
↑(2 * (1 - rootFidelity ρ σ)) ≤ relativeEntropy ρ σ

Twice one minus the unsquared fidelity is at most the quantum relative entropy.

theorem Cslib.Quantum.exists_localUnitary_norm_sub_sq_le_relativeEntropy {ι : Type u_1} [Fintype ι] [DecidableEq ι] {κ : Type u_2} [Fintype κ] [DecidableEq κ] (ψ φ : EuclideanSpace ℂ (ι × κ)) (hψ : ‖ψ‖ = 1) (hφ : ‖φ‖ = 1) :

Two unit purifications can be aligned with squared error at most the relative entropy of their left reduced states.