← Atlas

Algorithms · Quantum walk

Subset finding by quantum walk

In L-subset finding, a black box f maps a domain D of size N into a range R, and a property P picks out some L-element subsets by their arguments and values. The task is to find an L-subset {x₁, …, x_L} of D whose pairs ((x₁, f(x₁)), …, (x_L, f(x_L))) satisfy P, or to reject if none exists, using as few queries as possible. Unstructured search is the case L = 1 and element distinctness the case L = 2.

Attested & literatureUpdated

Open on the mapView frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

A discrete-time quantum walk on a 4-cycle

One coin qubit, two position qubits (4 positions on a cycle), 3 steps starting at position 0.

q0q1q2Step 1 of 3 · Quantum walk step (4-cycle)Quantum walk step (4-cycle)Step 2 of 3 · Quantum walk step (4-cycle)Quantum walk step (4-cycle)Step 3 of 3 · Quantum walk step (4-cycle)Quantum walk step (4-cycle)

Step 1 of 3 · Quantum walk step (4-cycle)

Probability of each outcome after this step

  • 01150%
  • 11050%
  1. Flips the coin with a Hadamard, then shifts the position by +1 if the coin is |1⟩ or -1 mod 4 if the coin is |0⟩; with the coin in superposition, both shifts happen at once, entangling coin and position.

    Probability leaves the outcome it was on and appears on 2 entirely different ones — not one outcome is populated both before and after. This is the step that entangles the qubits: from here on no single qubit has a state of its own, only the register as a whole does.

  2. The same coin flip and shift, applied again.

    Probability leaves all 2 outcomes it was on and appears on 4 entirely different ones — not one outcome is populated both before and after.

  3. The same coin flip and shift, a third time.

    Probability leaves all 4 outcomes it was on and appears on 2 entirely different ones — not one outcome is populated both before and after. The entanglement comes apart here: each qubit has a state of its own again.

Readout The position always reads 3, for either value of the coin: constructive interference on this small cycle concentrates the walk onto a single position after exactly 3 steps.

Open in Studio
  • Record typeLiterature reference
  • Speedup class (secondary source)Polynomial
  • Primary source on the speedupNot stated by the primary source — the full text of arXiv:quant-ph/0311038 — abstract, section I (introduction), section II (algorithm), section III (analysis), section IV (applications), section V (open problems), the note added and the references. The word "classical" does not appear in the body text. Every comparison the paper makes is against quantum query lower bounds — the Ω(√N) bound for L = 1 and the Ω(N^(2/3)) bound for element distinctness — rather than against the cost of a classical algorithm. was read and makes no such claim
  • Reported costO(N^(L/(L+1))) queries for L-subset finding. The L-clique application is given in two variants: a simple one using O(N^(2L/(L+1))) edge queries and a recursive one using Õ(N^((5L−2)/(2L+4))), which the abstract says is an improvement for L ≤ 5.
  • Papers1

A part this method uses, worked through

This page says Grover diffusion operators — here is a concrete, runnable instance of it.

Grover's algorithm finds |101⟩

3 qubits, searching for |101⟩ among 8 states, with 2 Grover iterations.

q0q1q2Hadamard layer(3)Phase oracle(101)Grover diffuser(3)Phase oracle(101)Grover diffuser(3)

Where it ends up

  • 10195%
  • 0001%
  • 1101%
  • 0011%
  • 4 more outcomes3%

Measuring gives 101, the marked state, with high probability.

One of its steps changes only phase: the outcome probabilities stay put while the state does not.

Open this part in Studio

This record is not a concrete circuit.

References

  • Quantum algorithms for subset finding

    Andrew M. Childs, Jason M. Eisenberg · 2003

    Primary source, and the source of this record's cost claim. Consult it for the uniqueness promise the analysis assumes, for the spectral argument that fixes the two iteration counts, and for section V, where the matching lower bound for general L is left as a conjecture and the best known bound is stated as Ω(N^(2/3)) independent of L.

Attested & literature
  • Peer-reviewed paper
Method
Curation only. The problem statement was recorded from the literature; the speedup class is checked against the record's own primary paper, which does not state it; 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:quant-ph/0311038: "an O(N^{L/(L+1)})-query algorithm for finding L equal numbers… One of these algorithms uses O(N^{2L/(L+1)}) edge queries, and the other uses Õ(N^{(5L−2)/(2L+4)}), which is an improvement for L ≤ 5."; section III, Theorem 1: "The quantum query complexity of L-subset finding is O(N^{L/(L+1)})."; section IV, for the two clique variants: "choosing M = ⌊N^{L/(L+1)}⌋ gives an overall query complexity of O(N^{2L/(L+1)})" and "choosing M = ⌊N^{L/(L+2)}⌋ gives an overall query complexity of Õ(N^{(5L−2)/(2L+4)})".). 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 built, compiled, simulated or run, and no subset was found here. The clean bound is proved under a uniqueness promise — section II supposes there is exactly one special subset, and hands the general case to standard sampling techniques in Ambainis's separate paper rather than analysing it here — so the multi-solution case is not covered by anything in this document. The figures are query counts in an oracle model and the paper says outright that for the general problem it is not concerned with how P is given or how efficiently it can be checked, so time complexity, gate counts and the cost of realizing the oracle are all outside it. No matching lower bound is proved for general L: the paper conjectures Ω(N^(L/(L+1))) and states that the best lower bound known is Ω(N^(2/3)), independent of L, for every L ≥ 2, and it does not claim its clique algorithms are optimal. The Zoo classes this entry as a polynomial speedup; that class is the Zoo's, because the paper compares itself only to quantum lower bounds and never states a classical cost.
Quantum algorithms for subset finding ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata only; source publication terms apply
subset findingelement distinctnessquantum walkquery complexityclique

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