Open-system stages are ordered ledgers: the device channel changes the true counts before readout assignment changes the observed counts. The order is exact only for the declared matrices and probabilities; real devices blur it with drift, correlated errors, finite statistics, and imperfect calibration.
Readout assignment is applied after the device channel has changed the ledger. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Readout assignment is applied after the channel
The channel output probabilities are 4/5 zero and 1/5 one before readout assignment.
ptrue=(54,51)
The observed ledger is not the device ledger
The assignment rows turn those 100 shots into 65 zero reads and 35 one reads.