Notation as in the theorem. Write for a Hermitian Pauli operator and .
Step 0: the order and the generating set do not matter. Because the commute, measuring them one after another (in any order) is the instrument whose operators are the joint spectral projectors . These projectors are the joint eigenprojectors of the abelian group generated by the , and they are the same for any generating set of ; the outcomes for one generating set are products of the outcomes for another. We may therefore measure first, with outcome , and then further generators that together with generate .
Step 1: measuring is measuring . By hypothesis with , and commutes with . Since ,
Hence with . The probabilities (traces) agree, which proves part 1, and the conditional state is stabilized by the group generated by and .
Step 2: the remaining checks. Suppose that before measuring the state is stabilized by an abelian group . By the non-degeneracy hypothesis there are two cases.
- . The outcome is fixed and : nothing changes.
- anticommutes with some . Let . Since
and , is unitary with
. Using ,so . Each outcome occurs with probability and the conditional state is , stabilized by and by the elements of that commute with .
Step 3: logical operators commuting with the checks. Let be a logical operator of that commutes with every , hence with every element of . Every element of every is a product of elements of , of and of elements of (up to sign), and commutes with all of these; commutes with because is such a product. So commutes with and in Step 2, hence with , and . By induction , which is part 2.
Step 4: the other logical operators. If a logical operator of commutes with but anticommutes with in Step 2, then anticommutes with and
using . So the expectation of after the step equals the expectation of before it: the information carried by is now carried by the operator , which differs from by the new stabilizer and the old stabilizer , with a sign fixed by the outcome . This is the Pauli frame update of part 3. The case analysis is exhaustive for the operator being tracked: start from a logical operator that commutes with , so that it commutes with ; the updated representative commutes with and with every element of that commutes with , so by induction the tracked representative always commutes with the current stabilizer group, in particular with . (A logical operator that anticommutes with loses its expectation at Step 1, exactly as under an ideal measurement of .)
The non-degeneracy hypothesis is what excludes a merge that accidentally measures a second logical operator: a generator that commuted with the whole current stabilizer group without belonging to it would act as an additional logical measurement. For surface-code merges the hypothesis is checked by the explicit form of the merged code (Vuillot and co-authors).