Interactive Calculator · Algorithms and Advantage
Quadratic Speedup Break-Even Calculator
Find the problem size and runtime at which a quantum speedup actually beats a classical machine once real clock speeds and overheads are counted.
Classical side
Quantum side
Error-corrected logical clock rate. Physical gates are faster, logical operations are much slower.
Cost of the oracle plus diffusion for one Grover iteration, in logical gates.
Break-even size N*
1.00×10¹⁶
Size at which quantum becomes faster
Runtime at break-even
115.7 days
How long the crossover problem takes
Classical time at N
16.67 minutes
Quantum time at N
1.16 days
Classical wins at this size
At N = 1.00×10¹² the classical run is 100.0 times faster. The quantum machine only wins once N exceeds 1.00×10¹⁶.Classical machine: 1.00×10⁹ candidate checks per second. Quantum machine: 10.00 quantum steps per second. A speedup that only pays off for jobs this long is useful only for problems that would otherwise take a very long time.
Runtime versus problem size
The quantum curve starts higher because each step is slow, then bends below the classical curve at the break-even size.
Compare classical and quantum runtimes using your own speeds, parallelism, and per-step costs, and find the break-even problem size and runtime for quadratic, quartic, or custom speedups.
What this calculator does
Headlines about quantum speedups quote how the number of steps scales with problem size, for example N steps classically against the square root of N steps on a quantum computer. But a speedup in step count is not a speedup in time. A classical processor can check a billion candidates per second, and it can be multiplied across thousands of cores. A fault-tolerant quantum computer performs logical operations at kilohertz to megahertz rates, and each quantum step may itself contain thousands of logical operations. So a quantum algorithm with a better exponent can lose for every problem that fits in a reasonable runtime.
This calculator makes that trade-off explicit. You describe the classical machine by its operations per second, number of cores, and operations per candidate. You describe the quantum machine by its logical clock rate and the number of logical operations in one step of the algorithm. You choose the scaling exponents of both approaches, so you can model Grover's quadratic speedup, hypothetical higher-order speedups, or any other pair. It then reports the break-even problem size, the runtime at break-even, and a comparison at any size you choose.
How to use it
Begin with the preset called Grover vs one CPU core. The classical machine checks a billion candidates per second. The quantum machine performs 100,000 logical operations per second, and each Grover iteration costs 10,000 of them, so it completes ten iterations per second. The classical time grows as N and the quantum time as the square root of N. The two curves cross at N = 10 to the 16, where each side takes about 10 million seconds, roughly 116 days. For any job shorter than that, the classical computer wins.
Now switch to the preset called Grover vs 1,000-core cluster. Giving the classical side a thousand cores multiplies the break-even size by a million, because the break-even depends on the square of the speed ratio. The crossover moves to N = 10 to the 22 and a runtime of about 317 years. In other words, if a classical cluster can attack the same unstructured search in parallel, a square-root speedup effectively never pays off. This is the central conclusion of the 2021 analysis by Babbush and coauthors, and it is why researchers hunt for higher-order speedups.
The preset called Cheap oracle, fast logical clock shows the optimistic end: if each iteration costs only 100 logical operations and the logical clock runs at a megahertz, the break-even drops to N = 10 to the 10 and a runtime of 10 seconds. That kind of efficiency is far from what real oracles achieve, but it shows which levers matter. Finally, try the quartic speedup preset, where the quantum exponent is 0.25. Even against 1,000 classical cores, the crossover falls to about 5 times 10 to the 14 and a runtime under ten minutes. A bigger gap in exponents pays off far sooner, because the break-even size shrinks as the ratio of speeds raised to one over the exponent gap.
Reading the result
Break-even is the point where both machines take the same time. Below that size the classical machine is faster, and above it the quantum machine wins by a growing factor. The runtime at break-even is the most informative number: it tells you how long a problem must take before quantum helps. A speedup whose break-even runtime is years is useful only for problems that would otherwise be impossible, and a speedup whose break-even is seconds is useful nearly everywhere.
The chart plots both runtimes against problem size on log-log axes. The quantum curve starts above the classical curve, because each step is slow, but has a shallower slope, so it eventually crosses. The horizontal lines at one hour and one year help you see where the crossover sits relative to practical timescales. If the crossing is above the one-year line, think carefully before relying on the speedup.
Assumptions and limits
The model treats both algorithms as pure power laws with a single constant, ignores error-correction overhead beyond what you fold into the logical clock rate, assumes the classical side parallelizes perfectly, and ignores data-loading costs, which can erase quantum speedups for problems with large inputs. Hoefler, Häner, and Troyer argued in 2023 that realistic advantage is likely only for problems with small data and large compute. Real algorithms have polylogarithmic factors and structure that classical solvers can exploit, so the actual crossover can be better or worse. Use the calculator to build intuition about which parameters matter, not to forecast a specific application.
The formulas behind it
Classical time
t_C(N) = N^a · c / (R_C · P)
a is the classical exponent, c operations per check, R_C operations per second per core, P cores.
Quantum time
t_Q(N) = N^b · C_q / R_Q
b is the quantum exponent, C_q logical operations per step, R_Q logical operations per second.
Break-even size
N* = (C_q · R_C · P / (R_Q · c))^(1/(a − b))
The size at which the two times are equal.
Break-even runtime
t* = (N*)^a · c / (R_C · P)
How long the crossover problem takes on either machine.
Worked examples
Grover against a single core
- R_C = 10⁹, P = 1, c = 1, C_q = 10⁴, R_Q = 10⁵, a = 1, b = 0.5.
- Candidate checks per second 10⁹, quantum steps per second 10, ratio 10⁸.
- N* = (10⁸)² = 10¹⁶ and t* = 10¹⁶ / 10⁹ = 10⁷ seconds.
ResultBreak-even at about 116 days of runtime.
Grover against a thousand cores
- Same as above with P = 1,000.
- Ratio 10¹¹, so N* = 10²², and t* = 10²² / 10¹² = 10¹⁰ seconds.
ResultAbout 317 years. Parallel classical hardware wipes out a square-root speedup.
A quartic speedup
- P = 1,000, a = 1, b = 0.25, ratio 10¹¹.
- N* = (10¹¹)^(1/0.75) = 4.6 × 10¹⁴ and t* ≈ 4.6 × 10¹⁴ / 10¹² ≈ 460 seconds.
ResultThe crossover is under ten minutes, so higher-order speedups matter far more than quadratic ones.
Frequently asked questions
Is Grover's algorithm useless then?
No, it is optimal for unstructured search and widely useful as a building block, but on its own it rarely pays off against parallel classical hardware for practical problem sizes.
What kinds of speedups would pay off?
Superpolynomial speedups, such as Shor's algorithm, and perhaps polynomial ones of high order, such as cubic or quartic.
Does faster hardware change the picture?
Yes. Raising the logical clock rate or cutting the per-step cost moves the break-even to smaller problems, which is why architecture work on speed matters.
References
- Babbush, R., et al. (2021). Focus beyond quadratic speedups for error-corrected quantum advantage. PRX Quantum, 2, 010103.
- Hoefler, T., Häner, T., & Troyer, M. (2023). Disentangling hype from practicality: On realistically achieving quantum advantage. Communications of the ACM, 66(5), 82-87.
- Campbell, E., Khurana, A., & Montanaro, A. (2019). Applying quantum algorithms to constraint satisfaction problems. Quantum, 3, 167.
- Grover, L. K. (1996). A fast quantum mechanical algorithm for database search. STOC '96, 212-219.
- Montanaro, A. (2016). Quantum algorithms: an overview. npj Quantum Information, 2, 15023.
- Dalzell, A. M., et al. (2023). Quantum algorithms: A survey of applications and end-to-end complexities. arXiv:2310.03011.
Keep exploring
- Paper: Focus Beyond Quadratic Speedups for Error-Corrected Quantum Advantage
- Paper: A Fast Quantum Mechanical Algorithm for Database Search
- Algorithm: Grover's Algorithm
- Myth: Quantum computers can solve any hard problem instantly
- Forecast: Quantum Optimization and Logistics: Promise Versus Proof
These calculators use simplified, published models for education and planning. Real devices and systems differ, so treat results as estimates. They are not engineering, investment, legal, or security advice.