DEV Community

Ninad Hirani
Ninad Hirani

Posted on

When the quantum algorithm loses: what I learned benchmarking QAOA against a classical solver

People ask what quantum computing research is like as an undergrad. My honest answer: formulating penalty terms, checking energy spectra, and reading a lot of optimization literature.

On 15 October I published a preprint on Zenodo (DOI 10.5281/zenodo.23394482). The question behind it: can the Quantum Approximate Optimization Algorithm do useful work on the Capacitated Vehicle Routing Problem?

The setup

CVRP asks for the cheapest set of delivery routes for a fleet of vehicles with limited capacity. It is NP-hard, and it is one of the standard benchmarks for combinatorial optimisation.

I encoded CVRP as a QUBO (Quadratic Unconstrained Binary Optimisation) problem, mapped it onto an Ising Hamiltonian, and ran QAOA at depth p = 2 on a seeded instance with 3 customers and 2 vehicles. Then I benchmarked the same instances against a classical solver: Google OR-Tools' guided local search.

The result

The classical solver found the optimum. The tested quantum configurations did not reliably concentrate probability on the optimal solutions.

That is the main result of the paper, and I want to be plain about it: at this scale and depth, the hybrid approach lost to a well-tuned classical method.

Why publish a negative result

A reproducible negative baseline is worth more to the field than another overclaimed demo. The preprint documents the QUBO formulation, the penalty weights, the Hamiltonian scaling and the circuit depths in full, and scopes its conclusions honestly, so anyone can pick up where it stops.

What I took away

Near-term quantum optimisation is not magic. The interesting work is in knowing exactly where it loses to classical methods, and why: penalty-term design, depth limits, and how solution constraints interact with the variational landscape.

If you are an undergrad wondering whether to publish, a careful negative result teaches you more than a demo that only works on the slide.

The preprint is open access: https://doi.org/10.5281/zenodo.23394482

More of my work: https://ninadhirani.me

Top comments (0)