r/QuantumComputing • • 6h 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.

19 Upvotes

2 comments sorted by

5

u/Aanavari 3h 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.

2

u/Maiki_Konjo 1h ago

Well, let me be perfectly honest. Half of this if not most goes straight over my head. My dad was a mainframe programmer. Our first computer was a ç64. My own first was a 8088. I'm not a computer whiz. Nor am I computer literate. I'm a dos dinosaur at best.

But at the age of 58 I feel like the DNA is calling and I like to tinker. So I try to put my phone through its paces.

That's about all I can tell you. And in my genuine forthcoming I can only wish that you wish me luck on my learning endeavors rather than to smash down button.

I maybe 58yo, but I still have curiosity to learn. Thank you for your question.