← Atlas

Algorithms · Quantum query algorithm

Search with wildcards

Identify a hidden n-bit string x using an oracle that, for a chosen subset S of the n positions and a string y of length |S|, returns one when the substring of x specified by S equals y and zero otherwise.

Attested & literatureUpdated

Open on the mapView frozen graph

  • Record typeLiterature reference
  • Speedup class (secondary source)Polynomial
  • Primary source on the speedupNot checked against the primary source yet
  • Reported costO(√n log n) quantum queries to recover the hidden n-bit string, against the classical lower bound of Ω(n) queries. The Zoo states the problem's quantum query complexity as Θ(√n) and its classical query complexity as Θ(n); the paper's abstract claims only the upper bound and calls its algorithm nearly optimal, so the Zoo's Θ(√n) is the stronger of the two statements and both are recorded rather than reconciled. For combinatorial group testing, the second problem in the same paper, O(k log k) queries against the classical lower bound of Ω(k log(n/k)) queries, where n counts the items in the set and k bounds the special items among them rather than the bits of the hidden string above.
  • Papers1

Nobody has reviewed this record for gaps yet.

References

  • Quantum algorithms for search with wildcards and combinatorial group testing

    Andris Ambainis, Ashley Montanaro · 2012

    Primary source and the origin of the upper bounds in the cost claim: the O(√n log n) query algorithm for search with wildcards, described as nearly optimal and as beating the classical lower bound of Ω(n) queries, and the O(k log k) query algorithm for combinatorial group testing against the classical lower bound of Ω(k log(n/k)) queries. The abstract also records what the algorithm is not built from, stating that rather than using amplitude amplification or a quantum walk it is ultimately based on the solution to a state discrimination problem.

Attested & literature
  • Peer-reviewed paper
Method
Curation only. The problem statement was recorded from the literature; the speedup class is not yet checked against the record's own primary paper; the primary reference's title, authors and submission year were read from its arXiv abs page; the complexity claim was taken from a clause of that paper's abstract (abstract of arXiv:1210.1148: "We give a nearly optimal O(sqrt(n) log n) quantum query algorithm for search with wildcards, beating the classical lower bound of Omega(n) queries", and, for the second problem, "We give a simple quantum algorithm which uses O(k log k) queries to solve this problem, as compared with the classical lower bound of Omega(k log(n/k)) queries". The tight figures are from the Quantum Algorithm Zoo entry "Search with Wildcards" (LaTeX rendered into Unicode, spacing inside the reference bracket normalized): "Classically, this problem has query complexity Θ(n). As shown in [167], the quantum query complexity of this problem is Θ(√n)." The Zoo asserts a tight Θ(√n) where the abstract quoted above states only the upper bound O(sqrt(n) log n); this record carries both and settles neither.). No circuit was constructed, simulated or run.
Result
Pass · the record's problem, speedup class and primary reference agree with the two sources named above.
Caveat
This is a literature record: no circuit was constructed, compiled, simulated or run, and no hidden string was recovered here. The two sources do not agree on the tightness of the quantum bound, the abstract giving O(√n log n) as nearly optimal and the Zoo giving Θ(√n), and this record reports the disagreement rather than resolving it. Everything above is a query count in the oracle model, so gate counts, circuit depth, the number of bits a query carries and the cost of realising the wildcard oracle on hardware are outside it, as are the constant factors hidden by O(·). The attribution of the measurement to the Pretty Good Measurement is the Zoo's wording; the abstract says only that the algorithm is ultimately based on the solution to a state discrimination problem. The classical Ω(n) is quoted from the abstract as a lower bound, which is a stronger kind of claim than a comparison against the best algorithm currently known, but this record re-derives neither it nor the quantum bounds. The group-testing result is the paper's second problem and is not the subject of this Zoo entry; the Zoo places it, together with later and faster quantum algorithms for group testing that rest on papers outside this record, under its Junta Testing and Group Testing entry.
Quantum algorithms for search with wildcards and combinatorial group testing ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata only; source publication terms apply
search with wildcardsquery complexityoraclestate discriminationgroup testing

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.