How should an ideal search trade amplification depth for additional attempts?
The most likely single quantum search is not always the best campaign
Source research checked . Teaching calculations are ideal models.
Amplitude amplification rotates an ideal state toward a marked subspace, but continuing the rotation can move it away again. A familiar teaching problem asks how many iterations maximize the success of one attempt. A complete workflow can ask a different question: how many iterations leave the best overall chance of success within one time budget?
The lab uses the ideal two-dimensional rotation formula and adds an explicit preparation cost and oracle-equivalent timing convention. Each candidate depth allows a different number of complete restarts. The campaign success is then calculated from those independent attempts. The best single attempt and best whole campaign are reported separately rather than forcing them into one headline ratio.
This is an extension of an algorithm lesson, not a practical speedup estimate. A real oracle must be constructed and uncomputed, data preparation must be counted, and marked outputs need verification. Those costs can dominate an application. The useful interaction lets the reader increase preparation cost while leaving the ideal quantum rotation unchanged, making clear that algorithmic probability and complete workload time are separate layers of evidence.
Start with the assumptions
- The ideal amplitude-amplification model is exact in the synthetic calculation.
- The timing convention is chosen for this exercise.
- Restarts are independent and verification is included only through the declared budget convention.
theta = asin(sqrt(marked fraction))
Ideal per-attempt success = sin²((2k+1)theta)
Declared attempt time = preparation + (2k+1) × oracle-equivalent time
Campaign success = 1-(1-per-attempt success)^complete_attempts
Compare the input regimes
Each case uses invented inputs. The results follow from this model and do not describe measured hardware.
Baseline regime
Complete inputs
- Marked fraction
- 0.015625
- Oracle-equivalent time
- 1
- Preparation time
- 2
- Total time budget
- 80
- Maximum iterations per attempt
- 24
- The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.015625)).
- The declared attempt time is preparation + (2k+1) × oracle-equivalent time. The factor 2k+1 is this exercise’s accounting convention, not a universal decomposition of a Grover circuit.
- At k = 6, 5 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 1.
| Calculated quantity | Synthetic result |
|---|---|
| Best tested iterations per attempt | 6 |
| Attempts fitting the budget | 5 |
| Success per chosen attempt | 0.996585680787 |
| Campaign success probability | 1 |
| Best single-attempt iteration count | 6 |
| Unamplified campaign success | 0.335989476623 |
| Iterations | Single-attempt success | Duration | Complete attempts | Campaign success |
|---|---|---|---|---|
| 0 | 0.015625 | 3 | 26 | 0.335989476623 |
| 6 | 0.996585680787 | 15 | 5 | 1 |
The best tested campaign choice is k = 6; the best single-attempt probability occurs at k = 6. They optimize different quantities. A real advantage claim must also establish the oracle construction, state preparation, verification and fair classical search cost; this ideal rotation model supplies none of those performance facts.
Comparison regime
Complete inputs
- Marked fraction
- 0.004464285714285714
- Oracle-equivalent time
- 1.5
- Preparation time
- 27
- Total time budget
- 180
- Maximum iterations per attempt
- 24
- The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.004464)).
- The declared attempt time is preparation + (2k+1) × oracle-equivalent time. The factor 2k+1 is this exercise’s accounting convention, not a universal decomposition of a Grover circuit.
- At k = 11, 2 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 0.999999.
| Calculated quantity | Synthetic result |
|---|---|
| Best tested iterations per attempt | 11 |
| Attempts fitting the budget | 2 |
| Success per chosen attempt | 0.998918081352 |
| Campaign success probability | 0.999998829452 |
| Best single-attempt iteration count | 11 |
| Unamplified campaign success | 0.0264885400849 |
| Iterations | Single-attempt success | Duration | Complete attempts | Campaign success |
|---|---|---|---|---|
| 0 | 0.00446428571429 | 28.5 | 6 | 0.0264885400849 |
| 11 | 0.998918081352 | 61.5 | 2 | 0.999998829452 |
The best tested campaign choice is k = 11; the best single-attempt probability occurs at k = 11. They optimize different quantities. A real advantage claim must also establish the oracle construction, state preparation, verification and fair classical search cost; this ideal rotation model supplies none of those performance facts.
Extended regime
Complete inputs
- Marked fraction
- 0.002403846153846154
- Oracle-equivalent time
- 2.1
- Preparation time
- 57
- Total time budget
- 300
- Maximum iterations per attempt
- 24
- The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.002404)).
- The declared attempt time is preparation + (2k+1) × oracle-equivalent time. The factor 2k+1 is this exercise’s accounting convention, not a universal decomposition of a Grover circuit.
- At k = 16, 2 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 0.999995.
| Calculated quantity | Synthetic result |
|---|---|
| Best tested iterations per attempt | 16 |
| Attempts fitting the budget | 2 |
| Success per chosen attempt | 0.997715877137 |
| Campaign success probability | 0.999994782783 |
| Best single-attempt iteration count | 16 |
| Unamplified campaign success | 0.0119615847447 |
| Iterations | Single-attempt success | Duration | Complete attempts | Campaign success |
|---|---|---|---|---|
| 0 | 0.00240384615385 | 59.1 | 5 | 0.0119615847447 |
| 16 | 0.997715877137 | 126.3 | 2 | 0.999994782783 |
The best tested campaign choice is k = 16; the best single-attempt probability occurs at k = 16. They optimize different quantities. A real advantage claim must also establish the oracle construction, state preparation, verification and fair classical search cost; this ideal rotation model supplies none of those performance facts.
Try the reasoning: Compare the campaign optimum with the single-attempt optimum. Which preparation and restart costs make their objectives differ?
Sources and model boundaries
- Grover's algorithm ↗
Ideal amplitude amplification rotates a state in a two-dimensional subspace and can overshoot the desired marked population. The lab's timing convention and campaign budget are independently chosen; no hardware runtime, API version or practical advantage is claimed.