To read in another basis, apply these gates and then read Z.
X basisY basisHS† then H For the Bell basis, apply CNOT and then H on the control qubit, and read both qubits.
A parity check reads one fact about a pair through a spare qubit, called an ancilla. For two qubits read in the Z basis, it gives +1 when they agree and −1 when they differ.
Z⊗Z={+1−1∣00⟩, ∣11⟩∣01⟩, ∣10⟩ A state that already gives one answer for sure, such as a Bell state, comes through the check untouched. That is how parity checks tell Bell states apart without breaking them, and why error correction is built from them.