Manuscript Oai279-A@1 · Oai279-A.tex · lemma · a1abc73f
Lemma: Conditional fixed-gate implementation of the last step
Stage 1: audit the five interfaces without importing them › Interface 4: completion, deferred filters, and exact output · lines 645–678 · proof included or linked
Oai279-A@1#lem:last-step
Suppose a unitary preparation , preserving a classical input, uses frozen-alphabet gates on workspace qubits, and has a success flag of probability exactly . Suppose every successful basis output is correct. Then one amplification step gives probability-one correct output using at most
gates and at most extra clean scratch qubits.
Proof. The success sign is on its flag, costing two gates. The reflection about is implemented, up to a global minus sign, by , a sign flip on the all-zero workspace, and .
For the zero test, negate all workspace bits, compute their conjunction by a Toffoli chain, apply , uncompute, and undo the negations. For , this costs
gates and clean scratch qubits. For , use , also of cost four. All scratch returns to zero.
Counting the initial preparation and the two preparations in the reflection gives three uses of or . Lemma lem:amplification proves correctness. No input-dependent rotation is used.
Displayed formulas in this passage
unlabeled · line 653
unlabeled · line 668
Nearby in this section
- section: Interface 4: completion, deferred filters, and exact output
- lemma: Lemma: The padding needed for p *>1/2
- section: Interface 4: completion, deferred filters, and exact output
- lemma: Lemma: Exact amplification requires the correct probability
- section: Interface 4: completion, deferred filters, and exact output
- section: Interface 4: completion, deferred filters, and exact output