|q⟩ Bad Qubits

beginner · Programming · Quantum Teleportation & Superdense Coding

The Bell Measurement

Quantum teleportation requires Alice to measure her two qubits in the Bell basis — the four maximally-entangled two-qubit states. Rather than building a new kind of detector, a Bell-basis measurement is simply a change of basis followed by ordinary computational-basis measurement. That change of basis is a small two-gate circuit.

The four Bell states

The Bell basis consists of

Φ+=12(00+11),Φ=12(0011),|\Phi^+\rangle = \tfrac{1}{\sqrt{2}}\bigl(|00\rangle + |11\rangle\bigr), \quad |\Phi^-\rangle = \tfrac{1}{\sqrt{2}}\bigl(|00\rangle - |11\rangle\bigr), Ψ+=12(01+10),Ψ=12(0110).|\Psi^+\rangle = \tfrac{1}{\sqrt{2}}\bigl(|01\rangle + |10\rangle\bigr), \quad |\Psi^-\rangle = \tfrac{1}{\sqrt{2}}\bigl(|01\rangle - |10\rangle\bigr).

Each state is labelled by two classical bits once you measure in the Bell basis: the bit pair 00 identifies Φ+|\Phi^+\rangle, 10 identifies Φ|\Phi^-\rangle, 01 identifies Ψ+|\Psi^+\rangle, and 11 identifies Ψ|\Psi^-\rangle.

The Bell measurement circuit

Creating a Bell pair from 00|00\rangle takes two gates: HH on qubit 0, then CNOT(01)\mathrm{CNOT}(0 \to 1). Both gates are their own inverse (H2=IH^2 = I, CNOT2=I\mathrm{CNOT}^2 = I), so the inverse circuit — the Bell measurement — is just the same two gates applied in reverse order:

  1. CNOT(01)\mathrm{CNOT}(0 \to 1), then
  2. HH on qubit 0,
  3. measure both qubits in the computational basis.

We can verify this on Φ+|\Phi^+\rangle. After the CNOT we get

CNOTΦ+=12(00+10)=+0.\mathrm{CNOT}\,|\Phi^+\rangle = \tfrac{1}{\sqrt{2}}\bigl(|00\rangle + |10\rangle\bigr) = |+\rangle|0\rangle.

Applying HH to qubit 0 maps +0|+\rangle \to |0\rangle, leaving 00|00\rangle. Measuring now always yields the outcome 00 — exactly the label assigned to Φ+|\Phi^+\rangle. The same calculation shows that Φ10|\Phi^-\rangle \to |10\rangle, Ψ+01|\Psi^+\rangle \to |01\rangle, and Ψ11|\Psi^-\rangle \to |11\rangle.

Why this matters for teleportation

In the teleportation protocol, Alice holds the qubit she wants to send (qubit 0) and her half of the shared entangled pair (qubit 1). She performs the Bell measurement on these two qubits and obtains one of the four outcomes 00, 01, 10, or 11. Each outcome tells Bob which of four corrections to apply to his qubit — but only once Alice sends the two classical bits over a regular channel. No quantum information travels faster than light.

Try it

The starter code prepares Φ+|\Phi^+\rangle by applying H(0)H(0) and CNOT(01)\mathrm{CNOT}(0 \to 1). Add the Bell measurement — CNOT then H then measure — so that the grader sees the deterministic outcome 00 with probability 1.

Run your code to see the quantum state.

The probability bar for 00 should reach 100%, confirming that the Bell measurement correctly identifies Φ+|\Phi^+\rangle.

Sign in on the full site to ask questions and join the discussion.