<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ninad Hirani</title>
    <description>The latest articles on DEV Community by Ninad Hirani (@ninadhirani).</description>
    <link>https://dev.to/ninadhirani</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272382%2F6fc4574b-5605-45c3-8a97-73ebe464afed.png</url>
      <title>DEV Community: Ninad Hirani</title>
      <link>https://dev.to/ninadhirani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ninadhirani"/>
    <language>en</language>
    <item>
      <title>When the quantum algorithm loses: what I learned benchmarking QAOA against a classical solver</title>
      <dc:creator>Ninad Hirani</dc:creator>
      <pubDate>Sun, 29 Nov 2026 14:31:22 +0000</pubDate>
      <link>https://dev.to/ninadhirani/when-the-quantum-algorithm-loses-what-i-learned-benchmarking-qaoa-against-a-classical-solver-5hh9</link>
      <guid>https://dev.to/ninadhirani/when-the-quantum-algorithm-loses-what-i-learned-benchmarking-qaoa-against-a-classical-solver-5hh9</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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?&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;The classical solver found the optimum. The tested quantum configurations did not reliably concentrate probability on the optimal solutions.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why publish a negative result
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took away
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The preprint is open access: &lt;a href="https://doi.org/10.5281/zenodo.23394482" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23394482&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More of my work: &lt;a href="https://ninadhirani.me" rel="noopener noreferrer"&gt;https://ninadhirani.me&lt;/a&gt;&lt;/p&gt;

</description>
      <category>quantumcomputing</category>
      <category>python</category>
      <category>research</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
