Quantum Resource Estimation for Developers: Qubits, Circuit Depth, Shots, and Runtime Worksheet
resource estimationqubitscircuit depthquantum shotsquantum simulatorsquantum hardware

Quantum Resource Estimation for Developers: Qubits, Circuit Depth, Shots, and Runtime Worksheet

SSharp Qbit Lab
2026-11-15
7 min read

Estimate qubits, transpiled depth, simulator memory, shots, and runtime before running quantum circuits on simulators or hardware.

Before you run a quantum circuit, estimate more than its qubit count. This guide shows how to calculate qubits, transpiled depth, simulator memory, measurement shots, and approximate runtime, with worked examples for state-vector simulation, noisy simulation, and hardware execution. Use the worksheet to compare an ideal circuit with the resource requirements of a realistic backend.

Overview

Quantum resource estimation is a planning exercise, not a promise that a job will finish within a particular time. The same circuit can have very different requirements depending on its encoding, decomposition, target hardware, simulator method, measurement design, optimizer, and error-mitigation strategy.

Start by separating four resource categories:

  • Logical size: the number of qubits and classical parameters in the circuit.
  • Structural cost: gate count, two-qubit gate count, and circuit depth after transpilation or compilation.
  • Statistical cost: the number of shots, observables, measurement groups, and repeated parameter evaluations.
  • Execution cost: simulator memory, processor time, queue time, job overhead, and any provider-specific limits.

A useful estimate has two versions. The ideal estimate describes the circuit you wrote. The execution estimate describes the compiled circuit and the actual measurement plan. The second estimate is the one to use when deciding whether a job is practical.

For background on gates, measurement, entanglement, and depth, see Quantum Circuits Explained. If the circuit is part of an optimization or chemistry workflow, first identify the algorithm and its expected data encoding in the Quantum Algorithm Selection Guide.

How to estimate

1. Count the qubits

Let n_data be the qubits required to represent the input and n_work be ancillas, arithmetic registers, phase-estimation registers, or other temporary space. Then:

n_total = n_data + n_work

Do not count only the variables in the problem statement. An encoding may use one qubit per binary variable, multiple qubits per feature, or additional ancillas to implement a reversible operation. Transpilation can also introduce routing operations without changing the logical qubit count, while a device may require a larger physical allocation because of connectivity or compilation constraints.

2. Estimate depth after compilation

Depth is the number of sequential gate layers on the critical path. Record logical depth, then obtain the transpiled depth for the target basis gates and connectivity. The compiled result is usually more useful because a single logical operation may decompose into several physical gates.

Track at least three values: total depth, two-qubit gate count, and two-qubit depth. Two-qubit operations often dominate both hardware sensitivity and routing overhead, so a circuit with a modest total gate count can still be difficult if its entangling gates are concentrated in long sequential layers.

3. Estimate shots

A shot is one circuit execution followed by measurement. If one observable requires S shots and you measure G compatible groups, the basic measurement budget is:

shots per circuit evaluation = S × G

For a variational algorithm with P parameter points or optimizer evaluations:

total shots = S × G × P

That estimate must include gradients, validation circuits, calibration or mitigation circuits, and repeated seeds if they are part of the experiment. For a bounded measurement outcome, sampling uncertainty generally decreases in proportion to 1/√S. Therefore, reducing the statistical error by about half may require roughly four times as many shots, subject to the observable and estimator being used.

4. Estimate simulator memory

A state-vector simulator stores 2ⁿ complex amplitudes. With a 16-byte complex representation, the raw amplitude memory is approximately:

memory ≈ 16 × 2ⁿ bytes

This is a lower-bound estimate. Runtime buffers, measurement data, threading, tensor layouts, and framework overhead require additional memory. Use the raw figure to identify scale, not to choose a machine at the exact limit.

A full density-matrix simulation stores 4ⁿ complex values, so its raw memory grows much faster. Noisy simulation may instead use trajectories, stabilizer methods, tensor networks, or other approaches with different scaling. Always identify the simulation method before comparing memory estimates.

5. Estimate runtime

For a hardware or shot-based workflow, a practical first model is:

wall time ≈ queue time + submission overhead + circuit executions × execution time

For a variational workflow, multiply the execution component by the number of parameter evaluations and add classical optimizer time. Queue time is provider- and workload-dependent, so report it separately rather than presenting it as a fixed property of the circuit.

Inputs and assumptions

Complete this worksheet before running a new experiment:

InputWhat to recordWhy it matters
Logical qubitsData qubits, ancillas, and registersSets circuit size and simulator scaling
Compiled qubitsAllocated physical or simulator qubitsMay exceed the logical count
DepthLogical and transpiled depthIndicates sequential exposure to errors and runtime
Two-qubit operationsTotal count and depthUseful hardware difficulty indicators
ObservablesTerms, commuting groups, and measurement circuitsDetermines shot multiplication
ShotsShots per group and repetitionsControls sampling uncertainty
EvaluationsOptimizer steps, gradient calls, and validation runsOften dominates hybrid workloads
Execution methodState vector, density matrix, trajectories, tensor network, or hardwareChanges memory and runtime scaling

Also record assumptions that are easy to lose: SDK version, transpiler settings, optimization level, target basis gates, coupling map, precision, shot allocation, random seed, and whether error mitigation is enabled. These details make a later comparison reproducible. The reproducible VQA benchmarking workflow provides a useful structure for recording them.

Worked examples

Example 1: State-vector simulation

Suppose a circuit uses 25 qubits. A raw state vector contains 2²⁵ = 33,554,432 complex amplitudes. At 16 bytes per amplitude, the raw storage is about 536.9 MB. A 28-qubit version requires about 68.7 GB of raw amplitude storage, before overhead. This illustrates why adding only three qubits can change a simulation from comfortable to memory-intensive: every added qubit doubles the state-vector storage.

If the circuit uses 28 qubits but only requires a few local observables, that does not remove the state-vector memory requirement. The simulator still represents the full state unless its method uses a more compact structure. Test the smallest representative circuit first and leave headroom for framework allocations.

Example 2: Noisy simulation

Assume a density-matrix simulation of 12 qubits. It stores 4¹² = 16,777,216 complex entries. At 16 bytes each, the raw estimate is about 268 MB. At 16 qubits, the same calculation reaches about 68.7 GB. If the simulator uses trajectories instead, memory may scale differently, but the number of trajectories needed for a stable estimate can increase the total runtime. Report both the method and trajectory count when comparing results.

Example 3: Hardware shots and runtime

Consider a compiled circuit with 20 qubits and depth 80. Suppose the experiment measures six commuting groups, uses 4,000 shots per group, and performs 30 optimizer evaluations. The shot budget is:

6 × 4,000 × 30 = 720,000 circuit shots

That figure excludes gradient or validation circuits. If each evaluation submits six circuits and a hypothetical execution record shows 0.8 seconds of device execution plus 3 seconds of submission overhead per circuit, the non-queue estimate is 30 × 6 × (0.8 + 3), or 684 seconds. This is a planning example, not a provider performance claim. Actual wall time can be dominated by batching behavior, queueing, retries, compilation, and whether the platform charges or reports time per shot, circuit, job, or another unit.

Before submitting, ask whether the six groups can be reduced, whether all 4,000 shots are needed for every optimization step, and whether early stopping or a staged shot schedule is acceptable. For cost planning across providers, use the separate quantum cloud cost and shot-budget guide.

When to recalculate

Recalculate the worksheet whenever an input that affects scale changes. The most important triggers are:

  • Changing the feature or variable encoding, ansatz width, problem size, or ancilla design.
  • Switching from an ideal simulator to a noisy model or real hardware.
  • Changing the target backend, coupling map, basis gates, or transpiler settings.
  • Increasing depth, optimizer iterations, gradient evaluations, or validation circuits.
  • Adding observables, splitting measurement groups, or enabling error mitigation.
  • Changing shots, precision, simulator method, batching, or parallel execution.
  • Revisiting a project after SDK, simulator, backend, or provider-limit changes.

Keep two rows in your experiment log: planned and observed. After a run, replace assumptions with measured transpiled depth, actual circuit count, execution time, memory use, and result variance. If the gap is large, identify whether it came from routing, decomposition, measurement grouping, optimizer behavior, or queue and submission overhead.

For a practical final check, write down: total qubits, transpiled depth, two-qubit count, simulator method or backend, shots per group, number of groups, expected evaluations, mitigation overhead, memory headroom, and queue time as an unknown or separately measured value. Recompute this list before every major experiment rather than relying on the original estimate. That habit turns quantum resource estimation from a one-time guess into a repeatable part of quantum programming.

Related Topics

#resource estimation#qubits#circuit depth#quantum shots#quantum simulators#quantum hardware
S

Sharp Qbit Lab

Quantum Computing Editor

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.