Skip to content

Hypothesis Testing and Asymptotic Distinguishability

Quantum hypothesis testing asks a concrete question: which of two declared state preparations produced the data? The answer depends not only on the states, but also on the allowed observable algebra, the tolerated false-alarm probability, the number and independence of preparations, and any detector or energy constraint. Relative entropy controls an important many-copy limit; it is not itself a one-shot error probability.

Required background. Start from Relative Entropy for QFT States.

The chapter’s task-comparison table separates asymmetric testing from fidelity, bounded-observable bias, and channel discrimination. The validity map records the resources that must remain fixed.

Let ρ\rho be the null hypothesis and σ\sigma the alternative. A two-outcome effect 0≤Q≤I0\leq Q\leq I means “accept ρ\rho” on outcome QQ and “accept σ\sigma” on outcome I−QI-Q. The two errors are

α(Q)=Tr⁡[(I−Q)ρ],β(Q)=Tr⁡(Qσ).\alpha(Q)=\operatorname{Tr}[(I-Q)\rho], \qquad \beta(Q)=\operatorname{Tr}(Q\sigma).

Thus α\alpha is the probability of rejecting ρ\rho when ρ\rho is true, while β\beta is the probability of accepting ρ\rho when σ\sigma is true. For a fixed tolerance 0<ε<10<\varepsilon<1, set

βε(ρ∥σ)=inf⁡{Tr⁡(Qσ):0≤Q≤I,Tr⁡(Qρ)≥1−ε},\beta_\varepsilon(\rho\Vert\sigma) =\inf\left\{ \operatorname{Tr}(Q\sigma): 0\leq Q\leq I, \operatorname{Tr}(Q\rho)\geq1-\varepsilon \right\},

and define the hypothesis-testing divergence, in the site’s natural-log convention, by

DHε(ρ∥σ)=−log⁡βε(ρ∥σ).D_H^\varepsilon(\rho\Vert\sigma) =-\log\beta_\varepsilon(\rho\Vert\sigma).

The quantum Neyman–Pearson test is a threshold effect built from the positive part of ρ−etσ\rho-e^t\sigma; randomization on the zero eigenspace may be needed to attain the prescribed ε\varepsilon. The definition itself is more general than a projective measurement and already includes that boundary randomization.

For normal states ω,φ\omega,\varphi on a von Neumann algebra M\mathfrak M, replace the traces by

αω(Q)=ω(I−Q),βφ(Q)=φ(Q),Q∈M.\alpha_\omega(Q)=\omega(I-Q), \qquad \beta_\varphi(Q)=\varphi(Q), \qquad Q\in\mathfrak M.

The choice of M\mathfrak M is operational: it is exactly the collection of bounded observables from which the test may be assembled. Restricting to a detector subalgebra can only make the optimal test worse. General von Neumann-algebra versions of the key testing lemma and Stein asymptotics are established by Pautrat and Wang 2023, Theorem 1, Remark 2, and Theorems 4–6, pp. 2325–2335.

One normalization check prevents a common misconception. If ρ=σ\rho=\sigma, then β(Q)=1−α(Q)\beta(Q)=1-\alpha(Q), so

DHε(ρ∥ρ)=−log⁡(1−ε),D_H^\varepsilon(\rho\Vert\rho)=-\log(1-\varepsilon),

not zero. The one-shot quantity includes the allowed error budget; its per-copy rate is what vanishes.

Hypothesis-testing divergence is one member of a task-dependent one-shot family. Two other relative quantities are

Dmax⁡(ρ∥σ)=inf⁡{λ∈R:ρ≤eλσ},Dmin⁡(ρ∥σ)=−log⁡Tr⁡(Πρσ),\begin{aligned} D_{\max}(\rho\Vert\sigma) &=\inf\{\lambda\in\mathbb R:\rho\leq e^\lambda\sigma\},\\ D_{\min}(\rho\Vert\sigma) &=-\log\operatorname{Tr}(\Pi_\rho\sigma), \end{aligned}

where Πρ\Pi_\rho is the support projection of ρ\rho. With the definitions above,

DH0(ρ∥σ)=Dmin⁡(ρ∥σ).D_H^0(\rho\Vert\sigma)=D_{\min}(\rho\Vert\sigma).

Smoothing replaces ρ\rho by nearby subnormalized states before optimizing. For positive operators of trace at most one, the generalized root fidelity is

F‾(ρ~,ρ)=∥ρ~ρ∥1+(1−Tr⁡ρ~)(1−Tr⁡ρ).\overline F(\widetilde\rho,\rho) = \left\lVert\sqrt{\widetilde\rho}\sqrt\rho\right\rVert_1 +\sqrt{ (1-\operatorname{Tr}\widetilde\rho) (1-\operatorname{Tr}\rho) }.

When ρ\rho is normalized, the second term vanishes. After declaring the purified distance

P(ρ~,ρ)=1−F‾(ρ~,ρ)2,P(\widetilde\rho,\rho) =\sqrt{1-\overline F(\widetilde\rho,\rho)^2},

one may define

Dmax⁡ε,P(ρ∥σ)=inf⁡ρ~: P(ρ~,ρ)≤εDmax⁡(ρ~∥σ).D_{\max}^{\varepsilon,P}(\rho\Vert\sigma) =\inf_{\widetilde\rho:\,P(\widetilde\rho,\rho)\leq\varepsilon} D_{\max}(\widetilde\rho\Vert\sigma).

The superscript PP is useful here because a trace-distance ball with the same numerical radius is a different set. Normalized versus subnormalized smoothing also changes boundary terms. Relative Dmin⁡/max⁡D_{\min/\max} should not be conflated with conditional Hmin⁡/max⁡H_{\min/\max}, whose optimizations and operational tasks are different. Datta 2009, Definitions 1–2 and 4, pp. 2818 and 2823 uses base-two logarithms and a trace-norm smoothing convention; Tomamichel and Hayashi 2013, Definitions 2–5 and Eq. (6), pp. 7697–7700 uses purified-distance smoothing. Every imported numerical formula must translate both choices.

The structure map shows why these quantities should not be merged with symmetric overlap or recovery measures.

Binary hypothesis testing branches from relative entropy only after the test algebra, tolerated error, and independent-copy resource are specified; fidelity, correlation, and recovery answer different questions.

Hypothesis-testing divergence is operational for a declared effect algebra and error tolerance. Its relative-entropy limit requires an independent-copy experiment; overlap, correlation, and recovery branches have different inputs and conclusions. Schematic.

An iid experiment with nn preparations uses

ρn=ρ⊗n,σn=σ⊗n,\rho_n=\rho^{\otimes n}, \qquad \sigma_n=\sigma^{\otimes n},

and permits a declared class of effects on the product algebra. A collective effect on all copies, a product of one-copy effects, and an adaptive sequence are different measurement resources. The usual quantum Stein and Chernoff theorems optimize over unrestricted collective effects.

This tensor power is a preparation model, not a geometric fact. Spacelike-separated regions of one field state are generally correlated, so their joint restriction is not automatically ω⊗n\omega^{\otimes n}. Enlarging a lattice region, repeating one detector on freshly prepared systems, and measuring nn subsystems of one many-body state define three different asymptotic sequences. The QFT-facing distinctions and collective-measurement protocol are developed in de Boer et al. 2021, §§ 2.2, 4, and 7–8.

For a continuum claim, report:

  • how the independent preparations are produced;
  • the product algebra and admissible collective tests;
  • the state order ρ\rho versus σ\sigma and the support condition;
  • the fixed ε\varepsilon, smoothing convention, detector support, and energy set; and
  • the order of the limits in copy number, volume, and ultraviolet cutoff.

Without those data, “many measurements” does not identify a theorem.

Stein’s threshold and the second-order term

Section titled “Stein’s threshold and the second-order term”

Assume finite-dimensional density operators with supp⁡ρ⊆supp⁡σ\operatorname{supp}\rho\subseteq\operatorname{supp}\sigma. For a sequence of tests, call

r=lim inf⁡n→∞−1nlog⁡βnr=\liminf_{n\to\infty}-\frac1n\log\beta_n

the achieved type-II error exponent. Every rate r<D(ρ∥σ)r<D(\rho\Vert\sigma) is achievable with αn→0\alpha_n\to0, while demanding a rate r>D(ρ∥σ)r>D(\rho\Vert\sigma) forces αn→1\alpha_n\to1. This direct/strong-converse threshold is quantum Stein’s lemma; see Ogawa and Nagaoka 2000, Theorems 2–3 and Corollary 1, pp. 2429–2432.

The fluctuations are governed by the relative-entropy variance

V(ρ∥σ)=Tr⁡ρ(log⁡ρ−log⁡σ−D(ρ∥σ))2.V(\rho\Vert\sigma) =\operatorname{Tr}\rho \left( \log\rho-\log\sigma-D(\rho\Vert\sigma) \right)^2.

For fixed 0<ε<10<\varepsilon<1 and nondegenerate 0<V(ρ∥σ)<∞0<V(\rho\Vert\sigma)<\infty,

DHε(ρ⊗n∥σ⊗n)=nD(ρ∥σ)+nV(ρ∥σ) Φ−1(ε)+O(log⁡n),D_H^\varepsilon(\rho^{\otimes n}\Vert\sigma^{\otimes n}) =nD(\rho\Vert\sigma) +\sqrt{nV(\rho\Vert\sigma)}\,\Phi^{-1}(\varepsilon) +O(\log n),

where Φ\Phi is the standard-normal cumulative distribution. This is Li 2014, Theorem 2 and Eqs. (1)–(9), pp. 175–179; Theorem 5, pp. 185–186. If ε<1/2\varepsilon<1/2, then Φ−1(ε)<0\Phi^{-1}(\varepsilon)<0, so the second-order correction lowers the finite-copy exponent. The formula is an asymptotic expansion, not a finite-nn upper or lower bound. The case V=0V=0 is degenerate and requires a separate remainder analysis.

Support failure is not a small correction. Let PP project onto ker⁡σ\ker\sigma and suppose p=Tr⁡(Pρ)>0p=\operatorname{Tr}(P\rho)>0. The test

Qn=I−(I−P)⊗nQ_n=I-(I-P)^{\otimes n}

accepts ρ\rho if any copy lands in that singular sector. It has βn=0\beta_n=0 and αn=(1−p)n\alpha_n=(1-p)^n. Hence, for every fixed ε>0\varepsilon>0, DHε=+∞D_H^\varepsilon=+\infty for all sufficiently large nn; a finite D,VD,V expansion is then inapplicable.

Consider one normalized bosonic wavepacket mode of a finite-volume regulated free field,

[a,a†]=1,q=a+a†2,H=ω(a†a+12).[a,a^\dagger]=1, \qquad q=\frac{a+a^\dagger}{\sqrt2}, \qquad H=\omega\left(a^\dagger a+\frac12\right).

Let τN\tau_N be the thermal state of mean occupation N=1/2N=1/2, and compare

σ=τN,ρ=D(1)τND(1)†.\sigma=\tau_N, \qquad \rho=D(1)\tau_ND(1)^\dagger.

Both are faithful Gaussian states with finite energy:

⟨H⟩σ=ω,⟨H⟩ρ=2ω.\langle H\rangle_\sigma=\omega, \qquad \langle H\rangle_\rho=2\omega.

An ideal homodyne detector for the smeared quadrature qq produces the classical laws

q∣ρ∼N(2,1),q∣σ∼N(0,1).q\mid\rho\sim\mathcal N(\sqrt2,1), \qquad q\mid\sigma\sim\mathcal N(0,1).

The detector-restricted log-likelihood therefore has

Dq=1,Vq=2.D_q=1, \qquad V_q=2.

The unrestricted quantum pair retains more information:

D(ρ∥σ)=log⁡3,V(ρ∥σ)=2(log⁡3)2.D(\rho\Vert\sigma)=\log3, \qquad V(\rho\Vert\sigma)=2(\log3)^2.

This strict gap is data processing in numbers: measuring only qq discards part of the state distinguishability.

For nn independent preparations and ε=0.1\varepsilon=0.1, accepting ρ\rho above the Gaussian sample-mean threshold gives the exact detector-restricted error

βn,q0.1=Φ ⁣[−2n−Φ−1(0.1)].\beta_{n,q}^{0.1} =\Phi\!\left[-\sqrt{2n}-\Phi^{-1}(0.1)\right].

The comparison with nDq=nnD_q=n and nDq+nVq Φ−1(0.1)nD_q+\sqrt{nV_q}\,\Phi^{-1}(0.1) is:

Copies nnExact βn,q0.1\beta_{n,q}^{0.1}Exact DH,q0.1D_{H,q}^{0.1}First orderSecond order
10.447230350.804681491−0.81238760
40.0609466282.7977567540.37522479
166.0632046×10−66.0632046\times10^{-6}12.0132721168.75044958
645.5042538×10−245.5042538\times10^{-24}53.55652106449.5008992

The negative n=1n=1 second-order value is not a paradox: it visibly demonstrates that an asymptotic truncation need not be a valid one-copy bound. The machine-readable benchmark freezes the state order, covariance and energy conventions, detector algebra, thresholds, both errors, and all first- and second-order values.

Detector, smoothing, and ultraviolet failures

Section titled “Detector, smoothing, and ultraviolet failures”

Rotate the detector. Measuring the quadrature orthogonal to the real displacement gives identical outcome laws. The full states still differ, but the detector sees DHε=−log⁡(1−ε)D_H^\varepsilon=-\log(1-\varepsilon) for every nn, so its per-copy exponent tends to zero.

Change the smoothing ball. A purified-distance radius and a trace-distance radius with the same numeral do not select the same nearby states. Reusing a smooth-entropy formula after silently changing the metric changes the optimization problem.

Keep only a mean-energy bound. Let diagonal oscillator distributions satisfy

pm∝(m+1)−3,qm∝pme−m.p_m\propto(m+1)^{-3}, \qquad q_m\propto p_m e^{-m}.

Both have finite mean energy, and log⁡(pm/qm)=m+constant\log(p_m/q_m)=m+\text{constant} has a finite expectation under pp. Its variance is infinite because ∑mm2pm\sum_m m^2p_m diverges. Thus finite mean energy and finite relative entropy do not by themselves license the n\sqrt n expansion.

Move the cutoff with nn. A detector support, lattice spacing, or ultraviolet projection that changes along the sequence defines a new sequence of tests and states. Its effect must be controlled by a theorem; it cannot be hidden inside the O(log⁡n)O(\log n) remainder.

For the operator-algebraic divergence hierarchy behind these restrictions, continue to the rigorous noncommutative treatment. The next pages compare fidelity and Chernoff testing and operational norm bounds.

Calling repeated regions independent copies. Correlated subregions of one field state do not form an iid tensor power. Declare the preparation channel that produces independent replicas.

Treating the second-order expression as a bound. Its O(log⁡n)O(\log n) remainder is uncontrolled until a finite-blocklength theorem supplies constants. At small nn, the truncated expression can even be negative.

Forgetting the state order. Stein testing is asymmetric: swapping ρ\rho and σ\sigma changes the relative entropy, variance, support branch, and meaning of the two errors.

Assuming finite energy implies finite variance. A first moment of HH need not control the second moment of the log-likelihood operator. Check the moment used by the theorem, not a nearby physical quantity.

1. Error tolerance and min-relative entropy

Section titled “1. Error tolerance and min-relative entropy”

Show that DHε(ρ∥σ)D_H^\varepsilon(\rho\Vert\sigma) is nondecreasing in ε\varepsilon and that DH0=Dmin⁡D_H^0=D_{\min} with the definitions on this page.

Solution

If ε2≥ε1\varepsilon_2\geq\varepsilon_1, every test feasible at ε1\varepsilon_1 is feasible at ε2\varepsilon_2. The infimum of β\beta can therefore only decrease, so its negative logarithm can only increase.

At ε=0\varepsilon=0, feasibility requires Tr⁡(Qρ)=1\operatorname{Tr}(Q\rho)=1. Because 0≤Q≤I0\leq Q\leq I, this forces QQ to act as the identity on supp⁡ρ\operatorname{supp}\rho, hence Q≥ΠρQ\geq\Pi_\rho. The smallest type-II error is attained by Q=ΠρQ=\Pi_\rho:

β0=Tr⁡(Πρσ),DH0=−log⁡Tr⁡(Πρσ)=Dmin⁡.\beta_0=\operatorname{Tr}(\Pi_\rho\sigma), \qquad D_H^0=-\log\operatorname{Tr}(\Pi_\rho\sigma)=D_{\min}.

For p=N(μ,v)p=\mathcal N(\mu,v) and q=N(0,v)q=\mathcal N(0,v) with μ>0\mu>0, derive the likelihood-ratio threshold at type-I tolerance ε\varepsilon. Show that

βnε=Φ ⁣(−n μv−Φ−1(ε)).\beta_n^\varepsilon =\Phi\!\left(-\sqrt n\,\frac{\mu}{\sqrt v} -\Phi^{-1}(\varepsilon)\right).

Evaluate it for μ=2\mu=\sqrt2, v=1v=1, n=4n=4, and ε=0.1\varepsilon=0.1.

Solution

The log-likelihood ratio is affine and increasing in the sample mean qˉ\bar q. Accept pp when qˉ≥c\bar q\geq c. Under pp, qˉ∼N(μ,v/n)\bar q\sim\mathcal N(\mu,v/n), so

ε=Pr⁡p(qˉ<c)=Φ ⁣(nv(c−μ)),\varepsilon =\Pr_p(\bar q<c) =\Phi\!\left(\sqrt{\frac nv}(c-\mu)\right),

which gives c=μ+v/n Φ−1(ε)c=\mu+\sqrt{v/n}\,\Phi^{-1}(\varepsilon). Under qq,

βnε=Pr⁡q(qˉ≥c)=Φ ⁣(−nv c),\beta_n^\varepsilon =\Pr_q(\bar q\geq c) =\Phi\!\left(-\sqrt{\frac nv}\,c\right),

and substitution yields the result. For the stated values, c≃0.77343778c\simeq0.77343778, β40.1≃0.060946628\beta_4^{0.1}\simeq0.060946628, and DH,q0.1≃2.79775675D_{H,q}^{0.1}\simeq2.79775675 nats.

Let PP project onto ker⁡σ\ker\sigma and let p=Tr⁡(Pρ)>0p=\operatorname{Tr}(P\rho)>0. Verify the errors of Qn=I−(I−P)⊗nQ_n=I-(I-P)^{\otimes n} and find the smallest nn for which it is feasible at tolerance ε\varepsilon.

Solution

Because σ\sigma has no support in PP,

βn=Tr⁡(Qnσ⊗n)=0.\beta_n=\operatorname{Tr}(Q_n\sigma^{\otimes n})=0.

Under ρ⊗n\rho^{\otimes n}, the test rejects ρ\rho only if no copy lands in PP, so

αn=(1−p)n.\alpha_n=(1-p)^n.

It is feasible when (1−p)n≤ε(1-p)^n\leq\varepsilon, equivalently

n≥log⁡εlog⁡(1−p).n\geq \frac{\log\varepsilon}{\log(1-p)}.

Taking the ceiling gives the smallest integer nn. At and above that value, DHε=+∞D_H^\varepsilon=+\infty.

Suppose the two measured outcome distributions are identical on every copy. Prove that the optimal nn-copy hypothesis-testing divergence is −log⁡(1−ε)-\log(1-\varepsilon) and explain why this is compatible with a zero Stein rate.

Solution

For identical outcome laws, every test satisfies β=1−α\beta=1-\alpha. The constraint α≤ε\alpha\leq\varepsilon implies β≥1−ε\beta\geq1-\varepsilon, and equality is reached by accepting the null with constant probability 1−ε1-\varepsilon. Hence

DHε=−log⁡(1−ε)D_H^\varepsilon=-\log(1-\varepsilon)

for every nn. Dividing by nn sends this fixed normalization term to zero, so the asymptotic rate vanishes even though the one-shot divergence does not.

  • Datta, Nilanjana. “Min- and Max-Relative Entropies and a New Entanglement Monotone.” IEEE Transactions on Information Theory 55, no. 6 (2009): 2816–2826. DOI. Open preprint.
  • de Boer, Jan, Victor Godet, Jani Kastikainen, and Esko Keski-Vakkuri. “Quantum Hypothesis Testing in Many-Body Systems.” SciPost Physics Core 4 (2021): 019. DOI. Open preprint.
  • Li, Ke. “Second-Order Asymptotics for Quantum Hypothesis Testing.” The Annals of Statistics 42, no. 1 (2014): 171–189. DOI. Open preprint.
  • Ogawa, Tomohiro, and Hiroshi Nagaoka. “Strong Converse and Stein’s Lemma in Quantum Hypothesis Testing.” IEEE Transactions on Information Theory 46, no. 7 (2000): 2428–2433. DOI. Open preprint.
  • Pautrat, Yan, and Simeng Wang. “Ke Li’s Lemma for Quantum Hypothesis Testing in General von Neumann Algebras.” Annales Henri Poincaré 24 (2023): 2323–2339. DOI. Open preprint.
  • Tomamichel, Marco, and Masahito Hayashi. “A Hierarchy of Information Quantities for Finite Block Length Analysis of Quantum Tasks.” IEEE Transactions on Information Theory 59, no. 11 (2013): 7693–7710. DOI. Open preprint.

Original QFT.org content:CC BY 4.0, unless an item supplies different terms. Third-party material retains its own terms.