Quantum minimum finding
A search-based algorithm for finding the smallest value in an oracle-accessible table.
On this page
Definition, purpose and input assumptions
Quantum minimum finding updates a candidate threshold by searching for an item below it. The input is a coherent value or comparison oracle over N indexed values, with a defined ordering and tie policy. The Durr-Hoyer algorithm gives square-root-scale query complexity with a probabilistic success guarantee. This is a query-model result, not an assertion that an arbitrary stored spreadsheet can be minimized faster after all access costs.
Mathematical mechanism
A threshold y defines a marked predicate f_y(j)=[T[j]<T[y]]. Quantum search can find a smaller candidate when one exists. The threshold improves as candidates are replaced. The analysis accounts for the changing marked fraction and random rank of the current candidate; naively paying the hardest search cost at every update gives the wrong bound.
A coherent comparison must preserve index and value information or uncompute its workspace. Value precision affects whether nearly equal entries are distinguishable.
Fully solved reference example
Take T=(8,3,7,1). If the initial threshold is index 0 with value 8, indices 1,2,3 are marked. A returned index 1 changes the threshold to 3, leaving only index 3 marked. A four-item Grover search with that single marked entry succeeds exactly after one ideal iteration, returning value 1.
If the initial threshold were already index 3, no smaller item exists. The algorithm needs a valid stopping and confidence procedure rather than interpreting a failed search run as an absolute proof. This example gives a possible exact threshold path; it does not claim that every random run follows it.
Limitations and classical comparison
Classical minimum finding needs N-1 comparisons in the worst case without extra structure. Quantum query savings can be offset by expensive coherent lookup, comparisons or fault tolerance. Sorted tables and special data structures change the classical baseline and should not be compared against an unnecessary scan.
Scientific relationships
Quantum minimum finding uses Grover search and reversible comparison circuits. It is distinct from amplitude estimation, which estimates a marked fraction rather than returning a minimum index.
A threshold path on eight distinct values
Let T=(9,4,6,1,8,3,7,2). In increasing order, the minimum is index three with value one, followed by indices seven, five, one, two, six, four, zero. Assign rank one to the minimum and rank eight to the maximum. If the current threshold is index zero, seven indices are marked as smaller. A possible verified update to index two changes the threshold to six and leaves four marked indices. Updating next to index five gives threshold three and leaves only indices three and seven marked.
At that last threshold, the marked fraction is 2/8=1/4. One ideal Grover iteration on a uniform index state succeeds exactly, and symmetry gives equal probabilities for the two smaller values. It may return the actual minimum one or the still-improvable value two. A successful search below a threshold therefore does not by itself mean that the global minimum has been reached. The returned value must be loaded or evaluated, compared with the old threshold, and adopted according to the update rule.
A value oracle can be used to compute T[j] into a workspace, compare it with the current classical threshold, apply a phase, and reverse both computations. If the value evaluation costs C_T and the reversible comparison costs C_cmp, an abstract predicate call expands into forward and inverse evaluation plus the comparison and cleanup. The index search complexity cannot absorb those costs into a unit operation without declaring that oracle model.
Exact rank dynamics in an idealized update model
Suppose the initial rank is uniform on one through N, and each successful search returns a uniformly chosen smaller rank. Let h(r) be the expected number of replacements needed to reach rank one from rank r, ignoring the work required to discover that no smaller value remains. Then h(1)=0 and h(r)=1+[h(1)+...+h(r-1)]/(r-1). The solution is h(r)=H_{r-1}, where H_m=1+1/2+...+1/m.
The recurrence can be verified by subtracting neighboring equations, which gives h(r+1)-h(r)=1/r. Averaging over the initial rank yields (1/N)Σ_{r=1}^N H_{r-1}=H_N-1. For N=8, this is 481/280, approximately 1.71786 replacements. The figure is smaller than the number of comparisons in a classical scan, but each quantum replacement can involve many coherent predicate uses. Counting threshold updates alone would therefore misstate the algorithm's cost.
The probability that rank r is ever visited in this idealized decreasing process is 1/r. For rank N it is 1/N, since only initialization can visit it. Working downward, its probability is the direct initialization chance plus contributions from every higher visited rank that chooses r among its smaller ranks. This gives 1/N+Σ_{k=r+1}^N 1/[k(k-1)]=1/r by telescoping. The minimum is visited with probability one in the ideal successful-update process.
Why the weighted search costs sum to a square-root scale
A threshold of rank r has r-1 marked indices, so a search cost scale is proportional to √(N/(r-1)). Weighting by the probability of visiting that rank gives a total scale proportional to √N Σ_{r=2}^N 1/[r√(r-1)]. The sum stays bounded as N increases: its terms decrease like r^{-3/2}. This calculation explains why paying a worst-case √N cost for every one of a logarithmic number of expected updates is unnecessarily pessimistic.
The rank argument is not a complete stopping algorithm. It assumes successful, uniformly distributed smaller-rank samples and excludes the final no-smaller-item case. A complete minimum-finding procedure supplies an unknown-marked-count search schedule, a runtime budget, and a failure guarantee. Failure of a single search attempt cannot certify that the current rank is one. The cited algorithm's full analysis addresses those missing pieces; the rank calculation isolates the mechanism behind the aggregate scaling.
If repeated complete runs each return a verified correct minimum with probability at least a fixed constant, their independent failure probabilities can be reduced by repetition and selecting the smallest returned verified value. The cost of this confidence amplification is separate from the within-run threshold updates. A returned candidate can always be checked against its reported value, but proving global minimality classically by comparison with every other item costs a full scan.
Ties, precision, and classical alternatives
Equal values require a stated objective. Returning any index attaining the minimum is different from returning the lexicographically first minimizer. A tie-breaking key (value,index) defines a strict total order and restores unique ranks, but it changes the comparator and possibly its bit width. Approximate values also need enough precision to distinguish gaps relevant to the ordering; an uncertain comparison is not automatically a valid exact oracle.
For an explicit classical array, a scan takes N-1 comparisons and uses constant additional storage. Sorted input, an existing minimum index, or a maintained heap changes that baseline. Coherent access to a previously classical table may require a data structure whose preparation dominates the quantum query saving. Draw an analytic table with the eight ranks and a possible threshold path, followed by the visit probability 1/r and the weighted search terms. Label the path one allowed realization, and distinguish the exact rank-process calculation from the separate algorithmic confidence and stopping guarantees.
Sources
Verification scope
Selected source text checked ·
Full text indexed, 2 pages, 248 lines. Primary minimum-finding paper retrieved; threshold pivot, finite stopping budget and probability guarantee inspected.
Access and topic assumptions inspected; no exhaustive theorem-by-theorem external review, quantum hardware execution, or empirical advantage claim. Original definitions and finite examples are not reproduced source passages.
Verification scope
Recorded source check ·
The version date comes from the arXiv submission record.
Theoretical or mathematical source anchor; original definitions and worked instances are independent. No experimental or end-to-end performance claim inferred.