Classical versus quantum algorithmic complexity
Specify the problem, the input size and the resource before claiming a speedup.
- Separate query complexity from gate cost and wall-clock time.
- State the assumptions behind Grover’s quadratic query advantage.
Count the right resource
Section titled “Count the right resource”An algorithm’s complexity describes how a chosen resource grows with input size. The resource might be oracle queries, gates, memory, measurements or physical runtime. These are related, but they are not interchangeable.
For a list of possibilities with one marked item, unstructured classical search needs order queries in the usual black-box model. Grover search uses order oracle queries for bounded success probability. This is a quadratic query improvement, not an exponential one.
Input size can change the wording
Section titled “Input size can change the wording”If , classical exhaustive search takes order queries and Grover takes order . Both expressions are exponential in the bit-length n; the square-root relation in N remains the useful comparison.
Costs outside a query
Section titled “Costs outside a query”Preparing inputs, constructing the oracle, compiling gates, correcting errors, running shots and extracting useful classical outputs can all matter. A formal oracle advantage does not automatically survive those costs in an application.
Small browser timing comparisons would mainly measure a classical simulator and JavaScript implementation choices. This site therefore does not present their runtime as hardware speedup evidence.
Practise
Section titled “Practise”In the Grover explorer, compare one marked item among four and among eight possibilities. Count iterations and success probability. Explain what the small example verifies, then list the costs it excludes.
For a stronger claim, specify a matched classical baseline, the same task and success criterion, comparable budgets, and the uncertainty of any measured results.
Reference: IBM Quantum — Fundamentals of quantum algorithms.
Ready for the next step?
Your progress stays in this browser.