Documentation

CslibFrontier.Foundations.Quantum.DensityMatrix.ClassicalQuantumEntropy

Classical–quantum relative entropy #

A classical–quantum state stores a probability-weighted quantum state in each diagonal block. The support test is blockwise, and so is the functional calculus. This gives the relative-entropy chain rule and the classical–quantum mutual information formula of Bavarian, Vidick and Yuen, Propositions 5.6–5.7 (arXiv:1509.07466v2, printed pp. 19–20), with natural logarithms. Decomposing the divergence to a common reference into its mutual information and marginal parts gives the case of Proposition 5.9 on printed p. 21 where the source is classical–quantum and the classical reference marginal is diagonal. Disintegrating a pair of labels then gives the two-label chain step used in equation (27) on printed p. 21.

Main definitions #

Main results #

noncomputable def Cslib.Quantum.classicalQuantumState {ι : Type u_1} {X : Type u_2} [DecidableEq X] (p : PMF X) (ρ : X → Matrix ι ι ℂ) :
Matrix (ι × X) (ι × X) ℂ

A classical–quantum state with quantum coordinate first and classical label second.

theorem Cslib.Quantum.isDensityMatrix_classicalQuantumState {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) :

A probability-weighted block diagonal of density matrices is a density matrix.

theorem Cslib.Quantum.supportLE_classicalQuantumState_iff {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] (p q : PMF X) {ρ σ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) :

Finite support compatibility for classical–quantum states. Blocks of zero source mass impose no support condition.

theorem Cslib.Quantum.partialTraceRight_classicalQuantumState {ι : Type u_1} {X : Type u_2} [Fintype X] [DecidableEq X] (p : PMF X) (ρ : X → Matrix ι ι ℂ) :
partialTraceRight (classicalQuantumState p ρ) = ∑ x : X, (p x).toReal • ρ x

The quantum marginal of a classical–quantum state is its probability-weighted mixture.

theorem Cslib.Quantum.partialTraceLeft_classicalQuantumState {ι : Type u_1} {X : Type u_2} [Fintype ι] [DecidableEq X] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) :

The classical marginal of a classical–quantum state is the diagonal of its probabilities.

For classical–quantum states, relative entropy splits into the classical KL divergence and the average conditional quantum relative entropy. All terms are in nats, and zero source mass contributes zero even when the corresponding block divergence is infinite.

noncomputable def Cslib.Quantum.mutualInformation {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] [DecidableEq ι] (ρ : Matrix (ι × X) (ι × X) ℂ) :

Mutual information is relative entropy to the tensor product of the two marginals.

theorem Cslib.Quantum.mutualInformation_classicalQuantumState {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] [DecidableEq ι] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) :

The mutual information of a classical–quantum state is the weighted divergence of the conditional quantum states from their average.

theorem Cslib.Quantum.supportLE_partialTraceRight_classicalQuantumState {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) {x : X} (hx : x ∈ p.support) :

Each positive-mass conditional state is supported by the quantum marginal.

theorem Cslib.Quantum.sum_weighted_relativeEntropy_eq_mutualInformation_add {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] [DecidableEq ι] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) (σ : Matrix ι ι ℂ) :

The expected divergence to a common reference is the mutual information plus the divergence of the quantum marginal to that reference. The identity includes infinite terms.

For a classical–quantum source and a diagonal classical reference marginal, the product-reference bound of BVY Proposition 5.9 holds. The same quantum reference block is used for every classical label.

theorem Cslib.Quantum.mutualInformation_classicalQuantumState_eq_coe_sum {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] [DecidableEq ι] (p : PMF X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (x : X), IsDensityMatrix (ρ x)) :

For a classical–quantum state all active blocks have finite divergence to the quantum marginal, so the mutual information is the lift of an ordinary real sum.

theorem Cslib.Quantum.mutualInformation_classicalQuantumState_pure {ι : Type u_1} {X : Type u_2} [Fintype ι] [Fintype X] [DecidableEq X] [DecidableEq ι] (x : X) {ρ : X → Matrix ι ι ℂ} (hρ : ∀ (z : X), IsDensityMatrix (ρ z)) :

A deterministic classical label carries no information about its quantum register.

noncomputable def Cslib.Quantum.quantumMarginalGiven {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [Fintype Y] [DecidableEq Y] (p : PMF (X × Y)) (ρ : X × Y → Matrix ι ι ℂ) (x : X) :
Matrix ι ι ℂ

The quantum marginal after fixing the first of two classical labels.

theorem Cslib.Quantum.isDensityMatrix_quantumMarginalGiven {ι : Type u_1} {X : Type u_2} [Fintype ι] {Y : Type u_3} [Fintype Y] [DecidableEq Y] (p : PMF (X × Y)) {ρ : X × Y → Matrix ι ι ℂ} (hρ : ∀ (z : X × Y), IsDensityMatrix (ρ z)) (x : X) :

Conditional quantum marginals of density matrices are density matrices, including at a zero-mass first label.

Averaging the conditional quantum marginals recovers the original quantum marginal.

The mutual information of two classical labels with a quantum register splits into the information of the first label and the average information of the second label given the first. The conditional law at an unsupported first label is multiplied by zero.