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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Variable-time amplitude amplification

Amplification methods that account for coherent computation branches finishing at different stages.

Edition released Coverage: Overview · Technical
On this page

Definition, purpose and input assumptions

Some quantum subroutines have branches requiring different amounts of work. Treating every branch as if it ran to the longest stopping time can overestimate the cost of amplifying success. Variable-time methods exploit a structured staged computation and stopping information while maintaining the coherent conditions required by the algorithm.

Mathematical mechanism

A useful runtime summary is a root-mean-square stopping time T_rms=sqrt(sum_j p_j t_j^2), where p_j is the probability weight stopping at time t_j under the specified process. Bounds also depend on the longest time, success probability and logarithmic factors; T_rms alone is not a universal exact runtime formula. The algorithm must expose valid stopping flags and support the needed coherent subroutines.

Fully solved reference example

Suppose half the probability weight stops after one unit and half after nine. The arithmetic mean time is 5, the maximum is 9 and T_rms=sqrt((1+81)/2)=sqrt(41), about 6.403. These three quantities are different. If instead 99 percent stops at 1 and 1 percent at 100, the mean is 1.99 while T_rms=sqrt(100.99), about 10.049, and the maximum is 100.

The second example shows why a rare long branch can matter much more to a quadratic-cost summary than to the arithmetic mean. A claim that amplification costs only the average runtime would miss that distinction.

Limitations and classical comparison

The method does not permit arbitrary measurement of every branch followed by a classical restart while retaining all coherent advantages. Implementation details and success correlations matter. Classical algorithms can also exploit early stopping, so comparisons should grant both sides their appropriate stopping strategies.

Scientific relationships

Variable-time amplification generalizes amplitude amplification and is used in improved quantum linear-system algorithms. It depends on a structured stopping-time model rather than merely a variable runtime in ordinary classical code.

A staged process with an exactly computed stopping distribution

Consider a coherent procedure with stopping times 1,4,16 and probabilities 4/5,3/20,1/20. Its arithmetic mean stopping time is (4/5)·1+(3/20)·4+(1/20)·16=11/5. Its mean squared time is (4/5)·1+(3/20)·16+(1/20)·256=16, so the root-mean-square time is exactly four. The maximum is sixteen. These three summaries describe different aspects of the same process and cannot be substituted for one another in a runtime theorem.

The staged probabilities can be generated coherently. After the first stage, halt with probability 4/5 and continue with probability 1/5. Conditional on continuing, halt at time four with probability 3/4 and continue with probability 1/4. The final remaining branch halts at time sixteen. Orthogonal stopping labels record which stage has completed. A final state can therefore have the form √(4/5)|t1>|ψ1>+√(3/20)|t4>|ψ4>+√(1/20)|t16>|ψ16>, with normalized branch states.

Later stages must act trivially on labels that have already halted. This is a controlled unitary condition, not simply a classical decision to stop a loop. Reversing the computation requires a compatible inverse of the staged process and its stopping information. Erasing the labels irreversibly would prevent the coherent cancellations required by an amplification construction.

Success probabilities can correlate with stopping time

Assign success weights zero at time one, 1/20 at time four, and 1/80 at time sixteen. The total success probability is 1/16. Conditional on the time-four branch, success has probability (1/20)/(3/20)=1/3. Conditional on the time-sixteen branch, it has probability (1/80)/(1/20)=1/4. Among successful runs, four fifths stop at time four and one fifth at time sixteen, giving a conditional successful runtime of 32/5=6.4.

The same stopping distribution could instead place all success weight in the earliest branch, with conditional success probability 5/64 there and zero elsewhere. It would have the same total success, mean time, root-mean-square time, and maximum time, but a very different success-time correlation. A complete implementation analysis needs the staged success structure and the conditions of the chosen theorem, not only a printed value of the root-mean-square statistic.

For the first success assignment, the mean runtime of a failed attempt is 48/25=1.92. This follows by subtracting the successful contribution (1/16)(32/5)=2/5 from the total mean 11/5, then dividing by failure probability 15/16. The calculation makes explicit that successful and unsuccessful attempts need not have the same cost.

Ordinary amplification and a classical restart baseline

If the whole procedure is treated as one fixed-duration preparation of length sixteen, ordinary amplitude amplification sees initial success 1/16. Three Grover iterations use seven preparation or inverse-preparation occurrences. The success amplitude is sin(7 arcsin(1/4))=251/256, giving success probability 63001/65536, approximately 0.96132. Charging sixteen time units to each preparation occurrence gives 112 units before the marking and reflection costs. This is an explicit fixed-duration accounting for the example, not the cost of an optimized variable-time method.

The useful variable-time scale T_rms/√p is four divided by one quarter, or sixteen, whereas T_max/√p is sixty-four. Their ratio shows why the stopping distribution is potentially valuable. It does not establish a fourfold runtime advantage: actual bounds also contain maximum-time terms, logarithmic factors, stage organization, and costs of coherent control and inversion. These terms can matter substantially for a small instance.

A classical restart strategy should also receive the benefit of early stopping. If attempts are independent, its expected time E satisfies E=11/5+(15/16)E, so E=176/5=35.2. Equivalently, the expected fifteen failed attempts contribute 15·1.92=28.8, and the final successful attempt contributes 6.4. This exact baseline is much smaller than charging the maximum sixteen to every classical trial. It illustrates why a fair comparison cannot grant variable runtime to only the quantum side.

What the halting register must preserve

A stopped branch need not occupy zero physical resources: its register must remain coherent while other branches continue. Idle error, synchronization, and the controlled structure of later stages can affect a physical implementation even when an abstract query model regards the branch as inactive. The stopping-time theorem concerns a specified computational model; it does not imply that a superposition of runtimes makes wall-clock duration a random classical average.

Measuring a stopping label can be appropriate when the desired output is a classical success event and the remaining algorithm permits a restart. It changes the coherent process, however. For example, a reflection about the complete prepared state couples relative phases between stopping sectors; a measured mixture has lost those phases. A variable-time amplification proof must justify whatever measurements or coherent flags it uses rather than importing an ordinary early-exit program unchanged.

Sources

  • Andris Ambainis · · Research paper · Preprint recorded · arXiv
    Verification scope

    Selected source text checked ·

    Full text indexed, 17 pages, 1849 lines. Primary construction retrieved; branches stopping at different times and coherent amplification context inspected.

    Access and topic assumptions inspected; no exhaustive theorem-by-theorem external review, quantum hardware execution, or empirical advantage claim. Original definitions and finite examples are not reproduced source passages.

  • Aram W. Harrow; Avinatan Hassidim; Seth Lloyd · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevLett.103.150502
    Verification scope

    Selected source text checked ·

    Primary formal source anchor; original worked examples independently derived, not reported experiments.