Randomized qDRIFT simulation
A Hamiltonian-simulation method that samples elementary evolutions with probabilities proportional to term weights.
On this page
Definition, purpose and input assumptions
qDRIFT approximates evolution by a random sequence of term exponentials. It is useful when the coefficient sum provides a favorable cost measure relative to the number of terms. The guarantee concerns an appropriate averaged channel or distance criterion; one random circuit need not equal the target unitary.
Mathematical mechanism
Write H=sum_j h_j P_j with Hermitian unit-norm terms, absorb signs into P_j and let lambda=sum_j |h_j|. At each of N steps choose term j with probability |h_j|/lambda and apply exp(-i lambda t P_j/N). The average first-order generator matches H. Higher-order contributions produce the approximation error.
Fully solved reference example
For H=2X+Z, lambda=3. Choose X with probability 2/3 and Z with probability 1/3. With tau=3t/N, the average one-step unitary expansion is I-i tau[(2/3)X+(1/3)Z]+O(tau^2)=I-i(t/N)(2X+Z)+O(tau^2).
For t=0.2 and N=6, each selected rotation uses exp(-0.1iP), corresponding to a Pauli rotation angle0.2. A sample sequence X,X,Z,X,Z,X contains four X and two Z choices, matching expected counts, but its ordered product is still not exactly exp[-0.2i(2X+Z)] because X and Z do not commute. Matching counts alone is insufficient.
Limitations and classical comparison
The coefficient sum can be large, and sampling noise or circuit-to-circuit variation needs treatment. The original paper's example speedups are not universal ratios. Deterministic product formulas, grouping and problem-specific methods can outperform randomized simulation on particular instances.
Scientific relationships
qDRIFT is an alternative Hamiltonian simulation method to product formulas. It uses stochastic classical selection of coherent unitary steps and must be distinguished from sampling physical noise trajectories.
Randomization error even when all terms commute
Let H=Z0+2Z1, so λ=3 and the qDRIFT choices are Z0 with probability one third and Z1 with probability two thirds. All selected terms commute. Nevertheless, a finite random sequence does not generally implement the target evolution because the number of occurrences of each term fluctuates. This example isolates coefficient-sampling error without any noncommuting-order effect.
Choose N=2 steps and t=π/6. Each sampled exponential uses τ=λt/N=π/4. If K counts the number of Z0 selections, then K is zero, one, or two with probabilities 4/9,4/9,1/9. The implemented unitary is U_K=exp[-iτ(KZ0+(2-K)Z1)]. The target is exp[-it(Z0+2Z1)]. Matching the average value E[K]=2/3 does not make every realization equal to the target, and no realization here has that noninteger count.
On input |++>, every realization and the target have uniform computational-basis populations. Population-only checks therefore miss the error entirely. The Bloch rotation angles for the first qubit are Kπ/2, and those for the second are (2-K)π/2. Averaging the corresponding sine and cosine values gives <X0>=1/3, <Y0>=4/9, <X1>=-1/3, and <Y1>=4/9. The target instead has X expectations 1/2 and -1/2, with both Y expectations √3/2.
The averaged channel is a mixed-state transformation
The three output states are pure conditional on K, but their classical mixture is generally mixed. The K=0 and K=2 states are orthogonal. Each has squared overlap one quarter with the K=1 state. Therefore the purity of the averaged output is (4/9)²+(4/9)²+(1/9)²+2[(4/9)(4/9)+(4/9)(1/9)]/4=43/81. The exact target output is pure and has purity one.
Averaging the matrices U_K and applying that average to a vector would produce a different object. The physical randomized procedure averages channels U_KρU_K†, not state amplitudes across independently chosen classical circuits. Coherently controlling a superposition of the sequence choices and erasing that control would be another algorithm with different resources and interference behavior.
The randomization in this example is deliberately chosen by the simulation algorithm. It should not be described as evidence of environmental dephasing in a device. If the sequence label is retained, predictions can be conditioned on it; if the label is ignored, the averaged statistics exhibit a dephasing-like reduction of coherence. The distinction matters when separating algorithmic error from physical noise.
Exact coherence formula for an arbitrary step count
For general N and t, let τ=3t/N and K follow the binomial distribution with probability one third. The first qubit's complex Bloch coherence is <X0+iY0>=E[e^{i2τK}]=[2/3+(1/3)e^{i2τ}]^N. Its magnitude is [1-(8/9)sin²τ]^{N/2}. This expression is less than one for generic finite τ even though each sampled circuit is unitary.
For large N at fixed t, expand the logarithm. The leading phase is 2t, matching the target Z0 rotation, while the leading logarithmic magnitude loss is -4t²/N. Thus the coherence approaches the target as the number of independently sampled small steps grows. The expression shows a finite-step error scale directly for this observable; it is not a substitute for a worst-case channel-distance theorem over every input and observable.
At N=2,t=π/6, the formula gives (2/3+i/3)²=1/3+4i/9, with magnitude five ninths, agreeing with the explicit mixture. The second qubit has an anticorrelated count N-K, so its fluctuations are not independent of those on the first. A two-qubit observable can therefore contain correlations that are absent from a model of independently randomized local rotation angles.
Repetitions, costs, and a stronger classical baseline
Estimating an averaged observable involves both the variability between random circuits and the quantum measurement variability within each circuit. Repeating many shots on one fixed random sequence reduces only the second source. Resampling the sequence across executions addresses the first. A reported confidence interval should reflect the actual allocation of shots and sequence samples rather than assume that all shots are identically distributed under one fixed unitary.
For this commuting Hamiltonian, a deterministic implementation is especially simple: apply exp(-itZ0) and exp(-i2tZ1), which commute and together equal the target exactly. It needs two known rotations and no randomization approximation. The qDRIFT example therefore demonstrates a mechanism and its limitation, not an advantage. Term count alone is insufficient to choose a simulation method; commutation and native implementation costs can dominate.
In a large Hamiltonian with many terms, qDRIFT's coefficient-based sampling can avoid traversing every term in each step, but sampling the distribution and implementing a chosen exponential still require an access model. Large coefficient sum, expensive term selection, or unfavorable observable variance can offset the attractive query expression. Signs must be absorbed consistently into the selected Hermitian terms, and their unit-norm assumption must match the coefficient definition.
Sources
Verification scope
Recorded source check ·
Coefficient-weighted term sampling and average-channel scope inspected.
Formal scientific or official reference-semantics anchor. No SDK execution, hardware run, universal performance claim, or independent external peer review asserted. Original finite examples and definitions are independent explanations.