A checked swap exchanges the upper and lower rail labels. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
A swap sends upper occupation to the lower rail
Starting from logical 0, the checked swap gives output logical 1.
0swap1
The same swap sends lower occupation to upper
Starting from logical 1, the checked swap gives output logical 0.