Quantum Circuit Benchmarking Guide: Metrics, Workloads, and Reproducible Test Runs
quantum circuitsbenchmarkingperformance testingreproducible researchquantum hardware

Quantum Circuit Benchmarking Guide: Metrics, Workloads, and Reproducible Test Runs

QQubit Directory Editorial Team
2026-11-29
7 min read

Learn how to benchmark quantum circuits across simulators and hardware using consistent metrics, cost estimates, and reproducible run records.

Quantum circuit benchmarking turns a promising result into a comparable engineering measurement. This guide shows how to test the same circuit across simulators and real quantum hardware, estimate runtime and cost, separate circuit quality from backend conditions, and record enough detail for another developer to reproduce the run.

Overview

A quantum circuit can appear to perform well in an ideal simulator and produce very different results on a noisy device. Even two runs on the same type of backend may not be directly comparable if they use different transpilation settings, shot counts, calibration windows, or measurement conventions. A useful benchmark therefore measures more than whether the final answer is correct.

Start by defining the question your benchmark must answer. Common questions include:

  • Does a circuit optimization reduce depth or two-qubit gate count?
  • Which backend produces the most reliable output for a fixed workload?
  • How much simulator time, hardware time, or cloud spend is required?
  • Does an error-mitigation method improve the result enough to justify its overhead?
  • Can a published or internal result be reproduced with the available tools?

Keep three layers separate in your report: the logical circuit, the compiled or transpiled circuit, and the execution environment. The logical circuit represents the algorithm you wrote. The compiled circuit reflects the target device's gate set and connectivity. The execution environment includes the backend version, calibration state, queue conditions, simulator settings, and measurement configuration. Mixing these layers makes it difficult to explain why a result changed.

For help selecting SDKs, simulators, notebooks, and related utilities, use the Quantum Computing Tools Directory. Benchmarking is most useful when the tools and their versions are recorded alongside the results.

How to estimate

Use a staged workflow rather than sending an untested circuit directly to hardware.

  1. Freeze the workload. Record the number of qubits, input state, parameter values, observable or success condition, measurement basis, and random seed where applicable. If the circuit is parameterized, define whether you are testing one instance or a batch of instances.
  2. Run an ideal reference. Use an exact or high-precision simulator when practical. This establishes the expected probability distribution, bitstring, expectation value, or objective score before noise and sampling are introduced.
  3. Run a noisy simulation. If a noise model is available, use it to explore how readout and gate errors may affect the workload. Label the model and its assumptions clearly; a simulated noise result is not a substitute for a hardware measurement.
  4. Compile for each target. Transpile or lower the same logical circuit for every backend under test. Save the resulting depth, gate counts, layout, routing operations, and compiler settings.
  5. Estimate execution demand. For a simple shot-based experiment, an initial estimate is total shots = circuits submitted × shots per circuit. Add repetitions caused by parameter sweeps, measurement groups, calibration circuits, or mitigation procedures.
  6. Execute repeated runs. Use the same shot budget and success metric when comparing backends. If queue time, batching, or provider scheduling affects the result, record those conditions rather than silently excluding them.
  7. Compare against the reference. Report both raw outcomes and a defined quality measure, such as success probability, expectation-value error, distribution distance, or state fidelity. Do not use “fidelity” without stating what objects are being compared.
  8. Package the evidence. Save the source circuit, compiled circuit, environment details, raw counts, metadata, and analysis code. A summary number without raw results is difficult to audit.

For advance planning, pair this workflow with the Quantum Circuit Resource Estimation guide. It covers the practical relationship between shots, runtime, and cloud cost before a hardware run.

Inputs and assumptions

The following metrics form a compact benchmark record. Definitions should remain consistent within a comparison, but some values are backend-specific and should not be treated as universal performance scores.

MetricWhat to recordHow to interpret it
Circuit depthLogical depth and post-compilation depthLower compiled depth often reduces exposure to noise, but depth alone does not capture gate quality or idle time.
Two-qubit gatesCount and gate types after compilationUseful for comparing routing and entangling-gate overhead; include inserted swaps where relevant.
Execution timeKernel time, job time, queue time, or wall-clock time, labeled separatelySeparating these values prevents scheduling delays from being confused with circuit execution performance.
Fidelity or similarityDefinition, reference state or distribution, and estimatorA quality measure is meaningful only when the comparison target and calculation method are explicit.
Error rateObserved success error, readout error, expectation-value error, or another named measureUse a precise label. “Error rate” can refer to several different quantities.
ShotsShots per circuit, total shots, and any extra calibration or mitigation shotsMore shots reduce sampling uncertainty but increase execution demand; they do not remove systematic hardware errors.
Transpilation overheadChange in depth, gate count, qubit mapping, and compilation timeShows the cost of adapting a logical circuit to a backend's native gates and connectivity.
CostPricing basis, billed units, currency, and excluded overheadUse the provider's current pricing inputs at calculation time and distinguish estimates from invoices.

State assumptions beside every calculated value. For example, a runtime estimate may assume a fixed number of shots, one circuit submission, no queue delay, and no mitigation. A cost estimate may exclude failed jobs, storage, interactive notebook time, or repeated calibration circuits. Those exclusions are acceptable when they are visible.

For hardware comparisons, capture the backend identifier and the calibration timestamp or run window. Calibration data can change, so the guide to reading quantum backend calibration data is useful when interpreting a result alongside device conditions.

Worked examples

Example 1: Comparing an optimization

Suppose version A of a circuit has a compiled depth of 42 and 18 two-qubit gates. Version B has a compiled depth of 29 and 11 two-qubit gates. Both versions use 2,000 shots and the same success condition. The benchmark should not conclude that version B is better from gate counts alone. Run both versions against an ideal reference and the same hardware or noise model, then report success probability, uncertainty, execution time, and any compilation-time difference.

A useful result record might state: “Version B reduced compiled depth and two-qubit gates under compiler configuration X, used the same qubit layout, and produced the following change in success probability over 2,000 shots.” This makes the optimization claim narrower and more defensible than saying it simply improved performance.

Example 2: Estimating shot and cost demand

Assume a parameter sweep contains 24 circuit instances, each measured with 4,000 shots. The base workload is:

24 × 4,000 = 96,000 circuit shots

If the workflow adds one calibration or mitigation circuit for every instance, the total number of submitted circuits may double. If the provider bills by job, circuit, shot, or another unit, apply the current published billing input only after identifying the actual billable unit. Keep the estimate separate from queue time and failed-job retries, because those may depend on platform behavior or operational decisions.

Example 3: Comparing a simulator with hardware

Run the logical circuit on an ideal simulator, then run the compiled circuit on a noisy simulator and a real backend. Compare all three using the same observable and shot count where possible. The ideal run answers whether the algorithm and analysis are internally consistent. The noisy simulation tests a stated error model. Hardware reveals the conditions of the selected device during the recorded run. These are complementary results, not interchangeable rankings.

When to recalculate

Recalculate a benchmark whenever an input that can affect the conclusion changes. At minimum, revisit it when:

  • the backend, qubit mapping, native gate set, or compiler version changes;
  • calibration values or the hardware run window changes;
  • the circuit, parameter set, measurement basis, or success criterion changes;
  • shot counts, mitigation settings, batching, or retry behavior changes;
  • provider pricing or billing units change;
  • a simulator, noise model, SDK, dependency, or runtime environment is upgraded;
  • you are comparing a new optimization against an old result without rerunning the baseline.

For an ongoing project, keep a benchmark log with one row per run and a linked artifact bundle. A practical template includes: run ID, date and time, source revision, SDK and compiler versions, backend, qubit count, logical depth, compiled depth, one- and two-qubit gate counts, shots, runtime fields, quality metric, error definition, cost inputs, raw-result location, and notes about failures or retries.

Review the benchmark twice a year even if no immediate change is planned. This is a useful editorial and engineering checkpoint for updating metric definitions, SDK examples, recommended benchmark suites, and directory links. Between reviews, return to the record whenever you test a new backend, change an optimization, or reproduce a published result.

Finally, use a small test circuit before committing to a large workload. Confirm that compilation, measurement parsing, cost assumptions, and result aggregation behave as expected. Then run the full benchmark with the same documented inputs. This simple sequence reduces expensive surprises and makes your quantum circuit performance comparison easier for another developer to verify.

Related Topics

#quantum circuits#benchmarking#performance testing#reproducible research#quantum hardware
Q

Qubit Directory 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.