Prepare an ancilla qubit in . To measure , apply a Hadamard gate to each data qubit, apply a controlled-NOT gate from each data qubit to the ancilla, measure the ancilla in the computational basis, and apply a Hadamard gate to each data qubit again. The ancilla records the parity of the two rotated computational-basis bits, so outcome corresponds to eigenvalue and outcome to eigenvalue . The data register is projected by , so its complete post-measurement state is retained. For , perform the same ancilla-assisted Pauli measurement but apply the basis-changing Hadamard gates only to the second data qubit.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 324 1 c i Solution 2026-09-28
A Pauli-based computation starts with the supplied nonstabilizer resource state and performs an adaptive sequence of mutually commuting measurements of Pauli observables. Each outcome is recorded classically and may determine the next Pauli observable and the final classical output. When a proposed observable anticommutes with a previously fixed Pauli constraint, its outcome is uniformly random by part b(i); one samples that outcome and uses the Clifford operation from part b(ii) to update the Clifford frame. This replaces the old constraint by the newly measured one while preserving the distribution and the post-measurement state represented by the computation.