How to Interpret Quantum Measurement Results: Counts, Probabilities, and Expectation Values
quantum measurementprobability distributionsexpectation valuesshotsquantum results

How to Interpret Quantum Measurement Results: Counts, Probabilities, and Expectation Values

AAsk Qubit Editorial Team
2026-12-04
7 min read

Learn to convert quantum counts into probabilities and expectation values, account for shot noise, and report simulator and hardware results clearly.

Raw quantum measurement results are only the starting point. This guide shows how to turn counts into probabilities, convert bitstrings into expectation values, account for shot noise, and report conclusions that remain meaningful when you move from a simulator to real hardware.

Overview

A quantum circuit produces a probability distribution over possible measurement outcomes, but a program usually observes that distribution indirectly by running the circuit repeatedly. Each run is called a shot. The result is commonly returned as a collection of bitstrings and counts, such as {"00": 512, "11": 512} from 1,024 shots.

Counts are not probabilities until they are normalized:

probability of outcome x = count of x / total shots

In the example above, the measured probabilities are 0.5 for 00 and 0.5 for 11. Outcomes that did not appear have an observed frequency of zero, although their underlying probability may not be exactly zero when the experiment uses a finite number of shots.

This distinction matters in quantum algorithms. A sampling algorithm may care about the most frequent bitstring, while a variational algorithm such as VQE generally needs an expectation value for one or more observables. The same measurement record can support both analyses, but the conversion step must be explicit.

Before interpreting any result, record four pieces of context:

  • the circuit and final measurement basis;
  • the number of shots and any random seed used by a simulator;
  • the SDK, backend, and result-object conventions;
  • the bitstring ordering and the mapping between classical bits and qubits.

Bit ordering is a frequent source of apparently incorrect results. Frameworks may display the highest-index classical bit on the left, while a diagram or custom parser may use the opposite convention. Confirm the convention with a simple test circuit before analyzing a larger experiment.

What to track

From counts to probabilities

Suppose a two-qubit circuit returns these counts from 1,000 shots:

BitstringCountObserved probability
006100.610
01900.090
10800.080
112200.220

The probabilities sum to 1.000. You can also calculate a marginal probability. For example, the probability that the left displayed bit is 1 is the frequency of 10 plus 11: (80 + 220) / 1000 = 0.300. The probability that the right displayed bit is 1 is (90 + 220) / 1000 = 0.310. These values describe individual qubits and do not replace the joint distribution, which contains information about correlations.

Expectation values from bitstrings

For a computational-basis measurement of the Pauli-Z observable, assign an eigenvalue of +1 to bit 0 and -1 to bit 1. The estimated expectation value is therefore:

⟨Z⟩ = P(0) - P(1) = 1 - 2P(1)

Using the single-qubit marginal above, if P(1) = 0.300, then ⟨Z⟩ = 1 - 0.600 = 0.400. Equivalently, compute the average of +1 and -1 for every recorded shot.

For a two-qubit observable Z⊗Z, use the product of the two eigenvalues. Even-parity outcomes 00 and 11 contribute +1; odd-parity outcomes 01 and 10 contribute -1. With the table above:

⟨Z⊗Z⟩ = (610 + 220 - 90 - 80) / 1000 = 0.660

This is not the same as multiplying the two individual averages. Correlations can make ⟨Z⊗Z⟩ differ substantially from ⟨Z1⟩⟨Z2⟩.

Common observables and basis changes

ObservableMeasurement approachPer-shot value
ZMeasure directly in the computational basis0 → +1, 1 → -1
XApply a Hadamard gate, then measure in Z0 → +1, 1 → -1
YRotate the Y basis to Z, then measure0 → +1, 1 → -1
Z⊗ZMeasure both qubits in ZProduct of both eigenvalues
X⊗XRotate both qubits to the X basisProduct of both eigenvalues

The exact Y-basis rotation depends on the circuit convention and SDK syntax, so verify it against the framework documentation and a known state. For a Hamiltonian written as a sum of Pauli terms, measure each required basis setting, estimate each term, and combine them with their coefficients. Grouping compatible terms can reduce the number of circuit executions; see the guide to Pauli grouping for quantum measurements.

Shot noise and uncertainty

A shot-based estimate is a sample, not an exact value. For a binary event with estimated probability p and N shots, a basic standard-error estimate is:

SE(p) = sqrt(p(1-p) / N)

For an expectation value whose outcomes are +1 or -1, the same sampling logic gives:

SE(⟨O⟩) = sqrt((1 - ⟨O⟩2) / N)

These formulas describe sampling uncertainty under an independent-shot model. They do not capture hardware drift, readout bias, gate errors, calibration changes, or errors introduced by post-processing. For small samples or probabilities near zero and one, use a binomial confidence interval method rather than relying on a symmetric approximation. When comparing two runs, report the difference together with uncertainty and avoid treating a small numerical change as meaningful without a statistical or experimental reason.

Cadence and checkpoints

Use a repeatable results-review workflow whenever you run a circuit, compare backends, or change an ansatz. A practical checkpoint sequence is:

  1. Validate the circuit. Confirm qubit count, classical-bit mapping, measurement placement, basis rotations, and parameter values. Resource estimates and depth checks are useful before execution; review how to estimate quantum circuit resources and optimize circuit depth and gate count.
  2. Run a deterministic sanity test. Use a basis state or a simple known circuit. If a circuit intended to produce 00 frequently returns another string, investigate ordering, transpilation, reset behavior, and noise before examining the algorithm.
  3. Check normalization. Verify that counts sum to the declared shot count and probabilities sum to approximately one. Account for filtered, discarded, or post-selected shots explicitly.
  4. Compare distributions, not only winners. Track the complete distribution, the top outcomes, marginal probabilities, expectation values, shot count, and uncertainty.
  5. Separate ideal and observed results. Keep statevector or exact simulator probabilities separate from shot-based simulator results and hardware counts. They answer different questions.
  6. Repeat under the same conditions. Repeated runs help distinguish sampling variation from a persistent implementation or hardware effect.

For a monthly or quarterly project review, retain a compact record containing the circuit version, parameter values, backend or simulator, shots, seed where applicable, raw counts, derived probabilities, expectation values, uncertainty estimates, and any mitigation or filtering. A quantum circuit testing and regression checklist can turn these checks into automated assertions.

How to interpret changes

When results change, diagnose the change in layers rather than jumping directly to a hardware explanation.

1. Check conventions and code

A reversed bitstring, missing measurement, incorrect marginalization, or sign error in an observable can make a correct circuit look wrong. Recalculate one small example by hand and compare it with the program output. Framework result objects and measurement APIs can change across releases, so pin or record the SDK version and test the extraction code after upgrades.

2. Check sampling variation

If two runs differ by an amount consistent with their confidence intervals, the difference may be ordinary shot noise. Increasing the shot count narrows sampling uncertainty but does not remove systematic error.

3. Check circuit and parameter changes

Transpilation can alter gate decomposition, routing, and depth. A parameter update can also move the state into a region where an expectation value changes quickly. Compare the compiled circuits and parameter logs, not just the source code.

4. Check simulator versus hardware behavior

An ideal simulator omits device effects by definition. A noisy simulator may model selected effects, while hardware adds calibration, connectivity, scheduling, readout, and environmental factors. Use the quantum simulator comparison guide to keep these execution modes distinct, and use a hardware preflight and results-review checklist before drawing conclusions from a device run.

5. Check mitigation and post-processing

Error mitigation can change counts or expectation values and may increase variance. Store raw and processed results side by side, document the mitigation method and settings, and never present a corrected value without identifying how it was obtained. The quantum error mitigation guide provides a framework for comparing techniques.

When to revisit

Revisit this measurement workflow whenever you change a circuit, observable, SDK, simulator, backend, shot count, or error-mitigation step. For an active project, review results at least monthly or quarterly, depending on how frequently experiments run. A recurring review should answer:

  • Do raw counts still map to the intended qubits and observables?
  • Are probability and expectation-value calculations covered by tests?
  • Are changes larger than expected shot noise?
  • Are simulator and hardware results labeled separately?
  • Have SDK result-object APIs or provider terminology changed?

Use this reporting template for each notable experiment:

Circuit: name, version, qubits, and measurement basis
Execution: simulator or hardware, backend, SDK version, shots, and seed if applicable
Raw result: counts and total shots
Derived result: probabilities, marginals, observables, and confidence intervals
Comparison: ideal expectation, previous run, or reference circuit
Interpretation: observed change, likely cause, and unresolved uncertainty

Keeping this record makes quantum measurement results reproducible and easier to troubleshoot. When a result looks surprising, return first to the raw counts and conventions, then move through uncertainty, compilation, hardware behavior, and mitigation. That sequence turns a plausible-looking output into a defensible conclusion.

Related Topics

#quantum measurement#probability distributions#expectation values#shots#quantum results
A

Ask Qubit Editorial Team

Quantum Computing Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.