Why Benchmarking Is Hard
A quantum-computer benchmark measures performance on a specified set of tasks under specified conditions. Its result is useful when those tasks resemble the question we want to answer. A good gate score does not by itself predict an algorithm’s accuracy, and a good conditional success rate does not tell us how long an accepted result takes.
The main difficulty is connecting a measured number to a claim about future behavior. This page develops that connection through examples of task selection, coherent errors, sampling, drift, and verification.
Helpful background. Metrics for Quantum Hardware defines fidelity and performance quantities; Noise in Quantum Information distinguishes error mechanisms, and the Circuit Model describes the operations being tested.
Performance depends on the task
Section titled “Performance depends on the task”Suppose two processors have these success probabilities:
| Task family | Processor A | Processor B |
|---|---|---|
| Short local circuits | 0.99 | 0.94 |
| Long circuits with distant interactions | 0.60 | 0.85 |
A benchmark consisting mostly of the first family favors A; one emphasizing the second favors B. Neither ranking is a universal property of the devices.
Let denote a task, its implementation choices, and the operating time. If measures output quality, the benchmark average is
The distribution specifies which tasks count and how often. Changing it changes the question. The same applies to changing the qubit subset, compiler, required accuracy, or allowed mitigation.
Blume-Kohout and Young’s volumetric framework makes this dependence visible by testing circuit width and depth separately. A width–depth performance plot can reveal a preference for narrow deep circuits or wide shallow ones that a single score hides. An application still needs tests of its own structure.
Interpret the scale too. A score doubles when the largest passing integer size increases by one. This is how a quantum-volume score is constructed; it does not imply that applications run twice as fast. See Quantum Volume and Application Benchmarks and the protocol of Cross and colleagues.
Measurements combine preparation, operations, and readout
Section titled “Measurements combine preparation, operations, and readout”For a prepared state , implemented circuit , and measurement effect , the observed probability is
A discrepancy can come from any of these ingredients. Even a single observed flip rate does not generally identify its cause. For independent binary flips during preparation and readout, with probabilities and ,
Preparation error with perfect readout and perfect preparation with readout error give the same observed rate. More repetitions of that one experiment cannot distinguish them. Additional trusted operations, measurement settings, or model assumptions are needed.
State Tomography reconstructs a state under a measurement model; Process Tomography also depends on preparation assumptions. Joint estimation has its own identifiability and gauge issues.
Standard Clifford Randomized Benchmarking uses random sequences and their inverse. With stationary, gate-independent Markovian errors, its sequence-averaged survival has the form
Preparation and measurement affect the coefficients in this model, while the decay parameter has a separate interpretation. This does not make every preparation or measurement error harmless, particularly when it depends on sequence length or time. Magesan, Gambetta, and Emerson develop the model and controlled departures from it. A plausible exponential fit alone does not establish all its assumptions.
Equal gate infidelity can hide different circuit errors
Section titled “Equal gate infidelity can hide different circuit errors”Consider an intended identity operation on one qubit. Compare a fixed coherent rotation
with an independent phase-flip channel at each step,
Use the same average gate infidelity for both:
Here averages the input-state fidelity over uniformly distributed pure qubit states. It is not a probability that a gate suffers an independently detectable failure. For the unitary, the identity gives the expression above. For the phase-flip channel, .
After identical coherent steps, the rotation angle is . For independent phase flips, the transverse Bloch components acquire a factor . Therefore
For small and sufficiently short sequences,
The first approximation requires ; the second requires . Outside these limits use the exact expressions. Coherent infidelity can oscillate rather than grow forever.
For radians, both single-step infidelities are approximately . After 100 steps, they become approximately and respectively.
Both errors have the same single-step average infidelity at radians. The solid curve adds rotation angles coherently; the dashed curve represents independent phase flips. These exact curves describe repeated identity targets, not arbitrary circuits.
The example does not say every coherent error accumulates quadratically in every algorithm. Intervening gates can rotate, reinforce, or cancel it. Simultaneous operations, spectator states, leakage, and environmental memory can add further dependence on context. Rudinger and colleagues study tests that detect such changes. Cycle Benchmarking examines operation layers; application tests probe other relevant contexts.
More shots and more circuits answer different questions
Section titled “More shots and more circuits answer different questions”Suppose circuits are drawn independently from the target population. Circuit succeeds with probability and is repeated times. Assume shots are independent conditional on that circuit, circuits are independent, and the device is stable. The average of their success frequencies estimates .
Let . Conditioning first on the circuits and then averaging gives
The first term is uncertainty from sampling circuits; the second comes from repeated measurements on each sampled circuit. Increasing reduces only the second term.
For a population with equal numbers of circuits having and , the mean is , , and . With the same budget of 2,000 shots:
| Number of circuits M | Shots per circuit N | Standard deviation of estimated population mean |
|---|---|---|
| 20 | 100 | 0.0897 |
| 200 | 10 | 0.0291 |
| 2,000 | 1 | 0.0112 |
The last row assumes drawing and setting up a new circuit has no additional cost. With setup costs or a need to estimate each circuit separately, the best allocation changes. Wallman and Flammia analyze sequence sampling and confidence in randomized benchmarking.
If the goal is instead the average over a fixed, prescribed list of circuits, the list is not a random sample for that claim. Its shot uncertainty is a conditional quantity. Specify whether a result concerns that list or a larger population. Pooling all shots into an independent binomial model can otherwise understate uncertainty substantially.
Time variation changes the model
Section titled “Time variation changes the model”Suppose a survival factor is for half the experiment and for the other half, with equal weighting at each sequence length. Ignoring common amplitude and offset terms, the averaged signal is
It is generally different from . For and , the length-two values are and . Thus fitting the averaged data need not return the average physical parameter. If different lengths are measured in different time windows, even the mixing weights can depend on length.
Retain acquisition times, interleave task families, and repeat reference circuits throughout a run. This helps distinguish task dependence from drift; it does not guarantee stationarity. Proctor and colleagues develop time-resolved detection and tracking. Calibration Loops explains how such changes affect control.
Selection is another source of optimism. Choosing the best qubit subset, compiler seed, or fit range after viewing results uses the data for tuning. Confirm the chosen method on independent evaluation data and include the search cost. Repeated-testing calculations appear in Reproducible Notebooks.
Compare implementations at the same output requirement
Section titled “Compare implementations at the same output requirement”A source circuit and a physical experiment are different objects. Routing, native gates, pulse schedules, reset, and classical feedback can change the work performed. Mills and colleagues demonstrate why compilation belongs in comparisons of complete computing systems.
There are two useful questions. Which complete system solves this task best? Allow the declared optimization budget and compare final output quality and total cost. What causes a particular difference? Change one factor at a time within a controlled experiment and measure the response.
Using one compiler version or disabling optimization does not automatically isolate hardware. Different native gates, connectivity, calibration inputs, and schedules can still change the physical workload. A controlled comparison must identify which of these are fixed or varied.
Postselection also changes the cost. If a method accepts a fraction and has conditional correctness , then
For and , this is per raw attempt. Independent trials require on average attempts to obtain an accepted outcome. That outcome is correct with probability ; acceptance alone does not certify correctness.
Compare elapsed time at matched accuracy and confidence, with compilation, preparation, raw shots, optimization, retries, and postprocessing included as appropriate to the question. A latency benchmark and a throughput benchmark can legitimately favor different systems. A comparison with a classical method should identify the algorithm, approximation, software, hardware, input access, and timing boundary. A later improved baseline can change the comparison without changing the original measurement.
A feasible check may leave important errors unseen
Section titled “A feasible check may leave important errors unseen”An arbitrary -qubit density matrix has real parameters. Full reconstruction is expensive; scalable tests therefore often estimate selected properties. Their usefulness depends on which differences they can reveal.
For example, the three-qubit states
are orthogonal but have identical reduced states on every proper subset of qubits. Local checks cannot determine their relative phase. The global observable distinguishes them.
A conserved parity, a correct energy, or agreement on a small solvable instance is valuable but does not determine an entire large output state or distribution. Known-answer mirror circuits are useful tests, though their structure may differ from the intended application.
Likewise, a cross-entropy score correlates samples with ideal probabilities; it is not generally a distance from the ideal distribution. Its relation to fidelity requires further assumptions. Cross-Entropy Benchmarking explains these distinctions.
When exact classical calculation is impractical, combine checks that address different possible failures and state what remains unconstrained. Computational hardness is not a test that an experimental output is correct. Verification of Quantum Advantage discusses the stronger requirements for comparative claims.
For a readable account of a benchmark, give the task population, output criterion, implementation choices, sampling design, measured result with uncertainty, and included costs. Link the circuits, counts, and analysis needed to reconstruct the comparison. Reporting Standards develops these details.
Exercises
Section titled “Exercises”1. Find the ranking crossover
Section titled “1. Find the ranking crossover”In the opening table, task family one occurs with probability . When does A have higher mean success?
Solution
Their difference is , so A ranks higher when . At equality they tie. The task distribution is part of the comparison.
2. Compare two errors with the same single-step score
Section titled “2. Compare two errors with the same single-step score”Take radians and . Compute the exact coherent and phase-flip average infidelities, matching their single-step infidelity.
Solution
Both have . The repeated values are
The quadratic coherent approximation gives about , already noticeably inaccurate because . The linear stochastic approximation remains accurate because .
3. Change the sampling allocation
Section titled “3. Change the sampling allocation”Derive the variance for the 20-circuit, 100-shot design above. Compare it with treating all 2,000 outcomes as independent Bernoulli observations of mean .
Solution
Its standard deviation is about . The independent-binomial calculation gives variance and standard deviation . Shots on one sampled circuit share its success probability, which creates dependence when averaging over the circuit population.
4. Average signals before fitting parameters
Section titled “4. Average signals before fitting parameters”For equal populations with decay factors and , find the effective factor inferred from length one alone and from length two alone, assuming a pure exponential with fixed unit amplitude and zero offset.
Solution
Length one gives . Length two gives
They disagree because a mixture of these two exponentials is not one exponential. Adding free fit parameters can conceal some discrepancy over a finite range; a good fit does not prove a stationary physical mechanism.
5. Include rejected attempts
Section titled “5. Include rejected attempts”A method accepts 4% of attempts, with conditional correctness 99.5%. What are its accepted-correct probability and mean number of attempts to obtain an accepted outcome under independent repetition?
Solution
They are and . The mean counts attempts until acceptance. It does not give a stopping rule for correctness unless correctness can also be recognized.
6. Explain a disappearing circuit
Section titled “6. Explain a disappearing circuit”A compiler replaces an ideal circuit by the identity. Does excellent performance on the simplified circuit demonstrate accurate implementation of the gates in ?
Solution
No: those gates were not executed. The optimization can be useful if the task is to implement the overall identity efficiently. If the question is how accurately the device executes the original gate sequence, the test must preserve that sequence or otherwise prevent the cancellation. Neither interpretation is meaningful without specifying the task.
7. Find a local-measurement blind spot
Section titled “7. Find a local-measurement blind spot”Trace out the third qubit of and . Then evaluate .
Solution
Both reduced states are
The cross terms vanish because on the traced qubit. The global product exchanges and , giving expectation and respectively.
8. Identify an ambiguous detector model
Section titled “8. Identify an ambiguous detector model”An experiment prepares the nominal state zero and observes outcome one with probability 0.02. Give two independent preparation/readout flip models that agree with that observation. Can more repetitions choose between them?
Solution
and both fit. More repetitions refine the same probability and do not identify its decomposition. Other experiments or trusted calibration information are needed.
9. Interpret a tradeoff
Section titled “9. Interpret a tradeoff”At the same output accuracy, A needs 10 seconds and 100,000 shots; B needs 25 seconds and 20,000 shots. Does either dominate on these two costs?
Solution
No. A uses less time and B fewer shots. Both are undominated among these candidates. A preferred choice needs an additional objective or constraint. Neither the shot count nor the latency alone determines energy cost.
10. Test whether a score is a distance
Section titled “10. Test whether a score is a distance”For two outcomes, let the ideal distribution be . Define the unnormalized linear cross-entropy score
Compare with the sampler .
Solution
The sampler that always returns the most likely output has a higher score, although its total variation distance from is instead of zero. This is a simple counterexample to treating this score as distributional closeness. Practical XEB protocols specify their circuit ensemble and normalization; converting a score into fidelity adds model assumptions.
References
Section titled “References”- R. Blume-Kohout and K. C. Young, “A volumetric framework for quantum computer benchmarks,” Quantum 4, 362 (2020), doi:10.22331/q-2020-11-15-362 — task-dependent width–depth comparisons.
- A. W. Cross, L. S. Bishop, S. Sheldon, P. D. Nation, and J. M. Gambetta, “Validating quantum computers using randomized model circuits,” Physical Review A 100, 032328 (2019), doi:10.1103/PhysRevA.100.032328 — quantum-volume protocol and score.
- E. Magesan, J. M. Gambetta, and J. Emerson, “Scalable and robust randomized benchmarking of quantum processes,” Physical Review Letters 106, 180504 (2011), doi:10.1103/PhysRevLett.106.180504 — decay models and their assumptions.
- D. Mills, S. Sivarajah, T. L. Scholten, and R. Duncan, “Application-motivated, holistic benchmarking of a full quantum computing stack,” Quantum 5, 415 (2021), doi:10.22331/q-2021-03-22-415 — compilation and application-motivated comparisons.
- T. Proctor et al., “Detecting and tracking drift in quantum information processors,” Nature Communications 11, 5396 (2020), doi:10.1038/s41467-020-19074-4 — time-resolved characterization.
- K. Rudinger, T. Proctor, D. Langharst, M. Sarovar, K. Young, and R. Blume-Kohout, “Probing context-dependent errors in quantum processors,” Physical Review X 9, 021045 (2019), doi:10.1103/PhysRevX.9.021045 — dependence on operating context.
- J. J. Wallman and S. T. Flammia, “Randomized benchmarking with confidence,” New Journal of Physics 16, 103032 (2014), doi:10.1088/1367-2630/16/10/103032 — sequence sampling and statistical confidence.