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

Hacker News Top News

Summary

A 12-week introductory course on quantum oracle engineering covering practical quantum circuit construction, Monte Carlo speedups, reversible computing, and Qiskit implementation.

No content available
Original Article
View Cached Full Text

Cached at: 09/06/26, 03:24 PM

# Quantum Oracle Engineering Source: [https://shukla.io/quantum-oracle-engineering/](https://shukla.io/quantum-oracle-engineering/) Most quantum speedup claims depend on an oracle that exists only on paper\. This course teaches the craft of building practical quantum circuits from scratch\. Choose the problem, build the oracle ## 1\. A different computer - **CPU, GPU, QPU**: three devices, three workloads - the QPU’s job:**fewer samples**for an average - **![order one over epsilon](https://shukla.io/quantum-oracle-engineering/assets/eq-theta-eps.svg)**queries in place of**![order one over epsilon squared](https://shukla.io/quantum-oracle-engineering/assets/eq-theta-eps2.svg)**samples - **three questions**: task randomness, precision, oracle cost - Grover on a database loses to**data loading** - break\-even:**![t oracle less than t roll over C times P times g](https://shukla.io/quantum-oracle-engineering/assets/eq-break-even-inline.svg)** [View slides](https://shukla.io/quantum-oracle-engineering/a-different-computer/) ## 2\. The Monte Carlo speedup ![Two dice tumbling across a green felt table](https://shukla.io/quantum-oracle-engineering/img/myth02.png)- a**query count**is not a runtime - the payoff qubit’s angle**encodes the win probability** - **amplitude estimation**reads that angle to precision ε - best of k arms:**![omega of k over epsilon squared](https://shukla.io/quantum-oracle-engineering/assets/eq-omega-k.svg)**samples vs**![order root k over epsilon, up to logs](https://shukla.io/quantum-oracle-engineering/assets/eq-otilde-k.svg)**queries - **Go**fails question 1, the**bandit**fails question 3 - **Sway**: gaps of 10⁻⁴ on a 32×32 board - the same oracle shape fits an**epidemic model** ## 3\. Ship it ![An open crate of machine parts sitting on an unread blueprint](https://shukla.io/quantum-oracle-engineering/img/myth03.png)- the contract: board, two moves, randomness tape,**payoff qubit** - one round: Black places, White places,**every stone rolls** - the**register layout**in Qiskit - a uniform move choice over the**legal cells** - the d20 as a**5\-bit comparison**against a neighbor count - 3×3, two rounds:**169 qubits** ## 4\. Reversible by design ![A cassette tape with its ribbon spooled out in a loop behind it](https://shukla.io/quantum-oracle-engineering/img/myth04.png)- amplitude estimation runs the rollout**forward and backward** - decide from the old board, write to a**shadow board**, keep the old one - **in\-place updates**read a neighbor that already flipped - erase**move\-selection scratch**before the board changes - one**payoff qubit**, everything else inverted - the**qubit and gate count**as the board grows Make it correct ## 5\. Garbage collection ![A trash can overflowing with bags that were never hauled away](https://shukla.io/quantum-oracle-engineering/img/myth05.png)- reversible circuits have**no delete** - entangled scratch**breaks interference** - **Bennett**: compute, copy out, uncompute - the inverse must see the**same inputs**as the forward pass - **peak scratch**sets the qubit count - clean scratch is**necessary, not sufficient** ## 6\. Measure to erase ![A cracked jar of water patched with bandages, still leaking](https://shukla.io/quantum-oracle-engineering/img/myth06.png)- the textbook says**never measure**mid\-circuit - compilers measure scratch to**reclaim qubits** - Gidney’s**AND†**: an X\-basis measurement instead of a Toffoli - a random sign, fixed by**one phase gate** - **half the T gates**of an adder - safe when scratch holds a**basis function**of the data ## 7\. Calling conventions ![Interlocking gears meshing edge to edge, every tooth having to fit its neighbor](https://shukla.io/quantum-oracle-engineering/img/myth07.png)- three scratch classes:**clean, borrowed, conditionally clean** - Qiskit passes the reuse condition as**unchecked convention** - a block can**destroy its own condition** - two correct blocks, one**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 blue pills with a single red one inside](https://shukla.io/quantum-oracle-engineering/img/myth11.png)- truth tables**cannot see a phase** - full\-basis checking costs**2ⁿ** - certificates replayed by a**Lean kernel** - gate\-by\-gate checking needs**closure**under the gate set - past**Toffoli**, assertions grow exponentially - **one theorem per family**, checked in milliseconds Count it, test it, judge it ## 9\. Where the quantum lives ![A hand pulling a book from a shelf, red light spilling from the gap](https://shukla.io/quantum-oracle-engineering/img/myth09.png)- a process that runs**step by step** - between any two steps,**classical bits**would do - no one classical carrier works for**all steps at once**\(Bisio\) - the**SHIFTS channel**: one qubit in, two out, built to show it - the quantum lives in the**memory between steps** ## 10\. All or nothing ![One oversized box balanced on a stack of small ones: each piece is cheap, the whole is not](https://shukla.io/quantum-oracle-engineering/img/myth12.png)- running n copies**does not amortize** - quantum memory:**zero or linear**in n, nothing between - **![log n](https://shukla.io/quantum-oracle-engineering/assets/eq-log-n.svg)and![root n](https://shukla.io/quantum-oracle-engineering/assets/eq-sqrt-n.svg)**scalings ruled out - the same law for**preparing states** - SHIFTS: at least**0\.03 qubits per copy** - a**theorem**, with constants ## 11\. Test, don’t trust ![A basket of red apples with one rotten apple hidden in the middle](https://shukla.io/quantum-oracle-engineering/img/myth08.png)- a test with**single\-qubit measurements**only - a correct device passes**every time** - q qubits of memory pass with probability at most**![two to the q times one minus gamma to the n](https://shukla.io/quantum-oracle-engineering/assets/eq-mem-bound.svg)** - too little memory fails**exponentially fast** - the device stays a**black box** ## 12\. Audit the next claim ![Pages flying off a clipboard faster than anyone can check them](https://shukla.io/quantum-oracle-engineering/img/myth10.png)- the AI era’s assumption:**compute closes every gap** - the**![one over g squared](https://shukla.io/quantum-oracle-engineering/assets/eq-g2.svg)wall**: tiny gaps, irreducible randomness - **weak baselines**, query counts sold as runtimes - **ignored parallelism**, solver randomness as task randomness - oracle cost hidden behind**“assume oracle access”** - the three questions on a**headline claim**, live

Similar Articles