NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Quantum Algorithm for Finding the Minimum

Christoph Dürr, Peter HøyerarXiv 1996

Abstract

Finding the minimum element in an unsorted list is a fundamental task in computer science. While classical algorithms require linear time to guarantee a correct result, quantum computation offers the potential for significant acceleration. This paper presents a quantum algorithm that identifies the minimum element in an unsorted table of $N$ items with $O(\sqrt{N})$ complexity. By iteratively updating a threshold and employing a specialized version of Grover’s search, the algorithm provides a quadratic speedup, maintaining optimality within a constant factor.

Introduction

In classical computing, the task of finding the minimum value in an unsorted array of $N$ elements is inherently a "linear time" problem. To ensure the absolute minimum has been identified, a classical processor must examine every single element at least once, leading to a complexity of $\Omega(N)$.

Following the introduction of Grover’s Algorithm, which demonstrated that a specific "marked" item could be found in $O(\sqrt{N})$ time, researchers began exploring broader applications of quantum speedups for fundamental data processing. A primary challenge in finding a minimum—as opposed to a specific target—is that the value of the minimum is unknown beforehand. Furthermore, the number of elements smaller than any given candidate is also unknown. This paper bridges that gap by introducing a "blind" search strategy that converges on the minimum using an iterative thresholding approach.

The Quantum Minimum Searching Algorithm

The proposed algorithm, known as the Quantum Minimum Searching Algorithm, does not attempt to find the minimum in a single pass. Instead, it uses a sequence of quantum searches to progressively lower a "threshold" value until the minimum is reached.

The Iterative Process

The algorithm follows three main stages:

  1. Initialization: An index $y$ is selected uniformly at random from the range $[0, N-1]$. The value $T[y]$ serves as the initial threshold.
  2. Iterative Search: The algorithm enters a loop where it attempts to find an index $y'$ such that $T[y'] < T[y]$. This is achieved using the Quantum Exponential Searching Algorithm, a variant of Grover's search developed by Boyer et al. (1996).
  3. Marking: In each iteration, an item $j$ is considered "marked" if its value $T[j]$ is less than the current threshold value $T[y]$.
  4. Updating: If the quantum search successfully returns an index $y'$ meeting the criteria, the threshold is updated ($y \leftarrow y'$).
  5. Termination: The loop continues until a total time-out threshold is reached. The authors calculate this limit to be approximately $22.5\sqrt{N} + 1.4 \lg^2 N$. Once the time expires, the algorithm returns the current index $y$.

The use of the "exponential" version of quantum search is critical. Unlike standard Grover search, which requires knowing the number of solutions to set the optimal number of iterations, the Boyer et al. variant can find a marked item even when the count of such items is unknown. This is essential because as the threshold $T[y]$ decreases, the number of items smaller than it also decreases, making them increasingly "rare."

Theoretical Insights

The efficiency of the algorithm rests on several key theoretical pillars:

Rank-Based Probability

A vital insight provided in the paper (Lemma 1) concerns the probability of selecting specific elements during the threshold update process. The authors prove that the probability of an element of rank $r$ (where the minimum has rank 1) being chosen as a threshold at some point during the execution is exactly $1/r$. Crucially, this probability is independent of the total size of the table $N$.

The "Moving Target" Strategy

The algorithm treats the search for the minimum as a sequence of Grover searches. Initially, when the threshold is high, many items are "marked," making them easy to find with very few quantum queries. As the threshold drops and the true minimum is approached, the "marked" items become rarer and the searches become more difficult. However, the authors demonstrate that the total expected time across all these searches remains bounded by $O(\sqrt{N})$.

Results and Performance

The algorithm achieves a total running time of $O(\sqrt{N})$, providing a quadratic speedup over the classical $O(N)$ requirement. With the specified termination time-out, the algorithm is guaranteed to succeed with a probability of at least 1/2.

For applications requiring higher reliability, the success probability can be boosted to $1 - 1/2^c$ by either:

  • Running the entire algorithm $c$ times and taking the minimum of the results.
  • Extending the duration of the time-out period.

Conclusion

The Quantum Minimum Searching Algorithm represents a significant milestone in quantum algorithm design. By adapting Grover's search to handle unknown and changing numbers of target elements, the authors demonstrated that the quadratic speedup is not limited to simple database queries but extends to fundamental optimization tasks. Given the general lower bound of $\Omega(\sqrt{N})$ for quantum searching, this algorithm is asymptotically optimal. While practical implementation awaits large-scale fault-tolerant quantum hardware, the theoretical framework remains a cornerstone of quantum complexity theory.

Summary updated

BibTeX
@misc{durr1996quantum,
  author = {Christoph Dürr and Peter Høyer},
  title = {{A Quantum Algorithm for Finding the Minimum}},
  year = {1996},
  eprint = {quant-ph/9607014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/quant-ph/9607014},
}
Figure