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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Bayesian updating for quantum-state hypotheses

Bayesian updating combines prior hypothesis probabilities with Born-rule likelihoods after measurement data are observed.

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

Definition and scope

For classical hypotheses H_k about a quantum preparation, Bayes' rule gives P(H_k|d)=P(d|H_k)P(H_k)/sum_j P(d|H_j)P(H_j). Quantum mechanics supplies the likelihood P(d|H_k) through the measurement model. The posterior is a classical probability distribution over hypotheses; it is not automatically the post-measurement quantum state of the physical system.

Keeping these two kinds of update separate prevents confusion between learning about a preparation and disturbing the measured object.

Fully solved example

A source prepares either |0> or |+> with prior probabilities 0.4 and 0.6. A Z measurement returns 0. The likelihoods are 1 and 1/2, so the total probability of the observed result is 0.4+0.3=0.7. The posterior probabilities are 4/7 for |0> and 3/7 for |+>. One zero result makes |0> more likely but does not prove it.

If the same unknown source setting is used for three independent preparations and all three outcomes are zero, the likelihoods are 1 and 1/8. The posterior for |0> becomes 0.4/(0.4+0.075)=16/19, approximately 0.842105. This multiplication of likelihoods assumes repeated fresh preparations under one fixed hypothesis. Repeatedly measuring the same already projected qubit is a different experiment and would not provide the same evidence.

Limits and decisions

Posterior values depend on priors and the likelihood model. A misspecified readout model can yield confident but wrong conclusions. A decision rule should also state costs: minimizing average classification error differs from avoiding false positives or allowing an inconclusive outcome.

Bayesian credible intervals and frequentist confidence intervals have different definitions. Neither should be presented as a guarantee that a model is correct.

A weak measurement updates both the hypothesis and the candidate states

Consider two equally likely hypotheses about one qubit: H₀ prepares |0⟩ and H₁ prepares |+i⟩ = (|0⟩+i|1⟩)/√2. A noisy Z measurement has a positive outcome effect E_+ = diag(0.8,0.2). Specify its square-root instrument, M_+ = diag(√0.8,√0.2), so that the physical state update is determined as well as the likelihood.

The positive outcome has likelihood 0.8 under H₀ and 0.5 under H₁. Its total probability is 0.65. Bayes' rule gives posterior weights 8/13 and 5/13. The H₀ candidate remains |0⟩, while the H₁ candidate becomes √0.8|0⟩+i√0.2|1⟩ after normalization.

The second candidate's Y expectation has changed from one to 0.8. Using the posterior weights with the original, unmodified candidate vectors would therefore give the wrong predictions for a later measurement on this same physical qubit. Updating a classical belief does not undo the disturbance specified by the instrument.

The averaged conditional state agrees with the direct instrument calculation

Before measurement, the averaged state is ρ = [[3/4,−i/4],[i/4,1/4]]. Applying M_+ on both sides and dividing by 0.65 gives ρ_+ = [[12/13,−2i/13],[2i/13,1/13]]. The same matrix is obtained by mixing the two updated candidate density operators with posterior weights 8/13 and 5/13.

This equality follows generally. If ρ = Σ_k π_kρ_k and outcome d has operation J_d, then its probability is p_d = Σ_k π_k tr J_d(ρ_k). The conditional state is J_d(ρ)/p_d. By linearity, it also equals the sum of the normalized candidate outputs weighted by their Bayesian posteriors. Candidates with zero likelihood contribute no conditional branch.

The normalization changes mixture weights because different hypotheses can have different acceptance probabilities. Keeping the old weights after conditioning would violate this identity. This is one reason the normalized conditional update is not itself a linear trace-preserving map on arbitrary inputs.

The effect alone cannot settle the sequential inference. Replacing M_+ by H M_+, where H is the Hadamard unitary, leaves E_+ unchanged. The first posterior remains 8/13, but the updated H₁ state's Y expectation becomes −0.8. Its later positive-Y likelihood is then 0.1 instead of 0.9. The full record has likelihoods 0.4 and 0.05, producing H₀ posterior 8/9. An instrument specification is therefore part of the likelihood model for a retained system.

A later incompatible measurement supplies a complete sequential example

Now measure Y sharply on the retained qubit and obtain its positive outcome. The updated H₀ candidate has likelihood one-half for this event. The updated H₁ candidate has likelihood (1+0.8)/2 = 0.9. Their unnormalized posterior weights are therefore 4/13 and 4.5/13, yielding posterior probability 8/17 for H₀ and 9/17 for H₁.

Equivalently, the full two-outcome record has likelihood 0.8·0.5 = 0.4 under H₀ and 0.5·0.9 = 0.45 under H₁. Multiplying by the equal priors gives total record probability 0.425 and the same posterior ratio. This calculation uses a product of conditional likelihoods, not two likelihoods computed from the original preparations.

If the H₁ state were incorrectly left as |+i⟩ after the first measurement, its second likelihood would be one and the inferred H₀ posterior would be 4/9. The difference from 8/17 is entirely due to the omitted physical update. The first record favored H₀, while the second record shifted the balance slightly toward H₁.

Repeated measurements on one object differ from fresh preparations

For two consecutive positive outcomes of the noisy Z instrument on the same qubit, the branch operator is M_+². Under H₀ the record probability is 0.8² = 0.64. Under H₁ it is (0.8²+0.2²)/2 = 0.34. With equal priors, the H₀ posterior is 0.64/(0.64+0.34) = 32/49.

If two fresh states are instead prepared under one fixed unknown source hypothesis and each is measured once, the H₁ record probability is 0.5² = 0.25. The H₀ posterior becomes 0.64/(0.64+0.25) = 64/89. These are two different sampling models, with different likelihoods despite using the same effect and observing the same sequence of classical signs.

A third model redraws the hypothesis independently for every preparation. Then a record about one draw does not automatically update the label of a later independent draw. The latent variable that remains fixed, the objects that are freshly prepared, and the retained quantum systems must all be identified before multiplying likelihoods.

Posterior inference and a costly decision remain separate

After the mixed Z-then-Y record, H₁ has the larger posterior, 9/17. If all wrong guesses have equal cost, selecting H₁ minimizes expected error. Suppose instead that guessing H₁ when H₀ is true costs four units, while guessing H₀ when H₁ is true costs one unit, with zero cost for correct decisions.

The posterior risk of choosing H₀ is then 9/17, whereas choosing H₁ has risk 4·8/17 = 32/17. The preferred action is H₀ despite its smaller posterior probability. The inference calculation has not changed; the loss function has. An optimal decision is defined relative to both a posterior and a specified objective.

The hypothesis weights describe a classical label. Each candidate density operator changes with the measurement record and, after normalization, describes the next quantum outcome. The likelihood for repeatedly measuring the same specimen can differ from that for repeated fresh preparations.

Sources

  • 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.

  • Stephen M. Barnett, Sarah Croke · · Review article · Peer-reviewed publication recorded · arXiv
    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.

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Selected text checked ·

    PDF title page and selected measurement, channel, instrument, unitality, and damping sections inspected. Corrects the inherited version date 2015-07; original development dates of the underlying theory are not changed. Full-text jump/no-jump branches and their normalization, pages 35–37 around equations (3.130)–(3.139), were also inspected for the ideally monitored waiting-time definition.

    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

    The Theory of Quantum Information: Chapter 2, Basic notions of quantum information
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; selected state, measurement, channel and dilation definitions used as formalism background. Individual elementary extensions and numerical examples were constructed independently.

    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

    The Theory of Quantum Information: Chapter 3, Similarity and distance among states and channels
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; binary discrimination and weighted-difference trace norm formulation inspected. No claim that every distance discussed in the extensions has a direct experimental implementation.

    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.