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.