How should measurement effort change when groups take different amounts of time?
A shot budget is also a time budget
Source research checked . Teaching calculations are ideal models.
The most variable contribution to an observable may deserve extra measurement effort, but that is not the complete allocation question. Some settings take longer to prepare, some require a costly basis change, and others produce information much more cheaply. A fixed number of shots and a fixed amount of laboratory time impose different constraints.
This lab combines observable coefficients, group variances and per-shot time. The continuous calculation has a closed-form optimum under its assumptions. Converting it to integer shot counts then introduces a small implementation problem: rounding can waste time or slightly change the optimum. The worked answers expose both the lower bound and the rounded schedule instead of hiding the distinction behind an allocation score.
The model assumes the groups are independently estimated and their variances are known. A real pilot experiment spends part of the budget learning those variances. Calibration and circuit switching may add costs that depend on how measurements are grouped. Increasing one time cost while holding its physical variance fixed changes the preferred allocation. The resource tradeoff is conditional on these assumptions; different Hamiltonians and acquisition workflows can require different schedules.
Start with the assumptions
- Group estimates are independent.
- Variances, coefficients and per-shot costs are known and stationary.
- The rounded greedy schedule is compared with a continuous bound, not certified as the integer optimum.
V = sum_i (a_i sigma_i)^2 / n_i; sum_i c_i n_i <= T
n_i* = T |a_i| sigma_i / (sqrt(c_i) sum_j |a_j| sigma_j sqrt(c_j))
Continuous lower bound V* = (sum_i |a_i| sigma_i sqrt(c_i))² / T
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
- Time costs per shot
- 1, 2, 5
- Group standard deviations
- 1, 1.4, 0.6
- Observable coefficients
- 1, -0.5, 1.2
- Time budget
- 1200
- The continuous solution allocates 333.340886, 164.99532, 107.333695 shots. It minimizes variance under the time constraint before integer rounding.
- Round down, then spend affordable remaining units by the largest immediate variance reduction per unit time. The resulting counts are 335, 165, 107. This greedy rounding is not claimed to solve every integer allocation problem exactly.
- Variance is sum((coefficient × standard deviation)^2 / shots) = 0.0108. Equal time across groups yields 0.01143.
| Calculated quantity | Synthetic result |
|---|---|
| Allocated shots, group 1 | 335 |
| Allocated shots, group 2 | 165 |
| Allocated shots, group 3 | 107 |
| Used time | 1200 |
| Allocated variance | 0.0107996314096 |
| Equal-time variance | 0.01143 |
| Continuous lower bound | 0.0107995106303 |
| Group | Continuous shots | Rounded shots | Equal-time shots |
|---|---|---|---|
| 1 | 333.340885591 | 335 | 400 |
| 2 | 164.995320454 | 165 | 200 |
| 3 | 107.3336947 | 107 | 80 |
The rounded allocation uses 1,200 of 1,200 time units. Its variance is 0.001118% above the continuous lower bound. The calculation shows why a costly measurement may deserve fewer shots even when its contribution is noisy.
Comparison regime
Complete inputs
- Time costs per shot
- 1, 3, 7
- Group standard deviations
- 1, 1.8, 0.8
- Observable coefficients
- 1, -0.5, 1.2
- Time budget
- 2700
- The continuous solution allocates 529.53979, 275.156946, 192.141339 shots. It minimizes variance under the time constraint before integer rounding.
- Round down, then spend affordable remaining units by the largest immediate variance reduction per unit time. The resulting counts are 531, 275, 192. This greedy rounding is not claimed to solve every integer allocation problem exactly.
- Variance is sum((coefficient × standard deviation)^2 / shots) = 0.009629. Equal time across groups yields 0.011011.
| Calculated quantity | Synthetic result |
|---|---|
| Allocated shots, group 1 | 531 |
| Allocated shots, group 2 | 275 |
| Allocated shots, group 3 | 192 |
| Used time | 2700 |
| Allocated variance | 0.00962869371683 |
| Equal-time variance | 0.0110111111111 |
| Continuous lower bound | 0.00962867584139 |
| Group | Continuous shots | Rounded shots | Equal-time shots |
|---|---|---|---|
| 1 | 529.53979025 | 531 | 900 |
| 2 | 275.156946403 | 275 | 300 |
| 3 | 192.141338649 | 192 | 128 |
The rounded allocation uses 2,700 of 2,700 time units. Its variance is 0.000186% above the continuous lower bound. The calculation shows why a costly measurement may deserve fewer shots even when its contribution is noisy.
Extended regime
Complete inputs
- Time costs per shot
- 1, 5, 7
- Group standard deviations
- 1, 2.28, 1.04
- Observable coefficients
- 1, -0.5, 1.2
- Time budget
- 4500
- The continuous solution allocates 656.836967, 334.870921, 309.829776 shots. It minimizes variance under the time constraint before integer rounding.
- Round down, then spend affordable remaining units by the largest immediate variance reduction per unit time. The resulting counts are 662, 335, 309. This greedy rounding is not claimed to solve every integer allocation problem exactly.
- Variance is sum((coefficient × standard deviation)^2 / shots) = 0.01043. Equal time across groups yields 0.012277.
| Calculated quantity | Synthetic result |
|---|---|
| Allocated shots, group 1 | 662 |
| Allocated shots, group 2 | 335 |
| Allocated shots, group 3 | 309 |
| Used time | 4500 |
| Allocated variance | 0.0104304430226 |
| Equal-time variance | 0.0122767227414 |
| Continuous lower bound | 0.0104303129598 |
| Group | Continuous shots | Rounded shots | Equal-time shots |
|---|---|---|---|
| 1 | 656.836967113 | 662 | 1500 |
| 2 | 334.870920761 | 335 | 300 |
| 3 | 309.829775583 | 309 | 214 |
The rounded allocation uses 4,500 of 4,500 time units. Its variance is 0.001247% above the continuous lower bound. The calculation shows why a costly measurement may deserve fewer shots even when its contribution is noisy.
Try the reasoning: Which group gains most from the next affordable shot? Compare its variance reduction per unit time with that of the other groups.
Sources and model boundaries
- 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.