|q⟩ Bad Qubits

beginner · Programming · Entanglement & Bell States

Checkpoint: Engineer an Entangled State

You have met all four Bell states and the template circuit that generates them. This checkpoint asks you to go further: given a target state, figure out the right setup for yourself.

The target

Prepare the Bell state

Φ=12(0011).|\Phi^-\rangle = \tfrac{1}{\sqrt{2}}\bigl(|00\rangle - |11\rangle\bigr).

Like all Bell states, Φ|\Phi^-\rangle is maximally entangled — each qubit measured alone is a 50/50 mixture, yet the two outcomes are perfectly correlated. What makes Φ|\Phi^-\rangle distinct from Φ+=12(00+11)|\Phi^+\rangle = \tfrac{1}{\sqrt{2}}(|00\rangle + |11\rangle) is the relative phase: the 11|11\rangle amplitude carries a factor of 1-1.

Why the phase matters

Two quantum states that differ only by a global phase are physically indistinguishable — there is no measurement that can tell ψ|\psi\rangle from eiθψe^{i\theta}|\psi\rangle. A relative phase between two terms inside a superposition is a different story. It affects interference and is therefore observable. In particular, Φ+|\Phi^+\rangle and Φ|\Phi^-\rangle are orthogonal:

Φ+Φ=12(00+11)(0011)=12(11)=0.\langle\Phi^+|\Phi^-\rangle = \tfrac{1}{2}(\langle 00| + \langle 11|)(|00\rangle - |11\rangle) = \tfrac{1}{2}(1 - 1) = 0.

A Bell-state measurement — used in teleportation and superdense coding — can distinguish these two states reliably, so engineering the correct relative phase is a meaningful task.

Anatomy of the template circuit

The standard two-qubit entangling circuit is: apply a Hadamard to qubit 0, then a CNOT from qubit 0 to qubit 1. Feeding this circuit a pre-rotated input state controls which Bell state emerges. If the initial state of the two-qubit register is xy|xy\rangle, then after HIH\otimes I followed by CNOT01\text{CNOT}_{0\to 1}:

To reach Φ|\Phi^-\rangle you need x=1x = 1 (negative phase) and y=0y = 0 (the Φ\Phi family), so the desired input is 10|10\rangle. Starting from 00|00\rangle that means flipping qubit 0 first.

Try it

Build the circuit that maps 00|00\rangle to Φ|\Phi^-\rangle. The grader checks the full state vector: amplitude 12\tfrac{1}{\sqrt{2}} on 00|00\rangle, amplitude 12-\tfrac{1}{\sqrt{2}} on 11|11\rangle, and exactly zero on 01|01\rangle and 10|10\rangle.

Run your code to see the quantum state.

Once you pass, examine the Bloch sphere: both qubits sit at the origin (maximally mixed individually), confirming the entangled nature of the joint state. The 1-1 relative phase is invisible on the individual Bloch spheres but was decisive in determining which Bell state you built.

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