I'm teaching an introductory 12 week course on Quantum Oracle Engineering

Sep 06, 2026 08:00 PM - 1 week ago 6

Most quantum speedup claims dangle connected an oracle that exists only on paper. This people teaches the trade of building applicable quantum circuits from scratch.

Choose the problem, build the oracle

1. A different computer

A robot scratching its caput while holding a quantum processor chip
  • CPU, GPU, QPU: 3 devices, 3 workloads
  • the QPU’s job: fewer samples for an average
  • order 1 complete epsilon queries successful spot of order 1 complete epsilon squared samples
  • three questions: task randomness, precision, oracle cost
  • Grover connected a database loses to data loading
  • break-even: t oracle little than t rotation complete C times P times g

View slides

2. The Monte Carlo speedup

Two dice tumbling crossed a greenish felt table
  • a query count is not a runtime
  • the payoff qubit’s perspective encodes the win probability
  • amplitude estimation sounds that perspective to precision ε
  • best of k arms: omega of k complete epsilon squared samples vs order guidelines k complete epsilon, up to logs queries
  • Go fails mobility 1, the bandit fails mobility 3
  • Sway: gaps of 10⁻⁴ connected a 32×32 board
  • the aforesaid oracle style fits an epidemic model

3. Ship it

An unfastened crate of instrumentality parts sitting connected an unread blueprint
  • the contract: board, 2 moves, randomness tape, payoff qubit
  • one round: Black places, White places, every stone rolls
  • the register layout successful Qiskit
  • a azygous move prime complete the legal cells
  • the d20 arsenic a 5-bit comparison against a neighbor count
  • 3×3, 2 rounds: 169 qubits

4. Reversible by design

A cassette portion pinch its ribbon spooled retired successful a loop down it
  • amplitude estimation runs the rollout forward and backward
  • decide from the aged board, constitute to a shadow board, keep the aged one
  • in-place updates publication a neighbour that already flipped
  • erase move-selection scratch earlier the board changes
  • one payoff qubit, everything other inverted
  • the qubit and gross count arsenic the committee grows

Make it correct

5. Garbage collection

A trash tin overflowing pinch bags that were ne'er hauled away
  • reversible circuits person no delete
  • entangled scratch breaks interference
  • Bennett: compute, transcript out, uncompute
  • the inverse must spot the same inputs arsenic the forward pass
  • peak scratch sets the qubit count
  • clean scratch is necessary, not sufficient

6. Measure to erase

A cracked jar of h2o patched pinch bandages, still leaking
  • the textbook says never measure mid-circuit
  • compilers measurement scratch to reclaim qubits
  • Gidney’s AND†: an X-basis measurement alternatively of a Toffoli
  • a random sign, fixed by one shape gate
  • half the T gates of an adder
  • safe erstwhile scratch holds a basis function of the data

7. Calling conventions

Interlocking gears meshing separator to edge, each bony having to fresh its neighbor
  • three scratch classes: clean, borrowed, conditionally clean
  • Qiskit passes the reuse information arsenic unchecked convention
  • a artifact tin destroy its ain condition
  • two correct blocks, 1 unguaranteed boundary
  • restoration types: Hoare contracts over subspaces
  • a 12-bit oracle: 20 qubits to 13

8. Proof-carrying circuits

A sealed jar of identical bluish pills pinch a azygous reddish 1 inside
  • truth tables cannot spot a phase
  • full-basis checking costs 2ⁿ
  • certificates replayed by a Lean kernel
  • gate-by-gate checking needs closure nether the gate set
  • past Toffoli, assertions turn exponentially
  • one theorem per family, checked in milliseconds

Count it, trial it, judge it

9. Where the quantum lives

A manus pulling a book from a shelf, reddish ray spilling from the gap
  • a process that runs step by step
  • between immoderate 2 steps, classical bits would do
  • no 1 classical bearer useful for all steps at once (Bisio)
  • the SHIFTS channel: 1 qubit in, 2 out, built to show it
  • the quantum lives successful the memory betwixt steps

10. All aliases nothing

 each portion is cheap, the full is not
  • running n copies does not amortize
  • quantum memory: zero aliases linear successful n, nothing between
  • log n and root n scalings ruled out
  • the aforesaid rule for preparing states
  • SHIFTS: astatine slightest 0.03 qubits per copy
  • a theorem, pinch constants

11. Test, don’t trust

A handbasket of reddish apples pinch 1 rotten pome hidden successful the middle
  • a trial pinch single-qubit measurements only
  • a correct instrumentality passes every time
  • q qubits of representation walk pinch probability astatine most two to the q times 1 minus gamma to the n
  • too small representation fails exponentially fast
  • the instrumentality stays a black box

12. Audit the adjacent claim

Pages flying disconnected a clipboard faster than anyone tin cheque them
  • the AI era’s assumption: compute closes every gap
  • the one complete g squared wall: mini gaps, irreducible randomness
  • weak baselines, query counts sold arsenic runtimes
  • ignored parallelism, solver randomness arsenic task randomness
  • oracle costs hidden down “assume oracle access”
  • the 3 questions connected a headline claim, live
More