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.
Articles by others on the same topic
There are currently no matching articles.