Skip to content
Decision lab

What changes when two implementations experience the same batch disturbance?

When A and B share an experimental batch, their within-batch difference can remove a common disturbance. The uncertainty then comes from the variation between those differences.

Source research checked . Teaching calculations are ideal models.

Imagine comparing two pulse implementations during a day when a laboratory drifts between warmer and cooler operating conditions. Running all of A first and all of B later confounds implementation with time. Even if the total number of shots is large, a difference between the batches can masquerade as a difference between the methods. The experimental unit must be identified before the error bar is chosen.

A matched design asks A and B to encounter similar conditions and records their difference within each match. A disturbance shared by both measurements can then cancel. The relevant variation is the variation of the differences, rather than the sum of two variances treated as unrelated. Pairing earns this benefit only when the correspondence is real. Pairing unrelated records after inspecting their outcomes is not the same experiment.

This laboratory constructs ten matched batches with a shared disturbance and smaller difference noise. Its calculation shows the exact standard-error consequence of retaining or discarding the match. The learning goal is to ask what was randomized, what was repeated, and which conditions were shared. A quantum benchmark can have thousands of circuit shots while still having very few independent calibration batches.

Synthetic decision model

Start with the assumptions

  • Each pair shares the declared disturbance.
  • Difference-noise values are constructed, not sampled from a fitted distribution.
  • The sample standard deviation uses denominator n - 1.

d_i = B_i - A_i; mean difference = sum(d_i)/n

SE_paired = sample_SD(d)/sqrt(n)

SE_unpaired = sqrt(sample_Var(A)/n + sample_Var(B)/n)

Synthetic a fair control experiment can start with the pairing plot: Illustrative response versus Matched batch.
Synthetic baseline case. Horizontal axis: Matched batch. Vertical axis: Illustrative response. Curves show A, B. 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
Common disturbance scale
0.5
Difference noise scale
0.5
True shift
1.2
Response baseline
50
Shared disturbance pattern
-3, -2, 0, 2, 3, 1, -1, 4, -4, 0
Difference-noise pattern
-1, 0, 1, 0, -1, 1, 0, 1, -1, 0
  1. Compute ten matched differences B_i - A_i. Their mean is 1.2 and their sample standard deviation is 0.408248.
  2. Divide the difference standard deviation by sqrt(10), giving 0.129099. Treating the same observations as unpaired gives 0.632456.
  3. The paired calculation retains the shared disturbance as covariance; it cancels in each difference. The unpaired expression discards that relationship.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Batch pairs10
Mean B minus A1.2
Paired standard error0.129099444874
Unpaired standard error0.632455532034
Unpaired / paired variance24
All ten matched synthetic observations
PairABB − A
148.549.20.7
24950.21.2
35051.71.7
45152.21.2
551.552.20.7
650.552.21.7
749.550.71.2
85253.71.7
94848.70.7
105051.21.2

The variance ratio is 24 in this constructed batch. Matching is useful because the common disturbance is genuinely shared. These ten deliberately chosen observations do not validate a population distribution or establish a significance level.

Comparison regime
Complete inputs
Common disturbance scale
2
Difference noise scale
0.62
True shift
1.95
Response baseline
50
Shared disturbance pattern
-3, -2, 0, 2, 3, 1, -1, 4, -4, 0
Difference-noise pattern
-1, 0, 1, 0, -1, 1, 0, 1, -1, 0
  1. Compute ten matched differences B_i - A_i. Their mean is 1.95 and their sample standard deviation is 0.506228.
  2. Divide the difference standard deviation by sqrt(10), giving 0.160083. Treating the same observations as unpaired gives 2.367902.
  3. The paired calculation retains the shared disturbance as covariance; it cancels in each difference. The unpaired expression discards that relationship.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Batch pairs10
Mean B minus A1.95
Paired standard error0.160083311643
Unpaired standard error2.367902025
Unpaired / paired variance218.79396462
All ten matched synthetic observations
PairABB − A
14445.331.33
24647.951.95
35052.572.57
45455.951.95
55657.331.33
65254.572.57
74849.951.95
85860.572.57
94243.331.33
105051.951.95

The variance ratio is 218.793965 in this constructed batch. Matching is useful because the common disturbance is genuinely shared. These ten deliberately chosen observations do not validate a population distribution or establish a significance level.

Extended regime
Complete inputs
Common disturbance scale
3.8
Difference noise scale
0.86
True shift
2.8499999999999996
Response baseline
50
Shared disturbance pattern
-3, -2, 0, 2, 3, 1, -1, 4, -4, 0
Difference-noise pattern
-1, 0, 1, 0, -1, 1, 0, 1, -1, 0
  1. Compute ten matched differences B_i - A_i. Their mean is 2.85 and their sample standard deviation is 0.702187.
  2. Divide the difference standard deviation by sqrt(10), giving 0.222051. Treating the same observations as unpaired gives 4.467241.
  3. The paired calculation retains the shared disturbance as covariance; it cancels in each difference. The unpaired expression discards that relationship.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Batch pairs10
Mean B minus A2.85
Paired standard error0.222051045183
Unpaired standard error4.46724075913
Unpaired / paired variance404.737155219
All ten matched synthetic observations
PairABB − A
138.640.591.99
242.445.252.85
35053.713.71
457.660.452.85
561.463.391.99
653.857.513.71
746.249.052.85
865.268.913.71
934.836.791.99
105052.852.85

The variance ratio is 404.737155 in this constructed batch. Matching is useful because the common disturbance is genuinely shared. These ten deliberately chosen observations do not validate a population distribution or establish a significance level.

Try the reasoning: Before calculating an error bar, identify the independent experimental unit. What evidence justifies the correspondence within each pair?

Sources and model boundaries

  • Two-Sample t-Test for Equal Means ↗

    A paired comparison has a one-to-one correspondence between observations, allowing analysis of within-pair differences. The lab does not reuse NIST data or claim a significance test for its deterministic records.

  • 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.

Explore the broader guide: How to read a quantum claim →