Quantum Circuit Resource Estimation: How to Predict Depth, Qubits, Shots, Runtime, and Cost
resource estimationquantum costscircuit depthcloud infrastructureexperiment planning

Quantum Circuit Resource Estimation: How to Predict Depth, Qubits, Shots, Runtime, and Cost

SSmart Qubit Editorial Team
2026-11-29
8 min read

Estimate qubits, depth, shots, simulator memory, runtime, and cloud cost before submitting a quantum experiment.

Before submitting a quantum experiment, estimate the resources it will consume. This guide provides a repeatable method for predicting qubit count, transpiled depth, two-qubit gates, shots, simulator memory, runtime, and cloud cost so you can compare circuit designs, set job limits, and choose an appropriate execution environment.

Overview

Quantum resource estimation is not a single calculation. A circuit that looks small in source code can become substantially larger after compilation, routing, measurement expansion, parameter binding, or error-mitigation steps. The useful question is therefore not simply “How many gates are in my circuit?” It is “What will this complete experiment require on the selected backend?”

Estimate resources in layers:

  • Algorithm layer: logical qubits, logical gate counts, circuit depth, parameters, and measurements.
  • Compilation layer: mapped qubits, native operations, inserted routing gates, and transpiled depth.
  • Execution layer: shots, circuit repetitions, queue or batch behavior, and measurement overhead.
  • Infrastructure layer: simulator memory, hardware availability, execution time, quotas, and pricing rules.

This distinction matters across Qiskit, Cirq, PennyLane, Amazon Braket, and other quantum SDKs. Each tool can report circuit properties, but the meaning of depth, operation count, runtime, and cost depends on the compiled circuit and provider policy. For benchmarking methods and hardware comparison, see How to Benchmark Quantum Algorithms on Simulators and Real Hardware.

How to estimate

1. Define one complete experiment

Start by writing down what you intend to submit, not only the circuit body. Record:

  • Number of logical qubits.
  • Number of circuits in the job.
  • Number of parameter bindings per circuit.
  • Measurements and any basis changes.
  • Shots per circuit and any repetitions for statistical analysis.
  • Whether error mitigation, calibration circuits, gradients, or validation circuits are included.

A variational algorithm may contain one circuit template but produce many executed circuits. If a training loop evaluates 40 parameter sets and uses three measurement settings for each set, the execution count is already 120 circuit variants before adding gradient evaluations or repetitions.

2. Count logical resources

Count the qubits required by the algorithm, including ancillas, work registers, readout registers where applicable, and any qubits reserved for subroutines. Then count operations by type. Single-qubit gates and two-qubit gates should be tracked separately because two-qubit operations often determine connectivity, routing, noise exposure, and hardware suitability.

Record both total gate count and depth. Gate count measures total work; depth measures the longest sequence of dependent layers. Two circuits with the same number of gates can have different depth and therefore different execution characteristics.

3. Compile for the target

Run the circuit through the intended SDK compiler or transpiler with a target backend, basis gate set, coupling map, and optimization setting. Compare the pre-compilation and post-compilation values:

  • Qubits before and after mapping.
  • Total operations by type.
  • Two-qubit operation count.
  • Depth using the target's native or scheduled operations.
  • Added swaps, decompositions, resets, barriers, and measurements.

For a quick design comparison, run at least two compilation configurations: a conservative baseline and the configuration you expect to use in production. Optimization can reduce some counts, while connectivity constraints can add routing operations. Treat the transpiled circuit as the main input to runtime and cost estimates.

4. Convert circuits into shots

Use this basic estimate:

Total shots = executed circuit variants × shots per variant.

If a job contains 18 variants at 2,000 shots each, the estimate is 36,000 shots. For a parameter sweep, use:

Total shots = parameter settings × measurement settings × repetitions × shots per setting.

Do not assume that one SDK job corresponds to one circuit execution. Providers may batch circuits differently, and a workflow may submit multiple jobs. Track both total shots and the number of submitted circuits.

5. Estimate runtime and cost separately

A simple wall-clock model is:

Execution time ≈ circuit variants × shots × time per shot + submission and queue overhead.

Time per shot can include state preparation, gate operations, measurement, reset, and required delays. On a simulator, runtime also depends on the simulation method, qubit count, circuit structure, available memory, and parallelism. On hardware, queue time and provider scheduling can dominate elapsed time, even when active device time is modest.

For cost, first identify the provider’s current billing unit. Depending on the service, pricing may be based on shots, tasks, runtime, simulator usage, or another unit. Use the provider’s current pricing page or account dashboard rather than copying a value into a permanent worksheet. Then apply:

Estimated cost = billable units × current unit price + applicable fixed or ancillary charges.

Keep estimated cost and observed cost in separate columns. This makes it easier to identify whether an error came from an incorrect shot count, extra circuits, retry behavior, or a changed pricing rule.

Inputs and assumptions

Logical versus physical qubits

Logical qubits describe the algorithm. Physical qubits describe the hardware allocation after mapping. If error correction is part of the design, the physical requirement can be much larger than the logical requirement and depends on the code, target error rate, layout, and fault-tolerance assumptions. Do not present logical qubits as a hardware capacity estimate without labeling the distinction.

Simulator memory

For an ideal state-vector simulation with n qubits, the state contains 2n complex amplitudes. A rough memory estimate is:

State memory ≈ 2n × bytes per complex amplitude.

For example, if a hypothetical simulator uses 16 bytes per complex amplitude, a 28-qubit state requires approximately 228 × 16 bytes before accounting for workspace, runtime overhead, observables, snapshots, parallelization, or operating-system needs. Reserve additional headroom rather than planning to consume all available memory. Tensor-network, stabilizer, matrix-product-state, and approximate simulators use different resource models, so do not apply the state-vector formula to every simulator.

Depth and two-qubit gates

Record the depth definition used by your SDK or reporting tool. A logical depth may differ from a transpiled depth, scheduled duration, or hardware-aware depth. For hardware planning, two-qubit gate count and connectivity are often more informative than total gate count alone. Preserve the compiler settings with every estimate so another developer can reproduce the result.

Statistical precision

More shots can improve estimates of expectation values, probabilities, or kernel entries, but the required number depends on the observable, variance, confidence target, and noise. Treat a chosen shot count as an experimental assumption, not a universal rule. Begin with a pilot allocation, inspect uncertainty, and increase shots only where the result justifies it.

A practical worksheet

Use one row per experiment configuration with these fields:

  • Algorithm version and SDK version.
  • Target backend or simulator.
  • Logical and physical qubits.
  • Pre- and post-compilation depth.
  • Single- and two-qubit gate counts.
  • Number of circuit variants and shots per variant.
  • Total shots and expected submissions.
  • Simulator memory estimate or hardware execution-time assumption.
  • Current pricing unit, price reference date, and estimated cost.
  • Observed runtime, observed cost, and notes about retries or overhead.

The linked Quantum Resource Estimation Worksheet can serve as a starting structure. For code-level review, use the Quantum Code Review Checklist to check whether resource assumptions are visible and reproducible.

Worked examples

Example 1: A fixed circuit

Assume a hypothetical circuit uses 12 logical qubits, is compiled into 12 physical qubits, and produces 60 circuit variants. Each variant has 1,500 shots. The shot estimate is:

60 × 1,500 = 90,000 shots.

Suppose compilation produces an average depth of 84 and 420 two-qubit gates per variant. Report those values as per-variant resources, then multiply only when the provider bills by total executed work. If the workflow also runs four calibration circuits for every variant, the total becomes 64 variants and 96,000 shots. This is why calibration and validation circuits belong in the initial estimate.

Example 2: A variational sweep

Assume a hybrid training loop evaluates 25 parameter settings, uses two measurement bases, repeats each setting three times, and takes 800 shots per measurement basis. The estimate is:

25 × 2 × 3 × 800 = 120,000 shots.

If a gradient method requires four additional shifted evaluations for each parameter setting, add those evaluations explicitly. The cost driver may be the number of parameterized circuit variants rather than the circuit depth itself. For training workflows, monitor convergence per shot and per unit cost, not only the final objective value. The variational quantum algorithm tutorial provides useful context for diagnosing training behavior alongside resource planning.

Example 3: Comparing two designs

Design A uses 16 qubits, depth 110, and 300 two-qubit gates. Design B uses 20 qubits, depth 72, and 180 two-qubit gates after compilation. Design B is not automatically better: it needs more qubits and may require more simulator memory. However, its lower depth and two-qubit count may make it attractive for a hardware test. Put both designs in the worksheet, estimate total shots, and test the metric that matters to the project—accuracy, runtime, cost, or reproducibility—before selecting one.

When to recalculate

Recalculate before each meaningful submission, not only when the algorithm changes. Update the estimate when:

  • The target hardware, simulator method, compiler version, or optimization setting changes.
  • Qubit mapping or connectivity changes the transpiled circuit.
  • You add parameter sweeps, gradient evaluations, calibration, mitigation, or validation circuits.
  • You change shots, confidence targets, measurement bases, or stopping conditions.
  • The provider changes pricing, quotas, execution limits, simulator availability, or billing units.
  • A benchmark shows that queue time, retry behavior, memory use, or execution duration differs from the model.

Use a small pilot job to replace assumptions with measurements, then update the worksheet with the observed values. Set a maximum shot count, circuit count, memory limit, and budget threshold before launching a large sweep. Finally, record the SDK, backend, compiler settings, pricing reference date, and circuit hash alongside the result. This turns quantum computing cost estimation from a one-time guess into an operational control that can be reviewed whenever infrastructure or experiment inputs change.

Related Topics

#resource estimation#quantum costs#circuit depth#cloud infrastructure#experiment planning
S

Smart Qubit Editorial Team

Quantum Technology 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.