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

All sections

Saved
Evidence and experimental design

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.

Synthetic decision model

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

Synthetic a shot budget is also a time budget plot: Shot count versus Measurement group.
Synthetic baseline case. Horizontal axis: Measurement group. Vertical axis: Shot count. Curves show Rounded allocation, Equal time. These are computed teaching examples, not measured hardware results.

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
  1. The continuous solution allocates 333.340886, 164.99532, 107.333695 shots. It minimizes variance under the time constraint before integer rounding.
  2. 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.
  3. Variance is sum((coefficient × standard deviation)^2 / shots) = 0.0108. Equal time across groups yields 0.01143.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Allocated shots, group 1335
Allocated shots, group 2165
Allocated shots, group 3107
Used time1200
Allocated variance0.0107996314096
Equal-time variance0.01143
Continuous lower bound0.0107995106303
Measurement-group allocation
GroupContinuous shotsRounded shotsEqual-time shots
1333.340885591335400
2164.995320454165200
3107.333694710780

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
  1. The continuous solution allocates 529.53979, 275.156946, 192.141339 shots. It minimizes variance under the time constraint before integer rounding.
  2. 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.
  3. Variance is sum((coefficient × standard deviation)^2 / shots) = 0.009629. Equal time across groups yields 0.011011.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Allocated shots, group 1531
Allocated shots, group 2275
Allocated shots, group 3192
Used time2700
Allocated variance0.00962869371683
Equal-time variance0.0110111111111
Continuous lower bound0.00962867584139
Measurement-group allocation
GroupContinuous shotsRounded shotsEqual-time shots
1529.53979025531900
2275.156946403275300
3192.141338649192128

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
  1. The continuous solution allocates 656.836967, 334.870921, 309.829776 shots. It minimizes variance under the time constraint before integer rounding.
  2. 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.
  3. Variance is sum((coefficient × standard deviation)^2 / shots) = 0.01043. Equal time across groups yields 0.012277.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Allocated shots, group 1662
Allocated shots, group 2335
Allocated shots, group 3309
Used time4500
Allocated variance0.0104304430226
Equal-time variance0.0122767227414
Continuous lower bound0.0104303129598
Measurement-group allocation
GroupContinuous shotsRounded shotsEqual-time shots
1656.8369671136621500
2334.870920761335300
3309.829775583309214

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.

Back to this lab in the catalog