1. Home
  2. Quantum Computing
  3. Free Quantum Simulator for Your Laptop: What to Use
Quantum Computing

Free Quantum Simulator for Your Laptop: What to Use

Published on November 26, 2026 · by Qubira 8 min read
Free Quantum Simulator for Your Laptop: What to Use

If you want to run quantum programs today without paying anything or waiting in a queue, a quantum simulator on your own laptop is the answer. For anything up to roughly 25 qubits, an ordinary machine with 16 GB of RAM handles it comfortably, and the free tools are good: Qiskit Aer for most people, Cirq if you like Google’s ecosystem, PennyLane if you care about quantum machine learning, and Quirk if you would rather drag gates around in a browser than write code.

Free
Our quick pickInstall Qiskit with qiskit-aer if you plan to write Python; open Quirk in a browser tab if you just want to see how gates behave. Both cost nothing, need no account, and cover everything a beginner needs.

What a simulator actually does

A simulator is not a toy quantum computer. It is a normal program that keeps track of every amplitude in the quantum state and updates them gate by gate with linear algebra. Because it follows the maths exactly, an ideal simulator gives you the same probabilities a perfect quantum machine would, and that is why it is the standard tool for checking an algorithm before you spend any hardware time on it.

The catch is baked into the method. A system of n qubits needs 2ⁿ complex numbers to describe it, so each added qubit doubles the memory and roughly doubles the work. That single fact explains the whole landscape of simulators, from why a laptop stops at around 30 qubits to why researchers keep building cleverer ones. If you want the background on why qubits work this way, our guide on what a qubit is covers it, and the one on quantum logic gates shows what the simulator is applying at each step.

The memory wall, with real numbers

This is the part that decides what your laptop can do, so it is worth doing the arithmetic. Standard double-precision simulation stores each amplitude as a complex number taking 16 bytes. That gives a clean rule: memory is 16 bytes times 2ⁿ.

QubitsAmplitudesMemory for the stateRealistic on a laptop?
101,02416 KBInstant on anything
20about 1 million16 MBYes, a second or two
25about 33 million512 MBYes, with any modern machine
28about 268 million4 GBYes on 16 GB, slower
30about 1.07 billion16 GBOnly with 32 GB or more
32about 4.3 billion64 GBWorkstation or server territory

These are the raw state sizes, computed from the formula above. Real programs need extra working memory on top, so treat the “realistic” column as a rule of thumb, not a guarantee.

Two practical consequences follow. First, the jump from 28 to 30 qubits is not a small step, it is four times the memory, and that is where most laptops give up. Second, if you switch to single precision you halve the memory and can gain about one extra qubit, at the cost of some numerical accuracy. For learning, you will almost never need either trick. Nearly every textbook example, Bell states, Grover on a handful of items, the quantum Fourier transform on a few qubits, sits comfortably under 15 qubits.

Which free simulator should you pick?

Qiskit Aer is where we point most people. It is the fast simulator that ships separately from the core Qiskit library, it runs on your CPU out of the box, and it offers several methods: full state vector, density matrix, stabilizer, and matrix product state. It also lets you attach a noise model, which matters more than it sounds, as we explain below. If this is your plan, the walkthrough in our first Qiskit circuit guide gets you from install to results in a few minutes.

Cirq is Google’s open-source framework, and it comes with its own simulators plus qsim, a high-performance one written in C++. Cirq feels lower level than Qiskit and has fewer hand-holding tutorials, but if you are drawn to Google’s hardware or research papers, it is the natural home.

PennyLane is built for quantum machine learning and hybrid quantum-classical work, where circuits sit inside an optimization loop that trains parameters. Its default simulator is fine for small circuits and its Lightning backends are faster. If you came here from the machine learning side, start here, and read our piece on whether quantum computers can speed up machine learning first to keep your expectations honest.

Quirk is a free, open-source circuit simulator that runs in your browser. You drag gates onto wires and watch the state update live, with no installation and no code. It is the best tool we know for building intuition about superposition and entanglement, and it is limited to a modest number of qubits, which is fine for what it is for.

IBM Quantum Composer is similar in spirit, a visual editor, but it requires a free IBM account. It earns its place because the same circuit can be sent to real hardware afterwards.

A small example you can run now

Here is a 20-qubit entangled state, a GHZ state, which would be impossible to write on paper but trivial for a simulator. With Qiskit and Aer installed (pip install qiskit qiskit-aer), it looks like this:

from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator

n = 20
qc = QuantumCircuit(n)
qc.h(0)
for i in range(n - 1):
    qc.cx(i, i + 1)
qc.measure_all()

sim = AerSimulator(method="statevector")
result = sim.run(transpile(qc, sim), shots=1000).result()
print(result.get_counts())

On an ideal simulator you should see only two outcomes, all zeros and all ones, split roughly evenly. That is entanglement across twenty qubits, and the state behind it holds a million amplitudes. Library versions change over time, so if an import fails, check Qiskit’s current documentation rather than assuming your install is broken.

💡 Start small on purpose. Run everything at 3 to 5 qubits first and print the results. Bugs in a circuit are much easier to spot when there are only a few possible outcomes, and you will not mistake a typo for a quantum effect.

How some simulators beat the wall (and why they only sometimes can)

You may have read that simulators exist which handle hundreds or even thousands of qubits. That is true, and it does not contradict the wall, because those tools only work on circuits with a special structure.

A stabilizer simulator, such as Stim or Aer’s stabilizer method, handles circuits made only of a limited gate family called Clifford gates, and it does so in polynomial time. This is why researchers can simulate error-correcting codes at large scale, a topic we cover in quantum error correction explained. The trade-off is that Clifford-only circuits are not universal, so they cannot run the interesting algorithms.

A matrix product state method works well when entanglement between parts of the system stays low, and gets expensive fast when it does not. It is useful for chain-like, shallow circuits and useless for the heavily entangled ones where quantum computers are supposed to shine.

If you find yourself needing 40 or 50 qubits of general simulation, you are into supercomputer territory, which is exactly why those sizes are used as benchmarks for quantum advantage claims.

What a simulator cannot tell you

Honesty matters here, because simulators can make everything look better than it will be on a real device. An ideal simulation has no decoherence, no gate errors and no readout errors. Your circuit works perfectly on the simulator and then returns noisy mush on hardware, and beginners often assume they made a mistake. They did not. Real qubits lose their state quickly, as we explain in quantum decoherence explained.

The fix is to add a noise model in the simulator, which makes it behave much more like a real device, and then to run on actual hardware at least once. Our guide to trying a quantum computer for free shows how to do that without paying. Use the simulator to develop and debug, and use hardware to learn what noise does to your idea.

If your machine is the bottleneck, the cheapest upgrade is memory. Check what your laptop supports before buying, and you can browse laptop RAM kits on Amazon once you know the type. Do not do this just to learn quantum computing, though. Sixteen gigabytes already takes you past every beginner exercise, and the people who need 30 qubits of simulation are not beginners.

  • A simulator is normal software that tracks 2ⁿ amplitudes, so memory doubles with every qubit.
  • A laptop with 16 GB handles about 28 qubits at most; most learning needs under 15.
  • Qiskit Aer for Python, Quirk for visual play, PennyLane for quantum machine learning, Cirq for Google's ecosystem.
  • Ideal simulators hide noise. Add a noise model and test once on real hardware.

If you only do one thing today, install Qiskit Aer and run the example above, then change the number of qubits and watch how long it takes. A few minutes of that teaches you more about why quantum hardware matters than most articles can, including this one. For the bigger picture, start with our pillar guide, quantum computing explained.

FAQ

Is a quantum simulator the same as a quantum computer?
No. A simulator is ordinary software that calculates what a quantum circuit would do, using a normal CPU. It gives the same answers an ideal quantum computer would, but it gets exponentially more expensive as you add qubits, which is exactly the problem real quantum hardware is meant to avoid.
Can I use a simulator to learn Qiskit or Cirq properly?
Yes, and it is the best way to start. Every concept up to and including noise, measurement statistics and circuit design can be learned on a simulator. The only thing you skip is the quirks of real hardware, which you can meet later through a free cloud account.
Does a GPU help with quantum simulation?
It can. Qiskit Aer, Cirq's qsim and PennyLane's Lightning family all have GPU-capable builds for NVIDIA cards, and large state-vector runs are one of the things GPUs are good at. For circuits under about 20 qubits it makes little practical difference, because a CPU finishes in moments anyway.
Why can some simulators handle hundreds of qubits?
Because they only handle special circuits. Stabilizer simulators like Stim work with Clifford-only circuits, and matrix product state methods work when entanglement stays low. For a general circuit, there is no shortcut and the memory wall applies.
Will my simulator results match a real quantum computer?
Only if you add noise. An ideal simulator gives perfectly clean results, while real hardware gives noisy ones. Most toolkits let you plug in a noise model, and some can copy the measured noise of a specific IBM device, which gets you closer.