ConceptBeginnermeasurement

Measurement Basis

The measurement basis is the orthonormal basis onto which a state is projected; measuring in the $X$ or $Y$ basis is done by rotating the state before a computational-basis measurement.

A projective measurement is defined by an orthonormal basis $\{|b_k\rangle\}$, and outcome $k$ occurs with probability $|\langle b_k|\psi\rangle|^2$. Hardware and Qiskit usually measure only in the computational basis (the $Z$ basis). To measure in another basis $\{U|k\rangle\}$ we apply $U^\dagger$ and then measure computationally, because $|\langle k|U^\dagger|\psi\rangle|^2=|\langle b_k|\psi\rangle|^2$.

Common cases: the $X$ basis, by applying $H$ and then measuring, so outcome 0 means $|+\rangle$ and outcome 1 means $|-\rangle$. The $Y$ basis, by applying $S^\dagger$, then $H$, then measuring, so outcome 0 means $|{+i}\rangle$. For a multi-qubit observable such as $X\otimes Z$ we apply the appropriate rotation to each qubit.

The choice of basis radically changes the information extracted: the state $|+\rangle$ gives a random outcome in the $Z$ basis and a definite outcome in the $X$ basis. The BB84 protocol, the estimation of Pauli-string expectation values in VQE, the CHSH test and state tomography all rest on this. The measurement lab lets you choose the $z$, $x$ or $y$ basis to see it in action.

Mathematical formula

$$p(k)=|\langle b_k|\psi\rangle|^2=|\langle k|U^{\dagger}|\psi\rangle|^2,\qquad |b_k\rangle=U|k\rangle$$

Worked example

The state $|{+i}\rangle$. In the $Z$ basis: $P(0)=\tfrac12$. In the $X$ basis: $|\langle+|{+i}\rangle|^2=\left|\tfrac{1+i}{2}\right|^2=\tfrac12$. In the $Y$ basis: $S^\dagger|{+i}\rangle=|+\rangle$, then $H|+\rangle=|0\rangle$, so $P(0)=1$. Three bases, and a definite outcome in only one.

Test your understanding

The quiz needs JavaScript.

Related topics

References

  1. Microsoft (2025). Pauli Measurements in Quantum Computing. Azure Quantum documentation learn.microsoft.com
  2. Michael A. Nielsen; Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press doi:10.1017/CBO9780511976667The standard reference for quantum computing; the Crossref record gives 2012 for the Cambridge Core online edition.