Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

BBHT exponential search

Also known as Grover search with an unknown number of solutions, Exponential searching

quantum quantum-planning

BBHT runs Grover search when the number of marked states is not known. Each round picks an iteration count j uniformly below a bound m, applies j Grover iterations, measures and checks the measured candidate, for j + 1 queries. After a failed round the bound grows by a factor of 6/5, inside the paper's 1 < λ < 4/3, from 1 up to √N. The search stops at the first candidate that passes the check, or when the call has spent its query budget, cutting the last round short to fit; a returned index is always marked, but no result can also mean that the budget was too small. The expected cost is O(√(N/M)) queries for M of N states marked, and a budget of 9·(⌊√N⌋ + 1) makes a miss rare; use it when you do not know how many solutions exist.

Pseudocode

algorithm BBHT(oracle, N, max-queries)input: phase oracle over N basis states, query budget max-queries for this calloutput: a marked index, or nilm ← 1q ← 0                                            ▷ queries spent by this callwhile q < max-queries doj ← uniform integer in 0, …, ⌈m⌉ − 1j ← min(j, max-queries − q − 1)                ▷ the last round fits the budgetamplify(oracle, j)                             ▷ j quantum queriesi ← sample(measure all qubits)q ← q + j + 1if check(oracle, i) then                       ▷ one classical queryreturn im ← min(6/5 · m, √N)                           ▷ λ = 6/5return nil                                       ▷ no marked state, or the budget was too small

In the crates

  • quantum-planning

    Grover search when the number of solutions is unknown: random iteration counts from a growing range, until a measured candidate passes the check.

    search_unknown

Lineage

Comes from

builds on Grover search

Led to

Nothing on this site.

Papers

  1. Tight Bounds on Quantum Searching Michel Boyer, Gilles Brassard, Peter Høyer, Alain Tapp · 1998· Fortschritte der Physik introduces doi 10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP493>3.0.CO;2-P arXiv quant-ph/9605034