Quantum computing is in the news for the worrying reason this month: on 2 December the NSA told national security systems to speed up their move to post-quantum cryptography, before the CNSA 2.0 deadlines of 2027. The fear behind it is a large quantum computer running Shor's algorithm against RSA and elliptic curves.
The quantum computers that exist today are small and noisy, so most quantum software is written and tested on a simulator, and the simulator runs on a GPU. NVIDIA's CUDA-Q and Qiskit Aer with cuQuantum are what research groups use to check algorithms and error-correction schemes before they get time on real hardware.
We rented the hardware anyone can rent on ParalonCloud and measured how far it goes: one RTX 5090 (32 GB), a pair of them, and one H200 NVL (141 GB). The answer to "how far" also explains why a GPU will never be the thing that breaks your encryption.
Why memory decides everything
A full simulation keeps the whole quantum state in memory: 2ⁿ complex numbers for n qubits, 8 bytes each in single precision (FP32), 16 in double (FP64). Every qubit you add doubles it:
| Qubits | FP32 state | FP64 state | Fits on |
|---|---|---|---|
| 30 | 8 GiB | 16 GiB | any 24 GB card |
| 31 | 16 GiB | 32 GiB | RTX 5090 in FP32 |
| 32 | 32 GiB | 64 GiB | two RTX 5090s, or an H200 |
| 33 | 64 GiB | 128 GiB | H200, in FP32 and FP64 |
| 34 | 128 GiB | 256 GiB | H200, FP32 only |
| 50 | 8 PiB | 16 PiB | a large supercomputer's entire memory |
That table is exactly what we hit. CUDA-Q stopped at 32 qubits on one RTX 5090 ("State vector exceeds configured GPU and CPU memory") and at 35 on the H200.
What we measured
The test circuit is 20 layers of rotations (RX and RY on every qubit) with a brickwork of CNOTs between neighbours, sampled 1000 times. That is the shape of a variational circuit, the kind people actually iterate on. Seconds per circuit:
| Qubits | 16-core CPU (Ryzen 9950X3D) | RTX 5090, FP32 | H200, FP32 | RTX 5090, FP64 | H200, FP64 |
|---|---|---|---|---|---|
| 26 | 3.78 | 0.034 | 0.022 | 0.35 | 0.030 |
| 28 | 15.9 | 0.139 | 0.093 | 1.50 | 0.128 |
| 30 | 0.607 | 0.426 | 6.43 | 0.593 | |
| 31 | 1.25 | 0.92 | does not fit | 1.29 | |
| 32 | 4.23 on two cards | 1.92 | 2.69 | ||
| 33 | 4.02 | 5.43 | |||
| 34 | 8.32 | does not fit |
The GPU columns are CUDA-Q (nvidia target, cuStateVec underneath), except the two-card 32-qubit figure, which is Qiskit Aer (see below). The CPU column is Qiskit Aer on all 32 threads of the 5090 machine's own processor. A quantum Fourier transform on the same cards took about half as long as the layered circuit at every size: 0.73 s at 31 qubits on the 5090, 3.6 s at 34 on the H200.
What that means:
- A GPU is the difference between waiting and iterating. At 28 qubits the RTX 5090 ran the circuit 115 times faster than a 16-core desktop CPU, and the H200 170 times. Even with the same Qiskit code on both, the GPU was 38 times faster.
- In FP32 the H200 is only about 1.4 times faster than an RTX 5090. Simulation is limited by memory bandwidth, and the gap in bandwidth is smaller than the gap in price. What the H200 buys in FP32 is room: three more qubits.
- In FP64 the H200 is 11 times faster. Consumer cards run double precision at a small fraction of their FP32 speed, and it shows: 6.43 s against 0.59 s at 30 qubits. If your work needs double precision (chemistry, long error-correction runs where rounding adds up), it needs a data-center GPU.
- Each extra qubit doubles the time as well as the memory. From 30 to 34 qubits on the H200 went from 0.43 s to 8.3 s: four qubits, about twenty times longer.
The Qiskit setting that matters on Blackwell
Qiskit Aer with device="GPU" and nothing else was barely faster than the CPU on the RTX 5090: 4.9 s at 28 qubits, against 15.9 s on the CPU. Turning on NVIDIA's cuStateVec backend made it 12 times faster:
from qiskit_aer import AerSimulator
sim = AerSimulator(method="statevector", device="GPU",
precision="single", cuStateVec_enable=True)
| Qubits, RTX 5090, Qiskit Aer | without cuStateVec | with cuStateVec | CUDA-Q |
|---|---|---|---|
| 28 | 4.94 s | 0.42 s | 0.14 s |
| 31 | 43.4 s | 3.62 s | 1.25 s |
CUDA-Q was still about three times faster than Qiskit with cuStateVec on the same card. If you write new code, start with CUDA-Q; if you have Qiskit code, add the one argument.
Two RTX 5090s: 32 qubits
32 qubits in FP32 is 32 GiB, a little more than one RTX 5090 holds. Split over two cards it fits. Qiskit Aer does that in one process with cache blocking, and with cuStateVec on it ran the 32-qubit circuit in 4.2 s (46 s without it):
sim = AerSimulator(method="statevector", device="GPU", precision="single",
blocking_enable=True, blocking_qubits=28,
cuStateVec_enable=True)
CUDA-Q's multi-GPU target (nvidia with option="mgpu") crashed on this machine with a segmentation fault. It moves the state between cards over MPI, and the OpenMPI that Ubuntu ships is built without CUDA support; consumer cards have no peer-to-peer link either. It needs a CUDA-aware MPI build, which we did not set up for this test.
What it costs
At the catalogue rental price on the day, for a thousand runs of the 30-qubit circuit:
| FP32, 1000 runs | FP64, 1000 runs | |
|---|---|---|
| RTX 5090, $0.57/h | 10 minutes, about $0.10 | 1 h 47 min, about $1.02 |
| H200 NVL, $3.80/h | 7 minutes, about $0.45 | 10 minutes, about $0.63 |
Single precision up to 31 qubits: the RTX 5090 is the cheaper card by a factor of four. Double precision, or more than 32 qubits: the H200 is both faster and cheaper per result. Everything in this article, both machines, installation included, cost us under a dollar.
So can a GPU break RSA?
No, and the numbers above show why. One H200 tops out at 34 qubits. Each qubit doubles the memory, so 50 qubits would take 8 petabytes, and the qubits needed to factor a 2048-bit RSA key are counted in thousands of error-corrected ones: Craig Gidney's 2025 estimate is under a million noisy physical qubits running for about a week. No simulator gets anywhere near that. Classical simulation is useful precisely because it covers the small circuits researchers need to check, and it runs out exactly where real quantum hardware would start to matter.
The reason to move to post-quantum cryptography is the real quantum computers being built, and data recorded today that could be decrypted by one later. The new algorithms (ML-KEM, ML-DSA) are ordinary math that runs fine on a CPU; switching to them is a software update, not a hardware purchase.
How to run it
On a rented machine with an NVIDIA GPU (an RTX 5090 or an H200), about three minutes of installing:
python3 -m venv ~/q && . ~/q/bin/activate
pip install cudaq cuquantum-python-cu12 "qiskit<2" qiskit-aer-gpu
python cudaq_bench.py nvidia fp32 24 31 # single precision, 24 to 31 qubits
python cudaq_bench.py nvidia fp64 24 30 # double precision
CUSV=1 python aer_bench.py GPU single 24 31 # Qiskit Aer with cuStateVec
python aer_multi_gpu.py 30 32 28 # Qiskit Aer over every visible GPU
Things to know:
qiskit-aer-gpu0.15 needs Qiskit 1.x. With Qiskit 2 it fails at import (cannot import name 'convert_to_target').- Aer checks memory before it starts and refused 34 qubits on the H200, where CUDA-Q ran them. CUDA-Q goes one qubit further on the same card.
- FP32 is CUDA-Q's default on the
nvidiatarget; ask foroption="fp64"when you need it, and expect a consumer card to slow down by about ten times.
Good to know
- This is full statevector simulation. Tensor-network and stabilizer simulators (also in cuQuantum) go far past 34 qubits for circuits with the right structure, such as shallow circuits or error-correction codes made of Clifford gates. The memory wall above is for general circuits.
- We timed one circuit shape with 1000 shots. Deeper circuits take longer in proportion to their gate count; the memory limit does not move.
- Single-node only. A multi-node cluster pushes the statevector limit a few qubits further, at a large cost in interconnect; NVIDIA's 2026 record runs used thousands of GPUs.
The scripts and the raw output of every run: cudaq_bench.py, aer_bench.py, aer_multi_gpu.py, results.txt.
Want to try it? Rent an RTX 5090 or an H200, billed by the minute.



