r/QuantumComputing • u/Maiki_Konjo • 12d ago
Discussion Simulating a 2²⁷-dimensional Hilbert space in my pocket: Running a 27-qubit QuEST state-vector simulation locally on a $150(CAD) Moto G Play (4GB RAM / ARM64)
Usually, state-vector simulations around 27–30 qubits are reserved for workstations or cloud nodes due to the exponential memory scaling (\(2^n \times 16\text{ bytes}\) in double precision). Just to see where mobile silicon hits a wall, I compiled QuEST (Quantum Exact Simulation Toolkit) natively for ARM64 on an unrooted $150 Moto G Play (2024) (Snapdragon 680, 4GB LPDDR4X RAM) via Termux.
The Benchmark Specs:
• Qubits: 27 (tracking 134,217,728 complex amplitudes simultaneously)
• State Vector Footprint: 2,048.0 MB (locking up 50% of the phone's total physical RAM while Android 14 and a screen recorder stayed running underneath)
• Parallelization: OpenMP enabled across all 8 cores (4x Cortex-A73 + 4x Cortex-A53)
• Runtime & Normalization: Completed in 229.25 seconds (~3m 49s) with Total Prob: 1.000000 (and zero OOM-killer intervention from Android).
Obviously, 28 qubits is a hard wall in double precision since 4,096 MB immediately starves the OS, though compiling with -DPRECISION=1 (single precision) should theoretically let this little Snapdragon squeeze into a 28-qubit state space.
Here is the live execution alongside htop if anyone wants to watch a budget ARM chip grind through a 27-qubit circuit:
https://m.youtube.com/watch?v=86ZEM92j2wA
Note: My YouTube channel only had 3 subs, and 5 videos with less than 300 views combined. It's not monetized. I only posted the link because native video uploads are not enabled on this sub.
13
u/Aanavari 12d ago
What is the initial state, Hamiltonian, evolution time etc... Number of qubits is not the only thing that determines the difficulty of a simulation.
5
u/david-marqov Working in Industry 12d ago
I appreciate this video as a fun exploration of the little Motorola, and as you say, it's a nice nod to the work that the thermal and kernel team there did.
PS: Before any of us physics folk get too in the weeds here, go look at the OP's other videos, and appreciate the fun they are having playing with old operating systems and quirky simulations. The Cray X-MP video made me smile.
2
u/Cold-Teach-9617 12d ago
Very nice 👍
1
u/CoolblackApps 12d ago
Nice experiment. Fitting 27 qubits into 4 GB without Android killing the process is tight, well done.
Two things that might be fun to try:
Our small team builds simulators and benchmarks them a lot, so I'd be curious what numbers you get.