Time to solution
Time to solution is the elapsed computational effort needed to reach a specified success probability or accuracy for a defined task.
Also called TTS
On this page
Explanation and significance
For probabilistic algorithms, one run may fail even when the method is useful. Repetition converts per-run success into a target confidence, while setup, programming, measurement, classical processing and queueing may contribute different timing boundaries. State which boundary is reported rather than mixing kernel time and end-to-end time.
Mechanism and mathematical structure
For independent runs with success probability p and desired probability P_target of at least one success, the required count is R=ceil[ln(1-P_target)/ln(1-p)]. If each run takes t_run, a simple time estimate is R t_run plus stated overhead. Correlated runs or changing calibration violate the independence assumption.
Fully worked reference example
For p=0.1 and P_target=0.99, R=ceil[ln(0.01)/ln(0.9)]=44. At 2 milliseconds per run, repetition time is 88 milliseconds. A 500 millisecond programming overhead raises end-to-end time to 588 milliseconds for one instance. If that overhead is amortized across many instances, the accounting changes and must be stated.
Limits and misconceptions
The target must include solution quality, not just production of any output. An apparent speedup can disappear when classical preprocessing or verification is included. Do not extrapolate from a few easy instances to a problem family without scaling evidence.
Scientific relationships
Is a task-level benchmark used in optimization, sampling and probabilistic protocols. Depends on success definition and statistical independence. Is distinct from gate duration.
A measured success probability is uncertain
The repetition formula treats p as known. In an experiment, success counts estimate p and may leave substantial uncertainty when only a few successes occur. For a synthetic dataset with ten successes in one hundred independent trials, the maximum-likelihood estimate is 0.1 and the plug-in 99% completion count is 44. A one-sided 95% exact binomial lower confidence bound is approximately 0.0552632. Designing the repetition budget using that lower bound gives 82 trials. The latter statement protects against estimation uncertainty at the stated confidence level; it does not claim the true rate equals the bound.
A Bayesian calculation answers a related but different question. A uniform prior and the same data give a Beta(11,91) posterior. If a future job has an unknown fixed success probability drawn from that posterior, its posterior predictive probability of no success in R runs is B(11,91+R)/B(11,91), where B is the beta function. At R=44 this is approximately 0.01571. The smallest R making it at most 0.01 is 50. The frequentist design of 82 and Bayesian predictive count of 50 use different probability statements and should not be presented as competing evaluations of one identical guarantee.
Correlation can make repetition ineffective
Consider two equally likely calibration conditions. In the good condition each run succeeds independently with p=0.2; in the bad condition p=0. If the condition stays fixed throughout a job, the average single-run success probability is 0.1, but the probability of no success after R runs is 0.5+0.5(0.8)^R. It never falls below 0.5. Substituting the average p into the independent-run formula would incorrectly predict arbitrarily high completion probability.
If each run independently redraws the calibration condition, the success events instead have probability 0.1 independently, and the usual formula applies. Thus an identical one-run average can coexist with profoundly different restart behavior. Randomized trial order, calibration blocks, and time-resolved success records help distinguish these models. A large number of shots inside one stable block cannot establish independence across future blocks.
Restart overhead changes the optimal run duration
An illustrative runtime-dependent success model is p(t)=1−exp[−sqrt(t/τ)]. Ignoring integer rounding, achieving failure probability ε requires R≈−ln(ε)sqrt(τ/t). With reset overhead c per run, total repetition time is proportional to (t+c)/sqrt(t)=sqrt(t)+c/sqrt(t). Its derivative vanishes at t=c, which is the minimum for positive t. The optimum is set by reset cost under this particular stretched-exponential model, rather than by choosing the shortest possible run.
For c=1 millisecond and τ=100 milliseconds, choose t=1 millisecond. Then p=1−exp(−0.1)≈0.0951626. A 99% target requires 47 runs, giving 94 milliseconds including resets. Choosing t=4 milliseconds gives p=1−exp(−0.2)≈0.181269 and requires 24 runs, taking 120 milliseconds. Choosing t=0.25 milliseconds gives p≈0.0487706 and requires 93 runs, taking 116.25 milliseconds. These solved values illustrate the overhead tradeoff, not a universal annealing or gate-model performance law.
Mean completion and tail completion are different
For independent identical runs, the first-success trial count is geometrically distributed with mean 1/p. Its tail is the quantity used by the confidence-target formula. At p=0.1, ten runs are the mean waiting count, but ten trials give only 1−0.9^10≈0.651322 probability of at least one success. A quoted mean time therefore cannot substitute for a 99% deadline. With variable-duration runs, time distributions require the duration-success relationship as well as p.
Parallel replicas can reduce wall time while increasing simultaneous resources. With k independent replicas and R synchronized rounds, no-success probability is (1−p)^(kR). For p=0.1 and k=4, eleven rounds supply forty-four trials and cross the 99% target. This equality assumes independent replicas, comparable success definitions, and no additional coordination bottleneck. Shared calibration failures can invalidate it in precisely the way illustrated above.
Verification error and time to solution
A candidate must satisfy the stated objective or approximation tolerance. With verification false positives, the first accepted answer need not solve the problem. The geometric tail assumes independent attempts, while the calibration mixture can retain a 0.5 failure floor. Restart durations and verification mistakes change which event is being timed. The numbers here are synthetic.
Adaptive stopping changes the recorded runtime
When verification is fast and a run can terminate immediately on success, the expected number of trials before success or a cap R is Σ_(j=0)^(R−1)(1−p)^j=[1−(1−p)^R]/p. For p=0.1 and cap R=44 this is approximately 9.9030, much smaller than the worst-case cap. Multiplying this value by per-trial cost gives expected consumed time only when verification and stopping occur after every trial. A device that submits all forty-four trials as one indivisible batch consumes the entire batch budget even if its first trial would have succeeded. The reported runtime must identify whether it measures allocated resources, actual consumed resources, or completion latency. These quantities are all legitimate but differ operationally.
Sources
Verification scope
Citation identity checked ·
Preprint timestamp; journal article 2023. Workload and timing boundaries matter.
Verification scope
Citation identity checked ·
Small-model annealing study does not establish universal optimization speedup.