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.
| Option | Typical values | What it affects |
|---|---|---|
method | automatic, statevector, stabilizer | Data structure and scaling |
device | CPU, GPU | Hardware that runs the kernels |
precision | double, single | Memory use and numerical accuracy |
shots | 1 to millions | Statistical error of counts |
seed_simulator | Any integer | Reproducibility of sampled results |
max_parallel_threads | 0 for all cores | CPU parallelism |
noise_model | NoiseModel object | Whether errors are injected |
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.
| Method | Stores | Practical limit | Best for |
|---|---|---|---|
| Statevector | All 2^n amplitudes | About 30-35 qubits | General circuits, ideal runs |
| Density matrix | 4^n matrix elements | About 15-17 qubits | Exact noisy simulation |
| Stabilizer | Clifford tableau | Thousands of qubits | Clifford and QEC circuits |
| Extended stabilizer | Stabilizer sum | Few non-Clifford gates | Near-Clifford circuits |
| Matrix product state | Tensor chain | Depends on bond dimension | Low-entanglement circuits |
| Unitary | 2^n by 2^n matrix | About 12-15 qubits | Verifying circuit identity |
| Tensor network | Contracted tensors on GPU | Depends on circuit structure | Large shallow circuits |
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 type | Physical cause | Typical parameter |
|---|---|---|
| Depolarizing | Generic gate imperfection | Error probability per gate |
| Thermal relaxation | Energy decay and dephasing | T1, T2 and gate duration |
| Readout error | Misclassified measurement | Assignment probabilities |
| Coherent error | Over-rotation or crosstalk | Unitary deviation angle |
| Reset error | Imperfect qubit initialization | Probability of wrong state |
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 compared with related tools
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.
| Tool | Main purpose | Relation to Aer |
|---|---|---|
| Qiskit core | Circuit construction and transpilation | Produces circuits Aer runs |
| Qiskit Runtime | Execution on IBM hardware | Same primitive interfaces |
| Stim | Very fast Clifford simulation | Faster for large QEC studies |
| Cirq simulators | Simulation in the Cirq stack | Comparable role, other SDK |
| CUDA-Q | GPU-accelerated hybrid workflows | Alternative GPU backend |
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_simulatorwhen 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.