Majority vote can preserve the logical value, but it does not by itself name which physical positions flipped. The count comparison is exact for the declared word and ideal bit flips; real stabilizer measurements need separate syndrome circuits with their own gate errors, readout thresholds, crosstalk, and finite-shot uncertainty.

A majority can survive while a location claim remains out of scope. 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 longer repetition word can still have a majority

The length 5 encoded word is 11111.

n=5w=11111n=5\quad w=11111
Length five codeThis lesson uses majority only.repetition code

Two flips can preserve majority without locating errors

Flipping indices 1 and 3 changes the word to 10101, whose majority remains 1.

w′=10101majority=1w'=10101\quad \mathrm{majority}=1
Majority contrastNo syndrome table is used for this length.majority contrast