Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
Quantum & QUBO

quantum-planning

Quantum algorithms for planning and search, on simulators: Grover search, quantum backtracking, amplitude estimation, quantum walks on game trees and QAOA

cargo add quantum-planning

Who it is for

  • Researchers, students and teachers of quantum speedups for search: exact Grover search with a known number of solutions and BBHT exponential search with an unknown number, on a state-vector simulator. The oracle is an ordinary validity check on a candidate, such as "is this plan valid", so the same predicate serves a classical and a quantum search.
  • Honest query-count comparisons: every phase-oracle application and every classical check of a measured candidate counts as one query. Put these counts next to a classical scan over the same oracle, and the √N against N gap shows on real instances, not only in the formula.
  • `no_std` demos: the crate needs only alloc, so it runs in WebAssembly, for example in a browser page that shows the amplitudes change from one Grover iteration to the next.

It is a simulator: its memory doubles with each qubit and stops at 24 qubits, so it finds no solution faster than a classical search does. To solve plans, use heuristic-search for state-space search, constraint-search for constraint problems and game-tree-search for two-player games.

Algorithms 2

  • BBHT exponential search Grover search with an unknown number of solutions · Exponential searching

    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