liveBook · Manning

Unstructured search

As explained in Quantum Programming in Depth

A search problem in which the possible inputs have no exploitable structure for organizing or accelerating lookup.

Unstructured search finds an input producing a desired output when the search space offers no exploitable organization. Given a black-box function with N possible inputs, Grover’s algorithm uses O(√N) queries instead of O(N) classically. section 1.3.1

Treat the problem as a hybrid quantum-classical workflow:

  • Prepare and convert the classical problem data for the quantum subroutine. section 7.0
  • Represent the target function with an oracle; phase oracles encode function values in amplitude signs, while marking oracles use an additional qubit. section 7.4
  • Run Grover’s algorithm, interpret its probabilistic result, and classically verify that the returned input satisfies f(x₀) = 1. section 7.4
  • Compare query and implementation costs with the best classical approach rather than assuming a practical quantum advantage. section 1.3.1

Black-box function inversion

A deterministic function maps each input bit string to one bit. The task is to find x₀ such that f(x₀) = 1, without using information about the function’s internal implementation. Hash inversion illustrates a search setting where exploitable classical structure may be unavailable. section 7.4 section 1.3.1

Figure 7.1 Solving a classical problem on a quantum computer involves converting the problem to its “quantum” formulation, implementing the quantum algorithm as code, and evaluating the performance of the quantum solution to compare it to that of the classical algorithms for solving the same problem.
figure

Follow the workflow from classical problem formulation to quantum implementation and performance evaluation. section 7.0

How Quantum Programming in Depth covers it

How deep it goes
Explains black-box complexity, oracle encodings, hybrid execution, probabilistic output, and classical verification.
Examples
Uses function inversion, hash inversion, database search, and deterministic bit-valued functions as search examples.
What it assumes
Assumes deterministic functions, input bit strings, classical oracle access, and basic quantum-computing workflow concepts.
What you can do after
Evaluate Grover-based searches, implement their oracle-driven workflow, and validate returned candidates classically.
How it connects
Connects Grover’s algorithm with quantum oracles, phase kickback, hybrid quantum-classical algorithms, and classical database search.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.