Quantum Algorithms Database
Quantum Minimum Finding
Finds the minimum value in an unsorted list quadratically faster than classical exhaustive search, using a repeated application of Grover's Algorithm.
Last reviewed September 30, 2026. Check the linked sources for anything that may have changed since.
Year
1996
Inventor(s)
Christoph Dürr and Peter Høyer
Speedup Type
Quadratic Speedup
Difficulty
★★☆☆☆
Overview
Quantum minimum finding locates the smallest value in an unsorted list of N numbers using about the square root of N queries, where a classical computer must look at about N entries. It works by calling Grover's search repeatedly, each time asking whether any entry is smaller than the best one found so far.
The result is a quadratic speedup for one of the most basic operations in computing, finding an extreme value. Because minimum and maximum finding are subroutines inside many larger algorithms, including graph algorithms, clustering, and optimization, this algorithm is widely used as a building block.
The problem
Find the index of the minimum element in an unsorted list of N items — classically requires O(N) comparisons.
History
Christoph Dürr and Peter Høyer posted the algorithm in 1996, soon after Grover's search algorithm appeared, in a paper called A Quantum Algorithm for Finding the Minimum. Their analysis showed that the expected number of queries is proportional to the square root of N and that the algorithm succeeds with probability at least one half, which can be boosted by repetition.
The method rests on the exponential-search variant of Grover's algorithm by Boyer, Brassard, Høyer, and Tapp, which handles the case where the number of solutions is unknown. Later work by Dürr, Heiligman, Høyer, and Mhalla applied it to graph problems such as minimum spanning trees and shortest paths in 2004, and Ambainis and others used related ideas for quantum walk algorithms. A matching lower bound of the order of the square root of N follows from the general optimality of Grover's algorithm.
Intuition
Finding the minimum can be rephrased as a sequence of search problems. Pick any entry as a candidate. Ask whether there is an entry smaller than the candidate. If yes, find one with Grover's algorithm and make it the new candidate. Keep going until no smaller entry exists.
The key observation is that the number of entries smaller than the candidate shrinks as the candidate improves, and Grover's search is fastest when many solutions exist. If the candidate is chosen at random, then on average its rank is in the middle of the list, so the first search has about half of the entries as solutions and is quick. Each success moves the candidate to a better rank, and the expected total work is dominated by the final stages, where few entries are smaller, which cost about the square root of N in total.
A careful analysis shows that the sum of the costs over all rounds is a geometric-like series that adds up to a constant times the square root of N, rather than the square root of N times the number of rounds.
How it works
Picks a random element as the current minimum. Uses Grover's search to find any element smaller than it. Repeats this until no smaller element is found. Requires O(√N) oracle calls on average.
- Choose a random index y as the current threshold, and read the value T of y.
- Define the oracle that marks every index i with T of i less than the current threshold value.
- Run Grover's search with an unknown number of solutions, using the exponential schedule of iteration counts, to find a marked index.
- If a marked index i is found, set y equal to i and return to step 2 with the new threshold.
- If no marked index is found after a time proportional to the square root of N, conclude that y is the minimum.
- Output the index y and its value, which is correct with probability at least one half, and repeat the whole procedure to increase confidence.
Worked example
Take a list of 1,000,000 numbers in no particular order. A classical algorithm reads every entry, a million operations. The quantum algorithm picks a random starting entry, which has expected rank around 500,000. Grover's search for a smaller entry succeeds quickly because half of the list qualifies. After the first improvement, the threshold's rank is around a quarter of the way, then an eighth, and so on, each round costing more because fewer entries qualify.
The total number of Grover iterations is a small multiple of the square root of 1,000,000, which is 1,000. The original analysis gives a constant factor around 22 for the leading term, so a practical run uses a few tens of thousands of oracle calls, versus a million classically.
Complexity and resources
| Quantum queries | O(square root of N) with success probability at least one half |
|---|---|
| Classical queries | N for an unsorted list |
| Lower bound | Omega of the square root of N, so the algorithm is optimal |
| Qubits | About log N for the index register plus a register holding the threshold and ancillas for comparison |
| Variants | Finding the maximum, the k smallest values, or the minimum of a function over a structured domain |
Hardware needs
A fault-tolerant computer able to run Grover iterations over a large index register.
Quantum random access memory for the list, or a function that computes the entries coherently.
A reversible comparator to mark entries smaller than the threshold.
Real-world impact
Useful for optimization problems where finding the best solution requires scanning many candidates — a component in quantum branch-and-bound algorithms for combinatorial optimization.
Applications
Subroutine in graph algorithms for connectivity, minimum spanning trees, and shortest paths, with polynomial speedups.
Nearest-neighbor and clustering steps, such as assigning points to the closest center.
Optimization by exhaustive search over a candidate set, for example in discrete optimization with a computable objective.
A component in quantum algorithms for machine learning and combinatorial search.
Limitations
- The speedup is quadratic, which can be negated by the overhead of error correction and by data loading.
- The data must be accessible coherently, which is a problem for large classical lists.
- The success probability is constant for one run, so repetition is needed for high confidence.
- For structured problems, classical algorithms may exploit structure and beat the unstructured bound.
Common misconceptions
- It does not sort the list. It finds only the minimum.
- It does not look at all entries at once and compare them. It uses interference to amplify small entries.
- It cannot beat the square root bound for unstructured data.
How it compares
Grover's algorithm finds a marked item, while minimum finding finds the smallest, using repeated Grover searches.
Quantum counting and amplitude estimation give other order statistics, such as the median, with similar speedups.
Classical algorithms for sorted or structured data can find extremes in logarithmic time.
Why it matters
Minimum finding turns Grover's search from a yes-or-no tool into a way of solving optimization problems over unstructured candidate sets. It is the cleanest example of a reduction from optimization to search, and it shows the quadratic speedup extends to many problems built from comparison.
It also illustrates the careful design of quantum algorithms with unknown numbers of solutions, a recurring difficulty that the exponential schedule solves.
Finding the smallest entry in a table
Durr and Hoyer's 'A Quantum Algorithm for Finding the Minimum' (arXiv quant-ph/9607014) finds the position of the smallest entry in a table of N items in time O(c sqrt(N)), where increasing the constant c pushes the chance of returning the correct position toward certainty. The abstract gives the success probability as at least 1 - 1/2^c. The page I opened does not say explicitly whether this bound counts queries or all steps.
The method repeatedly uses Grover-style search: pick a random threshold item, search for any item smaller than it, move the threshold to what you find, and repeat. Each round shrinks the set of items that are still smaller, and the total cost stays at order sqrt(N).
Where it is used and its limits
Minimum finding is a subroutine for optimisation, clustering and graph algorithms that need a smallest value. As with all Grover-based methods, the speedup is quadratic, the oracle for comparing values must be built as a quantum circuit, and the advantage on real hardware depends on error-correction overhead. It does not solve NP-hard optimisation in general, because the number of candidate solutions N is itself exponential.
- Cost: about sqrt(N), against about N classical comparisons.
- Error: failure probability at most 1/2^c for running time scaling with c.
- Building block: repeated threshold search using Grover iterations.
Frequently asked questions
What does quantum minimum finding do?
It finds the smallest element of an unsorted list using about the square root of N queries, by repeatedly searching for entries smaller than the current best.
Who invented it?
Christoph Dürr and Peter Høyer in 1996, building on Grover's algorithm.
How fast is it?
Quadratically faster than classical search, with expected queries proportional to the square root of N.
Is it optimal?
Yes, in the black-box model. No quantum algorithm can find the minimum of an unstructured list with fewer than about the square root of N queries.
Where is it used?
In graph algorithms, clustering, and optimization procedures as a subroutine that replaces a classical minimum operation.
Related algorithms
References and further reading
Sources opened and checked on December 1, 2026. Resource estimates and claims change, so check the originals.
- A Quantum Algorithm for Finding the Minimum (arXiv (C. Durr, P. Hoyer)) Opened. Source for the O(c sqrt N) time and the 1 - 1/2^c success probability.
- A fast quantum mechanical algorithm for database search (arXiv (L. K. Grover)) Opened. The search routine used inside.