Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Algorithms and useful work

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.

Synthetic decision model

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

Synthetic the most likely single quantum search is not always the best campaign plot: Success probability versus Amplification iterations per attempt.
Synthetic baseline case. Horizontal axis: Amplification iterations per attempt. Vertical axis: Success probability. Curves show Per attempt, Whole campaign. These are computed teaching examples, not measured hardware results.

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
  1. The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.015625)).
  2. 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.
  3. At k = 6, 5 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 1.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Best tested iterations per attempt6
Attempts fitting the budget5
Success per chosen attempt0.996585680787
Campaign success probability1
Best single-attempt iteration count6
Unamplified campaign success0.335989476623
Unamplified attempt and the two distinct optimization objectives
IterationsSingle-attempt successDurationComplete attemptsCampaign success
00.0156253260.335989476623
60.9965856807871551

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
  1. The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.004464)).
  2. 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.
  3. At k = 11, 2 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 0.999999.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Best tested iterations per attempt11
Attempts fitting the budget2
Success per chosen attempt0.998918081352
Campaign success probability0.999998829452
Best single-attempt iteration count11
Unamplified campaign success0.0264885400849
Unamplified attempt and the two distinct optimization objectives
IterationsSingle-attempt successDurationComplete attemptsCampaign success
00.0044642857142928.560.0264885400849
110.99891808135261.520.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
  1. The ideal success after k iterations is sin²((2k+1)theta), where theta = asin(sqrt(0.002404)).
  2. 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.
  3. At k = 16, 2 complete independent attempts fit. Their combined success is 1-(1-p)^attempts = 0.999995.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Best tested iterations per attempt16
Attempts fitting the budget2
Success per chosen attempt0.997715877137
Campaign success probability0.999994782783
Best single-attempt iteration count16
Unamplified campaign success0.0119615847447
Unamplified attempt and the two distinct optimization objectives
IterationsSingle-attempt successDurationComplete attemptsCampaign success
00.0024038461538559.150.0119615847447
160.997715877137126.320.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.

Back to this lab in the catalog