Skip to main content
KetQat

Appearance

Theorem · intermediate

Quantum query lower bound for unstructured search

Any quantum algorithm that finds the marked item among N with probability at least 1/2, for every possible position of the mark, must query the oracle Omega(sqrt N) times; Grover search is therefore optimal up to a constant factor.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Suppose a quantum algorithm making TT queries outputs, for every x∈{0,…,N−1}x \in \{0, \dots, N-1\}, the value xx with probability at least 1/21/2 when run with the oracle OxO_x. Then

T  ≥  316N−32N,T \;\ge\; \frac{3}{16}\sqrt{N} - \frac{3}{2\sqrt N} ,

so T=Ω(N)T = \Omega(\sqrt N). The same bound holds for the bit oracle ∣y⟩∣b⟩↦∣y⟩∣b⊕[y=x]⟩\ket{y}\ket{b} \mapsto \ket{y}\ket{b \oplus [y = x]}, which is equivalent to OxO_x up to one ancilla.

This is the theorem of Bennett, Bernstein, Brassard and Vazirani, who used it to show that, relative to a random oracle, NP\mathsf{NP} is not contained in BQTIME(o(2n/2))\mathsf{BQTIME}(o(2^{n/2})). Boyer, Brassard, Høyer and Tapp sharpened the constant, and Zalka proved that Grover's algorithm is exactly optimal: no algorithm with fewer queries achieves the same success probability. The constant 3/163/16 above is not tight: the standard hybrid argument already gives T≥N2(2−2/N−2−2)≈0.32NT \ge \tfrac{\sqrt N}{2}\big(\sqrt{2 - 2/\sqrt N} - \sqrt{2 - \sqrt 2}\big) \approx 0.32\sqrt N, and Grover search uses about (π/4)N(\pi/4)\sqrt N queries.

Holds when

  • Query model - the algorithm is a sequence of fixed unitaries interleaved with TT calls to the oracle; only oracle calls are counted.
  • For x∈{0,…,N−1}x \in \{0, \dots, N-1\} the oracle OxO_x multiplies the query basis state ∣x⟩\ket{x} by −1-1 and acts as the identity on all other query states and on the workspace.

Proof

Proof of the search lower bound (hybrid argument)Machine-checked

Setup. The algorithm acts on a query register with basis {∣y⟩:0≤y<N}\{\ket{y} : 0 \le y < N\} and a workspace. With oracle OO it produces UTOUT−1O⋯U1OU0∣0⟩U_T O U_{T-1} O \cdots U_1 O U_0 \ket{0} for fixed unitaries U0,…,UTU_0, \dots, U_T. Write ∣ψtx⟩\ket{\psi_t^x} for the state just after UtU_t when the oracle is OxO_x, and ∣ψt⟩\ket{\psi_t} for the same with every oracle call replaced by the identity. Let Πx=∣x⟩⟨x∣⊗I\Pi_x = \ketbra{x}{x} \otimes I, so that Ox=I−2ΠxO_x = I - 2\Pi_x, and put Dtx=∥∣ψtx⟩−∣ψt⟩∥D_t^x = \lVert \ket{\psi_t^x} - \ket{\psi_t} \rVert; D0x=0D_0^x = 0.

One query moves the state little. Since ∣ψt+1x⟩−∣ψt+1⟩=Ut+1(Ox∣ψtx⟩−∣ψt⟩)\ket{\psi_{t+1}^x} - \ket{\psi_{t+1}} = U_{t+1}\big(O_x\ket{\psi_t^x} - \ket{\psi_t}\big) and Ox∣ψtx⟩−∣ψt⟩=Ox(∣ψtx⟩−∣ψt⟩)+(Ox−I)∣ψt⟩O_x\ket{\psi_t^x} - \ket{\psi_t} = O_x(\ket{\psi_t^x} - \ket{\psi_t}) + (O_x - I)\ket{\psi_t},

Dt+1x≤Dtx+∥(Ox−I)∣ψt⟩∥=Dtx+2∥Πx∣ψt⟩∥.D_{t+1}^x \le D_t^x + \lVert (O_x - I)\ket{\psi_t} \rVert = D_t^x + 2\lVert \Pi_x\ket{\psi_t} \rVert .

Hence DTx≤2∑t=0T−1∥Πx∣ψt⟩∥D_T^x \le 2\sum_{t=0}^{T-1} \lVert\Pi_x\ket{\psi_t}\rVert.

Summing over the marked position. For each tt, ∑x∥Πx∣ψt⟩∥2=∥∣ψt⟩∥2=1\sum_x \lVert\Pi_x\ket{\psi_t}\rVert^2 = \lVert\ket{\psi_t}\rVert^2 = 1, so by Cauchy–Schwarz ∑x∥Πx∣ψt⟩∥≤N\sum_x \lVert\Pi_x\ket{\psi_t}\rVert \le \sqrt N. Therefore

∑x=0N−1DTx≤2TN.\sum_{x=0}^{N-1} D_T^x \le 2T\sqrt N .

Success forces movement. Let pxp_x be the probability that the final measurement outputs xx on the state ∣ψT⟩\ket{\psi_T} (empty oracle). Since ∑xpx≤1\sum_x p_x \le 1, at most N/4N/4 indices have px>4/Np_x > 4/N, so at least 3N/43N/4 indices satisfy px≤4/Np_x \le 4/N. For each of these, the outcome xx has probability at least 1/21/2 on ∣ψTx⟩\ket{\psi_T^x} and at most 4/N4/N on ∣ψT⟩\ket{\psi_T}. The difference of the probabilities of one outcome is at most the trace distance of the two states, which for unit vectors ∣u⟩,∣v⟩\ket u, \ket v is 1−∣⟨u∣v⟩∣2≤∥∣u⟩−∣v⟩∥\sqrt{1 - \lvert\braket{u}{v}\rvert^2} \le \lVert\ket u - \ket v\rVert (because 1−∣⟨u∣v⟩∣2≤2(1−Re⁡⟨u∣v⟩)1 - \lvert\braket{u}{v}\rvert^2 \le 2(1 - \operatorname{Re}\braket{u}{v})). Hence DTx≥1/2−4/ND_T^x \ge 1/2 - 4/N for at least 3N/43N/4 values of xx, and

2TN≥∑xDTx≥3N4(12−4N)=3N8−3.2T\sqrt N \ge \sum_x D_T^x \ge \frac{3N}{4}\Big(\frac12 - \frac4N\Big) = \frac{3N}{8} - 3 .

Dividing by 2N2\sqrt N gives T≥316N−32NT \ge \tfrac{3}{16}\sqrt N - \tfrac{3}{2\sqrt N}.

Bit oracle. With an ancilla prepared in ∣−⟩\ket{-}, the bit oracle acts as OxO_x on the remaining registers; conversely OxO_x is the bit oracle conjugated by fixed gates on an ancilla. Any algorithm for one oracle is thus an algorithm for the other with the same number of queries, and the bound transfers.

This is the hybrid argument of Bennett, Bernstein, Brassard and Vazirani; section 6.6 of Nielsen and Chuang gives a closely related version for the exact case.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Charles H. Bennett, Ethan Bernstein, Gilles Brassard, Umesh Vazirani (1997). Strengths and weaknesses of quantum computing. SIAM Journal on Computing 26(5), 1510-1523. doi:10.1137/S0097539796300933arXiv:quant-ph/9701001
  2. Christof Zalka (1999). Grover's quantum searching algorithm is optimal. Physical Review A 60, 2746. doi:10.1103/PhysRevA.60.2746arXiv:quant-ph/9711070
  3. Michel Boyer, Gilles Brassard, Peter Høyer, Alain Tapp (1998). Tight bounds on quantum searching. Fortschritte der Physik 46, 493-505. arXiv:quant-ph/9605034

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Bound re-derived by the hybrid argument (sum over x of squared distances at most 4T^2; success at least 1/2 bounds each final distance; Cauchy-Schwarz), giving T >= (sqrt N/2)(sqrt(2-2/sqrt N) - sqrt(2-sqrt 2)); a numerical check over N up to 10^6 confirmed this implies the stated (3/16)sqrt N - 3/(2 sqrt N) wherever that is positive. Attributions compared with BBBV arXiv:quant-ph/9701001 Theorem 3.5 (NP not in BQTime(o(2^(n/2))) relative to a random oracle), Boyer-Brassard-Hoyer-Tapp arXiv:quant-ph/9605034 Section 7 Theorem 7 (floor(sin(pi/8) sqrt N) for success at least 1/2) and Zalka arXiv:quant-ph/9711070 abstract (optimal for any success probability).

    The record said the constant 3/16 is 'what the short hybrid argument gives'; no source gives that constant and the standard hybrid argument gives about 0.32 sqrt N. The stated bound is true (weaker); replaced that sentence with the explicit hybrid bound, re-derived here.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 044f6442cc4a0009. Source file knowledge/records/theorem/search-lower-bound.md in the content repository (readable there once it is public).