Benchmarking a quantum circuit is more than recording how long a job takes. A useful comparison separates algorithmic quality, circuit cost, execution conditions, and operational friction so that simulator and hardware results can be interpreted fairly. This guide presents a repeatable workflow for measuring fidelity, success probability, circuit depth, two-qubit gate count, runtime, queue time, shot requirements, and noise-related effects across backends.
Overview
A quantum benchmark is a controlled experiment used to compare how a circuit performs under different execution environments. Those environments might include an ideal state-vector simulator, a noisy simulator, and one or more cloud-accessible quantum processors. The goal is not always to identify a single “best” backend. It may instead be to determine whether an optimization improves the circuit, whether a result survives realistic noise, or whether a platform is suitable for a particular development stage.
The first distinction to make is between circuit quality and execution operations. Fidelity and success probability describe how closely an outcome matches a target. Circuit depth and two-qubit gate count describe the workload presented to a backend. Runtime and queue time describe operational performance. Shot requirements describe how much sampling is needed before a result becomes sufficiently stable.
These measures answer different questions:
- Fidelity: How close is the produced state or distribution to the intended result?
- Success probability: How often does the circuit produce the desired answer?
- Depth: How many sequential layers must execute?
- Two-qubit gate count: How many operations are especially sensitive to connectivity and noise?
- Runtime: How long does execution and result processing take?
- Queue time: How long does the job wait before execution?
- Shots: How many repeated measurements are required for a useful estimate?
A benchmark should record the circuit version, compiler settings, backend configuration, number of shots, date and time, and any mitigation or post-processing applied. Without this context, two apparently different results may not be comparable.
For workload selection, first identify whether the circuit is an optimization, simulation, sampling, or machine-learning experiment. The Quantum Algorithm Selection Guide can help frame that decision before measurements begin.
How to compare options
Use the same logical circuit and define the comparison question before choosing metrics. A circuit optimized for low depth may not be optimized for low wall-clock time, and a simulator that returns an exact distribution may not reflect the behavior of hardware.
1. Establish a reference result
Begin with an ideal reference whenever the circuit is small enough to simulate exactly. The reference can be a statevector, probability distribution, expectation value, or known solution set. For larger circuits, use an analytical result, a trusted classical computation, or a high-shot approximation where appropriate. Document how the reference was produced; “ground truth” is meaningful only when its limitations are understood.
2. Create comparable execution paths
Run at least three paths when practical:
- Ideal simulation: Measures logical behavior without modeled noise.
- Noisy simulation: Applies a defined noise model to test sensitivity.
- Hardware execution: Measures performance under calibration, connectivity, scheduling, and device noise conditions.
Keep the logical circuit fixed, but record the compiled circuit for each target. A compiler may add routing operations, decompose gates, change depth, or select a different native gate set. Comparing only the source code can hide the actual workload sent to hardware.
3. Control the sampling budget
Use the same shot count across backends when the purpose is a direct accuracy comparison. If the purpose is cost or time-to-confidence, run additional shot counts and measure how quickly the estimate stabilizes. A result based on a small number of shots may look better or worse because of sampling variation rather than a meaningful difference in circuit performance.
4. Repeat measurements
Hardware results can vary with calibration state, queue conditions, compilation choices, and repeated-job behavior. Run enough repetitions to distinguish a consistent effect from a single observation. Report the individual runs or a summary that includes spread, not only the best result.
5. Keep an experiment log
Record backend identifier, software versions, compiler options, optimization level, transpiled depth, gate counts, shot count, submission time, queue time, execution time, mitigation settings, and result metrics. A quantum cloud experiment log template provides a practical structure for preserving this information.
Feature-by-feature breakdown
The following table provides a compact comparison framework. Use it as a reporting checklist rather than as a universal ranking system.
| Metric | What it measures | How to compare it | Important caution |
|---|---|---|---|
| Fidelity | Similarity between the observed and reference state or distribution | Use the same reference, distance measure, and post-processing method | State fidelity, process fidelity, and distribution similarity are different measures |
| Success probability | Frequency of the desired bit string, solution, or event | Define success precisely and report confidence or variation | A high probability can conceal incorrect secondary outcomes |
| Circuit depth | Number of sequential gate layers | Measure both logical depth and compiled depth | Depth depends on the chosen gate set and scheduling method |
| Two-qubit gate count | Number of entangling operations in the compiled circuit | Report total count and, where possible, gate types and locations | Connectivity constraints may add routing operations |
| Runtime | Time spent executing and processing a job | Define whether submission, compilation, transfer, and result handling are included | Provider timing fields may not use identical definitions |
| Queue time | Time between submission and execution | Record it separately from device execution time | Queue behavior can vary independently of circuit quality |
| Shot requirement | Sampling needed to reach a target precision or confidence | Run a shot-scaling test and specify the stopping rule | Rare events may require many more shots than common outcomes |
Fidelity and success probability
Fidelity is useful when the complete target distribution or state can be defined. For an application, success probability may be more actionable: for example, whether the measured solution satisfies a constraint. Report both when possible. A circuit can have a reasonable success probability while still producing a distribution that differs substantially from the reference.
Depth and two-qubit gates
Depth indicates how long errors can accumulate through sequential operations, while two-qubit gate count often exposes the cost of entanglement and routing. Neither metric alone predicts performance. Two circuits with the same depth may place gates on very different hardware connections, and a circuit with fewer gates may require longer physical durations. Always compare logical and compiled forms.
Runtime, queue time, and shots
Separate execution time from queue time. A backend may execute a short circuit quickly but still be unsuitable for an interactive workflow if jobs wait unpredictably. Conversely, a longer device execution may be acceptable for a batch experiment. Shot scaling is equally important: measure how fidelity or success probability changes as shots increase, then identify the point at which additional sampling produces limited practical improvement.
Simulator versus hardware
An ideal simulator is a correctness reference, not a hardware forecast. A noisy simulator can isolate the effect of an assumed noise model, but it remains an assumption. Hardware results include device-specific noise, measurement error, connectivity constraints, compilation choices, and scheduling conditions. To make the comparison useful, state which factors are represented in each environment.
If error mitigation is used, report raw and mitigated results together. Techniques such as readout correction, zero-noise extrapolation, probabilistic error cancellation, and symmetry verification can change accuracy, runtime, and shot requirements. The quantum error mitigation comparison explains why these methods should be treated as part of the benchmark configuration rather than as invisible cleanup.
Best fit by scenario
Validating an algorithm
Prioritize ideal-simulator agreement, success probability, and correctness of the observable or solution. Use small test cases with known answers before increasing circuit size. This stage is about finding logical and implementation errors, not proving hardware readiness.
Testing compiler or circuit optimizations
Compare the original and optimized circuits under the same reference, shot count, backend, and measurement process. Track depth, two-qubit gate count, routing overhead, fidelity, and success probability. An optimization is not automatically beneficial if it reduces gate count but increases sampling needs or worsens the target metric.
Choosing a hardware backend
Use a representative workload rather than a generic gate test alone. Compare compiled depth, two-qubit operations, observed success, queue time, execution time, and run-to-run variation. Treat published or dashboard metrics as context; the workload-specific result should drive the decision.
Preparing an enterprise proof of concept
Include operational measures such as reproducibility, access method, logging, failure handling, data movement, and developer effort. A technical result that cannot be reproduced or monitored may not support a production decision. Pair the benchmark with explicit exit criteria using the quantum proof-of-concept scorecard.
Comparing software frameworks
Keep the algorithm and backend targets constant while comparing circuit construction, compilation, observability, testing, and result handling. Avoid treating framework syntax as a performance metric. The meaningful comparison is the generated circuit and the effort required to maintain a reliable experiment.
When to revisit
Quantum benchmark results are time-sensitive because the surrounding software and hardware conditions can change. Revisit a benchmark when a backend calibration regime, compiler version, optimization setting, native gate set, noise model, or access policy changes. Also rerun it when a new backend becomes available or when the workload itself changes.
For recurring tests, define a compact regression suite with small, medium, and representative circuits. Store the source circuit and compiled artifacts, not just final charts. Set a clear threshold for investigation, such as a meaningful change in success probability, fidelity, compiled depth, two-qubit gate count, queue time, or shot requirement. Use the same threshold consistently, while recognizing that statistical variation may require repeated runs before action.
Before publishing or sharing a comparison, check five items:
- Are the source and compiled circuits identified?
- Are ideal, noisy, and hardware results clearly separated?
- Are shot count, repetitions, and success criteria stated?
- Are runtime and queue time defined independently?
- Are mitigation, post-processing, software versions, and backend conditions recorded?
Finally, avoid presenting a single score as a universal measure of quantum circuit performance. A benchmark is most useful when it connects a measured change to a practical decision: whether to optimize the circuit, increase shots, change the backend, revise the noise model, or postpone hardware execution until the experiment is better defined.
For broader hardware selection work, use this circuit-level workflow alongside the guide to benchmarking quantum hardware and a structured quantum computing vendor RFP. That combination keeps platform comparisons grounded in both measured workload behavior and operational requirements.