A phase tag on a dual-rail qubit carries alongside the classical photon-presence ledger without changing it; only a swap moves the bars. 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 untagged rail counts are the reference row

Chapter four's rail cases never carried a phase tag. With no tag, logical zero reads as 1 upper and 0 lower, outputting logical 0.

(Nupper,Nlower)=(1,0)(N_{\text{upper}},N_{\text{lower}})=(1,0)
No phase tagThe untagged row is this scan's reference.1upper0lowerdual rail

A plus tag rides along without moving either bar

Adding a plus phase tag to the same untouched, unswapped rail changes nothing in the classical count ledger: the upper and lower bars and the output logical value are identical to the untagged row. The rail's photon-presence counts cannot see the tag at all.

tagNupperNloweroutnone100plus100\begin{array}{c|c|c|c}\text{tag}&N_{\text{upper}}&N_{\text{lower}}&\text{out}\\\text{none}&1&0&0\\\text{plus}&1&0&0\\\end{array}
Plus phase tagThe plus-tagged row renders identically to the untagged row.1upper0lowerdual rail

Only the swap, never the tag, moves the bars

The final row carries a minus tag and is also swapped. The output flips to logical 1 because it is swapped, exactly as chapter four's swap-mirror case predicts -- the minus tag riding along changes nothing about which bar carries the count. A tag is metadata carried alongside the ledger, not a term inside it; a real photonic phase only becomes measurable once two tagged paths actually interfere, as chapter three's bright and dark ports already showed.

(Nupper,Nlower)=(0,1)(N_{\text{upper}},N_{\text{lower}})=(0,1)
Minus tag, swappedThe final row is rendered as the checked swapped-and-tagged case.0upper1lowerdual rail