Entangle two qubits so they are perfectly correlated
How can two qubits be perfectly correlated when each one alone looks random?
You will use two qubits and two gates. First, a Hadamard puts qubit 0 into superposition. Then a CNOT gate links qubit 1 to qubit 0 so that they always agree. The result is called a Bell state, the simplest example of quantum entanglement.
After the Hadamard, qubit 0 is in a 50/50 superposition and qubit 1 is still |0⟩. The CNOT gate then says: if qubit 0 is |1⟩, flip qubit 1. Because qubit 0 is in superposition, CNOT creates a state where both qubits are |0⟩ together OR both are |1⟩ together, with nothing in between. Measuring either qubit alone gives a random result, but whenever you measure both, they always match. This correlation is stronger than anything classical physics allows.
H puts qubit 0 into superposition while qubit 1 stays in |0⟩. At this point the two qubits are still independent. The histogram shows equal weight on |00⟩ and |10⟩. Look at the Bloch spheres: qubit 0 is on the equator, qubit 1 is still at the north pole.
CNOT flips qubit 1 when qubit 0 is |1⟩. The |00⟩ branch stays |00⟩ and the |10⟩ branch becomes |11⟩. Now the histogram shows only |00⟩ and |11⟩, with zero weight on |01⟩ or |10⟩. Both Bloch sphere arrows move inward, showing that each qubit individually is mixed, even though the pair is in a sharp, well-defined state.
It is tempting to think one qubit secretly carries a hidden value that the other one copies. That is not what happens. Before measurement, neither qubit has a definite value. The correlation is built into the joint quantum state, not into hidden local properties. This distinction is what Bell's theorem proves.
You see only 00 and 11 in the output, each with roughly 50% frequency. You never see 01 or 10. Over 1000 shots, the counts for 00 and 11 should each be near 500.
This experiment is a hands-on companion to the Entanglement lesson. That lesson explains why the Bell state cannot be written as a product of two separate qubit states, what it means for each qubit to be locally mixed, and how entanglement differs from classical correlation. After running this experiment, the formula |Φ+⟩ = (|00⟩+|11⟩)/√2 should feel like something you have seen in action.
Read the full lesson →In a Bell state, you measure qubit 0 and get |1⟩. What is the state of qubit 1?