Qiskit Aer

On this page 7

Qiskit Aer is the high-performance circuit simulator of the Qiskit ecosystem: a C++ engine with Python bindings that executes quantum circuits on classical CPUs or GPUs and returns counts, statevectors, expectation values or other results as if a quantum device had produced them. In quantum software, it is the standard tool for testing circuits before spending hardware time, for studying algorithms in an ideal noise-free setting, and for reproducing the behavior of real processors through configurable noise models.

Aer is distributed as the separate `qiskit-aer` package. Since Qiskit 1.0, the old qiskit.providers.aer import path no longer exists, so code imports AerSimulator and the Aer primitives directly from qiskit_aer. Its role in quantum computing is practical rather than theoretical: it turns a transpiled circuit into numbers that a developer can compare with theory or with hardware output.

How Qiskit Aer executes a circuit

Qiskit Aer executes a circuit by representing the quantum state in classical memory and applying each gate as a linear-algebra update. The central class, AerSimulator, accepts a circuit that has been transpiled to its supported basis gates, chooses a simulation method, applies the instructions in order and samples measurement outcomes for the requested number of shots.

Internally, the engine fuses consecutive gates into larger unitary blocks to reduce memory passes, parallelizes work with OpenMP threads, and can distribute large statevectors across processes with MPI and cache blocking. When a circuit contains no mid-circuit measurement or noise, Aer evolves the state once and samples all shots from the final distribution, which is far faster than repeating the full evolution for every shot.

The main configuration options control accuracy, speed and output. The table below lists the ones that most often change results or run time.

OptionTypical valuesWhat it affects
methodautomatic, statevector, stabilizerData structure and scaling
deviceCPU, GPUHardware that runs the kernels
precisiondouble, singleMemory use and numerical accuracy
shots1 to millionsStatistical error of counts
seed_simulatorAny integerReproducibility of sampled results
max_parallel_threads0 for all coresCPU parallelism
noise_modelNoiseModel objectWhether errors are injected
Key AerSimulator options

Simulation methods and their scaling

The choice of simulation method determines how many qubits Aer can handle, because each method stores the state differently. A full statevector needs 2 to the power n complex amplitudes; at 16 bytes per amplitude in double precision, 30 qubits already require about 16 GiB of memory, and every additional qubit doubles that figure.

Other methods trade generality for scale. The stabilizer method handles only Clifford circuits but simulates thousands of qubits in polynomial time, which makes it well suited to error-correction research. The matrix product state method compresses the state and stays efficient while entanglement remains limited, and it degrades sharply on highly entangling circuits.

MethodStoresPractical limitBest for
StatevectorAll 2^n amplitudesAbout 30-35 qubitsGeneral circuits, ideal runs
Density matrix4^n matrix elementsAbout 15-17 qubitsExact noisy simulation
StabilizerClifford tableauThousands of qubitsClifford and QEC circuits
Extended stabilizerStabilizer sumFew non-Clifford gatesNear-Clifford circuits
Matrix product stateTensor chainDepends on bond dimensionLow-entanglement circuits
Unitary2^n by 2^n matrixAbout 12-15 qubitsVerifying circuit identity
Tensor networkContracted tensors on GPUDepends on circuit structureLarge shallow circuits
Aer simulation methods compared

With method="automatic", Aer inspects the circuit and noise model and selects a method, for example stabilizer for pure Clifford circuits. Explicitly setting the method is safer in benchmarks, because the automatic choice can change between versions.

Noise models and hardware emulation

A noise model in Qiskit Aer is a set of error channels attached to specific gates, qubits and measurements. The NoiseModel class combines depolarizing errors, thermal relaxation errors derived from T1 and T2 times, coherent unitary errors and readout errors, so that simulated counts show the same imperfections as a physical processor.

The method NoiseModel.from_backend builds an approximate model from a device’s calibration data, and the fake backends in Qiskit IBM Runtime pair such models with the real coupling map and basis gates. In statevector mode, noise is applied by Monte Carlo trajectory sampling: each shot follows one randomly chosen error path, so the noisy result converges only as the shot count grows.

Error typePhysical causeTypical parameter
DepolarizingGeneric gate imperfectionError probability per gate
Thermal relaxationEnergy decay and dephasingT1, T2 and gate duration
Readout errorMisclassified measurementAssignment probabilities
Coherent errorOver-rotation or crosstalkUnitary deviation angle
Reset errorImperfect qubit initializationProbability of wrong state
Common error channels in Aer noise models

A noise model is an approximation, not a replica. Calibration-based models usually omit crosstalk, leakage and drift, so simulated fidelities tend to be more optimistic than hardware results.

Qiskit Aer occupies a specific niche among quantum circuit simulators: a local, general-purpose engine tightly integrated with the Qiskit transpiler and primitives. Its EstimatorV2 and SamplerV2 classes implement the same primitive interfaces as Qiskit Runtime, so the same program can switch between simulation and hardware with minimal changes.

ToolMain purposeRelation to Aer
Qiskit coreCircuit construction and transpilationProduces circuits Aer runs
Qiskit RuntimeExecution on IBM hardwareSame primitive interfaces
StimVery fast Clifford simulationFaster for large QEC studies
Cirq simulatorsSimulation in the Cirq stackComparable role, other SDK
CUDA-QGPU-accelerated hybrid workflowsAlternative GPU backend
How Aer relates to neighboring tools

Practical use and common mistakes

In daily practice, developers use Aer to validate circuit logic, to estimate shot budgets before hardware runs, and to benchmark error mitigation under controlled noise. GPU acceleration through the qiskit-aer-gpu build on NVIDIA hardware typically speeds up statevector runs of 25 or more qubits considerably, while small circuits gain little because of transfer overhead.

  • Running untranspiled circuits: gates outside the simulator basis raise errors or slow execution; transpile first.
  • Underestimating memory: a 34-qubit statevector needs about 256 GiB, which exceeds most workstations.
  • Too few noisy shots: trajectory sampling needs thousands of shots for stable averages.
  • Trusting ideal results: noise-free success does not predict hardware performance.
  • Comparing without seeds: set seed_simulator when results must be reproducible across runs.

The short version

Qiskit Aer is a program that pretends to be a quantum computer on an ordinary computer. A developer writes a quantum circuit, gives it to Aer, and receives the same kind of answers a real machine would give.

It is like a flight simulator for quantum programs. Pilots practice in a simulator because real flights are expensive and limited, and quantum developers test on Aer for the same reason. Aer can even add realistic mistakes that real hardware makes. Its limit is size: an ordinary computer runs out of memory after roughly 30 to 35 fully entangled qubits.

Where it makes a difference

A chemistry research group plans to estimate the ground-state energy of a small molecule with a 12-qubit variational algorithm on a cloud quantum processor. Hardware access is limited to a few hours per month, so the team first runs the full optimization loop on Aer with EstimatorV2 on a laptop, using ideal statevector simulation to confirm that the ansatz can reach the known reference energy.

Next, the team loads a noise model built from the target device calibration and repeats the runs with 8,000 shots per circuit. The simulated energy error grows from near zero to several percent, which shows that error mitigation is required. The group tests zero-noise extrapolation on Aer, selects settings that recover most of the accuracy, and only then submits jobs to hardware. The result is a much smaller hardware budget and fewer failed submissions.