TopicBeginnerEstablished concept

Measurement Basis

Measurement Basis

The measurement basisMeasurement Basis: The measurement basis is the orthonormal basis onto which the state is projected on measurement; measuring in the X and Y bases is done by rotating the state before a co… is the orthonormal basis onto which the state is projected on measurement; measuring in the $X$ and $Y$ bases is done by rotating the state before a computational 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 qubitQubit: The qubit is the unit of quantum information: a two-level system whose state is a unit vector α0⟩+β1⟩ in ℂ^2..

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.

|0⟩|1⟩θφ|ψ⟩
Bloch sphere: the qubit state is a vector on the sphere's surface with two angles θ and φ

Mathematical formulation

$$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.

Try it yourself: Qubit Simulator

Loading the simulator…

The full experiment page

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.