verify_amplitude_amplification
QC-009 Amplitude amplification: the Grover oracle check plus the presented iterate count. THE BOUND IS N=4: oracle is a 0/1 string of length exactly 4 with exactly one 1 (e.g. 0001), marked is the index of that 1 (e.g. 3), and iterations must be 1 - one Grover iterate at N=4 is exact, so oracle=0001, marked=3, iterations=1 -> WIN 'iters=1 grover=WIN'. Any other oracle length (2, 3, 5..8) is REFUSED_INSTANCE_BOUND 'oracle length L: this court grades N=4 only; the law for other lengths is not built' - the court refuses rather than certify an iterate count it cannot check. A presented witness is verified; no amplitude is estimated. All three fields required. Floats refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| marked | Yes | 0-based index of the 1 (the marked entry), decimal. e.g. 3 | |
| oracle | Yes | 0/1 string, length 2..8, exactly one 1, e.g. 0001 | |
| iterations | Yes | presented iterate count, decimal; 1 at N=4. e.g. 1 |