Expand description
§Quantum planning
Quantum algorithms for planning and search, on simulators: Grover search, quantum backtracking, amplitude estimation, quantum walks on game trees and QAOA.
§Scope
- A state-vector simulator (
StateVector) withH,X,Z, phase and multi-controlledZgates, measurement probabilities and seeded sampling over anyrand_core::Rng - Grover search over candidate plans, with phase oracles (
PhaseOracle) built from validity checks, for a known (grover::search_known) and an unknown (grover::search_unknown, BBHT) number of solutions - Quantum backtracking (Montanaro) as a quantum walk on search trees (planned)
- Amplitude estimation for Monte Carlo value estimates, as used in MCTS rollouts (planned)
- Quantum-walk evaluation of game trees (NAND trees) (planned)
- QAOA circuits for QUBO-encoded planning problems (planned)
- Query-count comparisons against the classical algorithms
§Query count
The algorithms count oracle queries, not simulator work: one application of a
PhaseOracle is one query, and one classical check of a measured candidate is one
query. Compare these counts with the queries of a classical scan.
The crate is no_std and needs alloc for the amplitudes.
Repository: https://github.com/sunsided/quantum-planning
Modules§
- grover
- Grover search: amplitude amplification of the states that a
PhaseOraclemarks.
Structs§
- Complex
- A complex number
re + i·imwithf64parts. - Phase
Oracle - A phase oracle built from an
Oracleand a map from basis index to candidate. - Split
Mix64 - The
SplitMix64generator: fast, seedable and reproducible on every platform. - State
Vector - The state of an
n-qubit register as2^ncomplex amplitudes. - TooMany
Qubits - The error for a register with more than
MAX_QUBITSqubits.
Constants§
- MAX_
QUBITS - The largest register the simulator accepts:
2^24amplitudes, 256 MiB of state.
Traits§
- Oracle
- A predicate that marks valid candidates, the oracle of a quantum search.