Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum relative entropy and data processing

Quantum relative entropy compares two states through Tr[rho(log rho minus log sigma)] and cannot increase under the same quantum channel applied to both.

Edition released Coverage: Overview · Technical · Research
On this page

Definition and support condition

Quantum relative entropy is D(rho||sigma)=Tr[rho(log2 rho-log2 sigma)] when the support of rho is contained in the support of sigma; otherwise it is infinite. It is nonnegative and equals zero only when the two states are equal. It is generally asymmetric and is not a metric: it does not obey all the properties of an ordinary distance.

The support condition matters. If sigma assigns zero weight to a direction that rho can occupy, no finite logarithmic penalty describes that mismatch. Writing a finite value by casually replacing zero eigenvalues with tiny numbers changes the question and must be disclosed.

Fully solved commuting example

Let rho=diag(3/4,1/4) and sigma=I/2. Since the states commute, the calculation reduces to classical relative entropy: D=(3/4)log2(3/2)+(1/4)log2(1/2), approximately 0.188722 bits. This equals 1-S(rho).

Reverse the order: D(sigma||rho)=(1/2)log2(2/3)+(1/2)log2(2), approximately 0.207519 bits. The unequal numbers explicitly demonstrate asymmetry. For rho=|0><0| and sigma=|1><1|, the supports are disjoint and D is infinite.

Data-processing inequality

For a quantum channel E, D(E(rho)||E(sigma))<=D(rho||sigma). An identical physical processing step cannot improve this distinguishability measure. Consider a complete reset E(tau)=|0><0| for every input tau. Both outputs are equal, so their relative entropy is zero, satisfying the inequality. A dephasing channel can also remove distinctions stored only in coherence.

The theorem compares the same channel acting on both hypotheses. Applying different transformations depending on the unknown hypothesis would assume information not available to the discrimination task. Conditioning on a rare successful branch also requires accounting for success probabilities rather than treating the branch as an ordinary channel.

Why it matters

Relative entropy appears in hypothesis testing, thermodynamics, correlation measures, and resource theories. Quantum mutual information is a relative entropy to the product of marginals. These uses are mathematically connected, but operational statements need the corresponding asymptotic, energy, or allowed-operation assumptions.

Limitations

Noncommuting logarithms are matrix functions defined spectrally; they are not obtained by taking the logarithm of each matrix entry. Numerical evaluation near zero eigenvalues can be unstable. A report must distinguish regularization from an exact finite value.

A noncommuting example requires an operator logarithm

Let ρ = |+⟩⟨+| and σ = diag(3/4,1/4). The states do not commute. Since ρ is pure, Tr(ρlog₂ρ) is zero using the support convention. The other term is the expectation of log₂σ in |+⟩, so D(ρ||σ) = −[log₂(3/4)+log₂(1/4)]/2 = 2−(log₂3)/2, approximately 1.207519 bits.

The calculation uses a spectral matrix logarithm. It does not take entrywise logarithms of ρ or form an entrywise ratio ρ/σ. Such operations would be undefined on zero or complex off-diagonal entries and would not reproduce quantum relative entropy. The noncommuting expression is defined through separate operator logarithms and a trace, with support conditions handled before evaluating divergent terms.

Now dephase both states in the computational basis. The first becomes I₂/2 and the second stays σ. The new relative entropy is 1−(log₂3)/2, approximately 0.207519. The processing has removed exactly one bit of relative entropy. This does not mean that an actual one-bit classical message was extracted; it quantifies a loss of distinguishability in the specified relative-entropy measure.

A dephasing decomposition with an exact remainder

Let Δ dephase in a fixed basis, and assume σ is diagonal in that basis with support sufficient for the expressions below. Since logσ is also diagonal, Tr(ρlogσ) = Tr(Δρ logσ). Likewise log(Δρ) is diagonal on its support, so Tr(ρlog(Δρ)) = Tr(Δρ log(Δρ)). Adding and subtracting that latter term yields D(ρ||σ) = D(ρ||Δρ)+D(Δρ||σ).

The first term equals S(Δρ)−S(ρ), measuring the entropy generated by erasing the specified coherences. The second term compares the resulting diagonal populations with σ. In the preceding example, these terms are one and approximately 0.207519. The identity separates a coherence contribution from a population contribution relative to a diagonal reference.

This decomposition is basis dependent because Δ is basis dependent. It also requires the reference to be fixed by Δ; for a general nondiagonal σ, the same algebra no longer removes the cross term. The formula should not be used as a universal Pythagorean identity for arbitrary pairs of quantum states and arbitrary channels.

Small eigenvalues and support mismatch

Take ρ = |1⟩⟨1| and σ_ε = diag(1−ε,ε), with ε positive. Then D(ρ||σ_ε) = −log₂ε. At ε = 10⁻⁶ this is approximately 19.931569 bits. At ε = 0 it becomes infinite because the support of ρ is not contained in the support of σ. The divergence is a precise support statement, not a numerical failure that should automatically be rounded away.

Replacing a zero eigenvalue by a small positive regularizer changes the reference hypothesis. It may be useful in a statistical model with explicit uncertainty, but the resulting finite number is relative entropy to the modified state. Its dependence on the regularization scale must remain visible. A small absolute perturbation in a nearly zero reference eigenvalue can produce a large change in relative entropy.

By contrast, a zero eigenvalue of ρ contributes zero to Tr(ρlogρ) under the continuous convention 0log0 = 0. The two kinds of zero have different roles because the definition is asymmetric. Interchanging ρ and σ can change both the value and whether it is finite.

The reference state fixes the direction of statistical comparison

For a maximally mixed reference in dimension d, log₂(I_d/d) = −log₂d times the identity, and D(ρ||I_d/d) = log₂d−S(ρ). A pure qubit is therefore one bit from the maximally mixed reference in this directed measure. Reversing the arguments gives infinite relative entropy, because the maximally mixed state has weight outside the support of a pure reference.

This stark asymmetry is compatible with ordinary symmetric distances being finite. Trace distance between the same pure qubit and I₂/2 is only one-half in either order. Relative entropy is not a metric and is not obliged to agree with that symmetry. The quantity is useful because its directed reference structure supports statistical and thermodynamic comparisons, but the names of the two arguments must be retained whenever a numerical value is reported.

Keeping an outcome flag gives the correct selective data-processing statement

Apply an instrument and retain its classical outcome k. For input ρ, write the output as a block state with probabilities pₖ and normalized conditional states ρₖ. For input σ, use qₖ and σₖ. Relative entropy of the flagged states decomposes exactly as D(p||q)+ΣₖpₖD(ρₖ||σₖ), with the usual support conventions.

Data processing bounds this entire expression by D(ρ||σ). The first term measures information in the outcome probabilities; the second measures the average information remaining within each branch. A rare branch may have large conditional relative entropy without violating the bound, because its probability and the other branches remain part of the accounting. Omitting the flag and comparing only accepted normalized states is a different task.

For ρ = diag(0.9,0.1), σ = diag(0.8,0.2), and a computational-basis measurement, the conditional output states are identical under the two hypotheses whenever the same outcome occurs. Every conditional term is zero. All relative entropy is carried by the flag distribution: 0.9log₂(0.9/0.8)+0.1log₂(0.1/0.2), approximately 0.052933 bits. The measurement loses no information because the original states already commute in that basis.

For the noncommuting example, the entropy splits into a one-bit coherence term and a diagonal comparison term. The divergence of −log₂ε as ε approaches zero tracks the support mismatch. The logarithm base, the order of the two states, and the particular regularization all determine the value.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 5: Quantum entropy and source coding
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 5, Quantum entropy and source coding
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; logarithm-base convention and entropy definitions inspected. Constructed qutrit-spectrum entropy comparison independently recomputed. Additional selected scope checked: section 5.3.2 and Theorem 5.44 source-compression model and typical subspace, plus Holevo information and Theorem 5.49 relative-entropy proof.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.