liveBook · Manning

Quadratic speedup

As explained in Quantum Programming in Depth

A quadratic speedup is an algorithmic performance improvement in which runtime scales as the square root of the corresponding classical runtime.

A quadratic speedup means reducing a corresponding classical runtime from O(N) to O(√N). Grover’s search achieves this for an unstructured black-box problem: finding one input among N possibilities requires O(√N) oracle calls instead of O(N). section 1.3.1 section 7.2.2

Interpret the speedup carefully:

  • Compare equivalent oracle-query models; the advantage concerns the number of function evaluations, not automatically total wall-clock runtime. section 1.3.1 section 7.2.2
  • Account for problem structure: indexed or partitioned classical data can outperform Grover’s black-box approach, even when the asymptotic comparison favors the quantum algorithm. section 1.3.1
  • Account for hardware and arithmetic costs, because slower quantum operations can outweigh the theoretical reduction in queries. section 1.3.1

Grover search with multiple solutions

If M of N inputs satisfy the oracle, Grover’s algorithm needs approximately √(N/M) queries, compared with an average N/M classical queries. Its iterations apply a phase oracle and a reflection about the mean before measurement; too many iterations reduce the success probability. section 7.2.2

How Quantum Programming in Depth covers it

How deep it goes
Defines O(√N) versus O(N), extends the comparison to M solutions, and stops short of a full hardware performance analysis.
Examples
Uses unstructured search, hash inversion, database retrieval, and Grover search with M marked inputs as comparison cases.
What it assumes
Assumes familiarity with classical query comparison and quantum oracles while grounding the metric in concrete search scaling.
What you can do after
Evaluate quantum search claims by comparing oracle queries, problem structure, iteration count, and implementation costs.
How it connects
Connects Grover’s search algorithm with black-box functions, quantum oracles, asymptotic complexity, and classical database structure.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.