A residual is a counted difference after calibration, not a rewrite of the quantum state. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

The audit starts with one calibrated prediction

The calibrated baseline expects 57 zero reads and 23 one reads over 80 shots.

Nzero=57,None=23N_{\text{zero}}=57,\quad N_{\text{one}}=23
Baseline audit predictionThe prediction is the source for residual rows.true probabilitieszero 3/4one 1/4assignmentobserved probszero 57/80one 23/80over 80 shots57 zero reads23 one readsprep -> ctrl -> couple -> read

A small drift is a counted difference

New counts 55 and 25 leave residuals 2 and 2.

ΔNzero=2,ΔNone=2\Delta N_{\text{zero}}=2,\quad \Delta N_{\text{one}}=2
Small residualExpected, new, and residual counts are rendered.57/8023/8011/165/161/401/40expectednew countsresidualzeroone

Three residual rows separate baseline from drift

The residual rows compare count differences only. They do not change the prepared state, the coupling map, or the readout assignment matrix.

rowNzeroNoneΔbaseline57230small55252large52285\begin{array}{c|c|c|c}\text{row}&N_{\text{zero}}&N_{\text{one}}&\Delta\\\text{baseline}&57&23&0\\\text{small}&55&25&2\\\text{large}&52&28&5\\\end{array}
Residual scanThe largest row renders expected, new, and residual counts.57/8023/8013/207/201/161/16expectednew countsresidualzeroone

A larger residual flags drift without rewriting physics

The larger row has residuals 5 and 5. That is an alarm number, not a new qubit state.

ΔNzero=5,ΔNone=5\Delta N_{\text{zero}}=5,\quad \Delta N_{\text{one}}=5
Large residual auditResiduals are computed from the displayed count differences.57/8023/8013/207/201/161/16expectednew countsresidualzeroone