How does ignoring coordinates change the error budget for a variational update?
A cheaper gradient can spend its savings on an omitted direction
Source research checked . Teaching calculations are ideal models.
A variational routine may require many expectation-value measurements to estimate a gradient. Measuring only a subset of parameters appears to reduce the work, but the omitted directions can contribute a systematic error to the update. The fair comparison asks how both choices meet the same gradient-error target.
The model uses a standard two-shift estimator where each derivative is half the difference of two independent sample means. Summing the coordinate variances gives an expected squared Euclidean sampling error. A subset estimator receives an additional squared-error contribution from the known synthetic gradient components it omits. If that contribution already exceeds the target, no number of extra shots on the retained coordinates can repair the estimate.
The omitted norm is supplied by construction, which is a major advantage unavailable in most real optimization runs. The lab should therefore accompany a discussion of screening, pilot estimates or structural assumptions used to select parameters. It explains what a claimed measurement saving must preserve, while avoiding the claim that an actual algorithm can discover harmless omissions without paying for information.
Start with the assumptions
- The gate supports the stated parameter-shift rule.
- Shifted measurements and coordinates are independently estimated.
- Omitted-gradient norm is known only in this synthetic example.
Derivative estimate = (mean_plus - mean_minus)/2
Per-coordinate variance with n shots per shift = v/(2n)
Full expected squared gradient error = parameters × v/(2n)
Subset total = omitted squared norm + active_parameters × v/(2n)
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
- Total parameters
- 12
- Active subset parameters
- 4
- Per-shift shot variance
- 0.4
- Squared gradient-error target
- 0.01
- Squared norm of omitted gradient
- 0.001
- Shot time, milliseconds
- 0.1
- For one parameter, the estimator is (mean_plus - mean_minus)/2. Independent equal-variance shifted samples give variance v/(2n).
- The expected squared Euclidean sampling error sums over 12 coordinates. Set parameters × v/(2n) <= target, giving 240 shots at each of the two shifts.
- The active-subset estimate leaves known synthetic omitted squared norm 0.001. Only 0.009 remains for sampling error; if this is nonpositive, no shot count repairs the omission.
| Calculated quantity | Synthetic result |
|---|---|
| Shots per shift, full gradient | 240 |
| Total full-gradient shots | 5760 |
| Full-gradient acquisition, seconds | 0.576 |
| Subset remaining squared-error budget | 0.009 |
| Total subset-gradient shots | 712 |
| Subset acquisition, seconds | 0.0712 |
Measuring fewer coordinates can reduce work or consume the error budget through omitted directions. The omitted-gradient norm is provided by construction here; an actual optimizer normally does not know it for free. Parameter-shift identities require an appropriate gate generator and shift rule. Correlations within or between the two shifted sample means can change each coordinate variance; cross-coordinate covariance alone does not change the trace-based squared-error sum.
Comparison regime
Complete inputs
- Total parameters
- 22
- Active subset parameters
- 9
- Per-shift shot variance
- 0.4
- Squared gradient-error target
- 0.01
- Squared norm of omitted gradient
- 0.0055
- Shot time, milliseconds
- 0.2
- For one parameter, the estimator is (mean_plus - mean_minus)/2. Independent equal-variance shifted samples give variance v/(2n).
- The expected squared Euclidean sampling error sums over 22 coordinates. Set parameters × v/(2n) <= target, giving 440 shots at each of the two shifts.
- The active-subset estimate leaves known synthetic omitted squared norm 0.0055. Only 0.0045 remains for sampling error; if this is nonpositive, no shot count repairs the omission.
| Calculated quantity | Synthetic result |
|---|---|
| Shots per shift, full gradient | 440 |
| Total full-gradient shots | 19360 |
| Full-gradient acquisition, seconds | 3.872 |
| Subset remaining squared-error budget | 0.0045 |
| Total subset-gradient shots | 7200 |
| Subset acquisition, seconds | 1.44 |
Measuring fewer coordinates can reduce work or consume the error budget through omitted directions. The omitted-gradient norm is provided by construction here; an actual optimizer normally does not know it for free. Parameter-shift identities require an appropriate gate generator and shift rule. Correlations within or between the two shifted sample means can change each coordinate variance; cross-coordinate covariance alone does not change the trace-based squared-error sum.
Extended regime
Complete inputs
- Total parameters
- 34
- Active subset parameters
- 15
- Per-shift shot variance
- 0.4
- Squared gradient-error target
- 0.01
- Squared norm of omitted gradient
- 0.0109
- Shot time, milliseconds
- 0.32
- For one parameter, the estimator is (mean_plus - mean_minus)/2. Independent equal-variance shifted samples give variance v/(2n).
- The expected squared Euclidean sampling error sums over 34 coordinates. Set parameters × v/(2n) <= target, giving 680 shots at each of the two shifts.
- The active-subset estimate leaves known synthetic omitted squared norm 0.0109. Only -0.0009 remains for sampling error; if this is nonpositive, no shot count repairs the omission.
| Calculated quantity | Synthetic result |
|---|---|
| Shots per shift, full gradient | 680 |
| Total full-gradient shots | 46240 |
| Full-gradient acquisition, seconds | 14.7968 |
| Subset remaining squared-error budget | -0.0009 |
| Total subset-gradient shots | Omitted gradient alone exhausts target |
| Subset acquisition, seconds | Infeasible |
Measuring fewer coordinates can reduce work or consume the error budget through omitted directions. The omitted-gradient norm is provided by construction here; an actual optimizer normally does not know it for free. Parameter-shift identities require an appropriate gate generator and shift rule. Correlations within or between the two shifted sample means can change each coordinate variance; cross-coordinate covariance alone does not change the trace-based squared-error sum.
Try the reasoning: When the omitted squared gradient norm meets or exceeds the target, can more shots make the subset estimator feasible?
Sources and model boundaries
- Evaluating analytic gradients on quantum hardware ↗
Parameter-shift identities can estimate exact expectation derivatives for specified gate generators. Finite-sample uncertainty and covariance are independently derived; the two-shift identity is not claimed for every parameterization.
- Combining uncertainty components ↗
Uncertainty propagation includes sensitivities and covariance; independent terms simplify the variance sum. Covariance, bias and distribution assumptions in the teaching models are declared separately; no NIST endorsement is implied.