Quantum Simulators Compared: Choose Statevector, Stabilizer, Tensor-Network, or Shot-Based Methods
quantum simulatorsquantum developer toolsquantum circuitsQiskitCirqPennyLane

Quantum Simulators Compared: Choose Statevector, Stabilizer, Tensor-Network, or Shot-Based Methods

QQubit Daily Editorial Team
2026-11-21
8 min read

Compare statevector, stabilizer, tensor-network, density-matrix, and shot-based simulators with a practical selection worksheet.

Choosing a quantum simulator is a modeling decision, not simply a matter of selecting the largest advertised qubit count. This guide compares statevector, stabilizer, tensor-network, density-matrix, and shot-based methods, then gives you a repeatable worksheet for matching a simulator to circuit size, gate set, entanglement, noise, memory limits, and testing goals.

Overview

A quantum simulator runs a circuit on classical hardware. The right choice depends on what you need to observe. If you need every complex amplitude for a small or moderately sized circuit, a statevector simulator is usually the clearest starting point. If the circuit is composed primarily of Clifford operations, a stabilizer simulator can represent it far more compactly than a general-purpose statevector method. If the circuit has favorable connectivity and limited entanglement, a tensor-network simulator may scale beyond the practical range of a full statevector.

Noise changes the decision. A density-matrix simulator represents mixed states and can model some noise processes directly, but its memory requirements grow more quickly than those of a pure-state statevector simulation. A shot-based workflow, meanwhile, returns samples from measurements rather than a complete exact state. It is often the most appropriate abstraction when your application will ultimately run on hardware and consume counts, probabilities, or expectation-value estimates.

There is no universal “best quantum simulator.” The best simulator is the one that preserves the behavior relevant to your experiment at an acceptable runtime and memory cost. Frameworks such as Qiskit, Cirq, and PennyLane expose several simulation approaches, but names, options, supported gates, and hardware-acceleration paths can change between releases. Treat the framework API as an implementation detail to verify after choosing the simulation model.

MethodBest fitMain strengthPrimary constraint
StatevectorSmall to medium pure-state circuitsDirect access to amplitudes and exact ideal-state calculationsMemory grows exponentially with qubit count
StabilizerClifford-dominated circuitsEfficient representation for a restricted gate setGeneral non-Clifford operations reduce or remove the advantage
Tensor networkLow-entanglement circuits with suitable structureCan avoid explicitly storing the full statevectorRuntime depends strongly on contraction order and entanglement
Density matrixNoisy or mixed-state studies at modest scaleRepresents decoherence and probabilistic mixtures directlyMemory and computation can grow roughly with the square of statevector size
Shot-basedMeasurement-focused tests and hardware-like workflowsProduces samples and statistical estimatesFinite shots introduce sampling error and hide full-state information

How to estimate

Start with the circuit, not the simulator. Record the number of logical qubits, circuit depth, two-qubit-gate count, gate families, connectivity, measurement layout, and whether parameters are changed repeatedly. Then identify the output your code actually needs:

  • Amplitudes or state fidelity: begin with statevector simulation if the circuit fits in memory.
  • Expectation values: compare statevector, tensor-network, or shot-based execution depending on scale and whether sampling noise is part of the experiment.
  • Bitstring counts: use shot-based simulation, especially when validating an algorithm intended for hardware.
  • Noise behavior: consider density-matrix simulation for small circuits, or a shot-based noise model when a full mixed-state representation is too expensive.
  • Clifford regression tests: test a stabilizer method before using a general simulator.

For a statevector estimate, a pure state over n qubits has 2n complex amplitudes. If each complex number uses 16 bytes, the amplitude array alone requires approximately 16 × 2n bytes. Real implementations need additional workspace, indexing structures, temporary buffers, and possibly copies for operations. Therefore, use this equation as a lower-bound estimate rather than a promise:

Estimated statevector memory ≈ bytes per complex amplitude × 2n.

A density matrix has 2n × 2n complex entries, so its raw storage is approximately 16 × 4n bytes under the same assumption. This is why density-matrix simulation should be reserved for circuits whose qubit count and noise requirements make that representation realistic.

Next, run a small profiling sweep. Use the same circuit at several qubit counts, depths, or parameter settings and record wall-clock time, peak memory, compilation time, and output quality. For a tensor-network method, add entanglement-sensitive cases rather than extrapolating from a product-state circuit. A shallow circuit with heavy all-to-all entanglement can be harder than a deeper circuit with local interactions.

Finally, compare against a classical baseline. For optimization or quantum machine learning experiments, a simulator speedup is not meaningful unless the complete workflow is compared with a suitable classical implementation. The quantum computing benchmarking checklist can help organize runtime, accuracy, noise, and baseline reporting.

Inputs and assumptions

Use this worksheet before selecting a backend or simulator option:

  1. Logical qubits: How many qubits exist before any hardware mapping or auxiliary registers?
  2. Depth and width: What are the total depth, two-qubit depth, and largest simultaneous active register?
  3. Gate set: Is the circuit Clifford-dominated, or does it contain arbitrary rotations, controlled non-Clifford gates, or custom operations?
  4. Entanglement: Is entanglement local and limited, or does it spread across most of the register?
  5. Output requirement: Do you need amplitudes, expectation values, probabilities, counts, gradients, or only pass/fail regression results?
  6. Shots: If sampling is required, how many repetitions are needed for the uncertainty your application can tolerate?
  7. Noise: Is the circuit ideal, governed by a custom channel model, or intended to approximate a hardware execution path?
  8. Memory limit: Include operating-system overhead, framework overhead, temporary buffers, and memory used by parallel workers.
  9. Classical baseline: What conventional algorithm or simulator will serve as the comparison point?
  10. Execution location: Will the test run locally, on a workstation accelerator, in a managed cloud environment, or on hardware?

Keep assumptions explicit. For example, “32 qubits” does not describe difficulty by itself. A 32-qubit Clifford circuit, a 32-qubit highly entangled random circuit, and a 32-qubit noisy density-matrix experiment are materially different workloads. Similarly, a shot-based result with a small shot budget is not interchangeable with an exact statevector result. It answers a different question and carries sampling uncertainty.

Framework choice should follow these requirements. A Qiskit tutorial, Cirq tutorial, or PennyLane tutorial can teach the relevant API, but the API should not determine the scientific method. First decide whether the experiment needs exact amplitudes, structured contraction, mixed states, or measurement samples; then confirm that the selected SDK and backend support the gates, observables, gradients, noise channels, and data formats you need.

Worked examples

Example 1: A small variational circuit

Suppose a variational algorithm uses 10 qubits, repeated parameterized layers, and expectation values for an optimizer. The circuit is ideal during early development, and you need deterministic debugging plus parameter gradients. A statevector simulator is a sensible first choice if its measured memory and runtime fit the development machine. It exposes the full state, makes wrong-gate debugging easier, and avoids shot noise while the algorithm is being validated.

Once the circuit is correct, run a shot-based version with the intended measurement groups and a stated shot budget. This reveals whether the optimizer remains stable when expectation values are estimated statistically. If the production target is noisy hardware, add a noise-aware test rather than assuming the ideal statevector result predicts hardware behavior.

Example 2: A Clifford-heavy regression suite

Consider a stabilizer-code test containing preparation, entangling Clifford gates, Pauli measurements, and a small number of checks. A stabilizer simulator is a strong candidate because the circuit structure matches its efficient representation. If a later revision adds non-Clifford rotations, split the tests: retain stabilizer coverage for the Clifford portion and use a general statevector, tensor-network, or sampling method for the extension. Do not assume that a high qubit count alone makes the stabilizer method applicable.

Example 3: A wide but weakly entangled circuit

Suppose a circuit has many qubits arranged in a line, shallow local interactions, and observables that do not require the complete state. A tensor-network simulator may be worth testing because its cost is shaped by tensor ranks and contraction choices rather than only by the total Hilbert-space dimension. Benchmark several contraction strategies and include a deliberately more entangled case. If the bond dimensions grow rapidly, switch to a different method instead of relying on the favorable result from the easiest circuit.

Example 4: Comparing ideal and noisy outputs

For a modest circuit where you need to inspect decoherence and mixed-state evolution, compare an ideal statevector result with a density-matrix or noisy shot-based result. Use the same observables and report whether differences come from the noise model, finite shots, compilation, or simulator approximation. For larger circuits, a shot-based model may be the practical option, but its results should be summarized with uncertainty or repeated trials rather than presented as exact probabilities.

When to recalculate

Revisit the simulator decision whenever a relevant input changes. Recalculate after adding qubits, increasing depth, introducing non-Clifford gates, changing connectivity, turning on noise, raising the shot budget, or moving from local execution to a cloud platform. Also reprofile after changing hardware acceleration, parallel settings, precision, compiler passes, or SDK versions. A backend that worked for development may be unsuitable for regression testing or production-scale parameter sweeps.

Use the following practical cycle:

  1. Copy the circuit and record its current qubit count, depth, gates, observables, noise assumptions, and shot requirement.
  2. Estimate statevector and density-matrix memory using the formulas above, then add a safety margin for workspace and framework overhead.
  3. Run a small benchmark on the candidate simulators and capture runtime, peak memory, output agreement, and sampling variability.
  4. Compare the result with a classical baseline and verify that the simulator is answering the same computational question.
  5. Save the worksheet, circuit version, SDK version, backend configuration, and benchmark date with the experiment.

For related decisions, see the guides on quantum error mitigation, quantum use-case due diligence, and quantum cloud platform setup. Treat simulator selection as a repeatable engineering checkpoint: measure the workload you actually have, document the assumptions, and change methods when those assumptions no longer hold.

Related Topics

#quantum simulators#quantum developer tools#quantum circuits#Qiskit#Cirq#PennyLane
Q

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