Start from |00⟩
Both qubits start in |0⟩. Kets are written |q1 q0⟩ (Qiskit order), so the rightmost label is q0.
qc = QuantumCircuit(2, 2)
Two gates turn |00⟩ into the most famous entangled state. Follow each step in code, mathematics and the Studio's visualizations.
Both qubits start in |0⟩. Kets are written |q1 q0⟩ (Qiskit order), so the rightmost label is q0.
qc = QuantumCircuit(2, 2)
q0 is now in superposition, but the two qubits are still independent: the state is a product, and both Bloch vectors have length 1.
qc.h(0)
The |01⟩ component (q0 = 1) flips q1, giving |11⟩. The result cannot be written as a product of two single-qubit states: the qubits are entangled.
qc.cx(0, 1)
Each qubit on its own is maximally mixed: its Bloch vector shrinks to the centre and its entropy is 1 bit. All the information is in the correlations, not in either qubit.
# Studio → State → Bloch → q0 / q1
Each outcome is random, but the two records always agree. Measuring in the X basis also gives perfect agreement — try it in the Bell Lab.
qc.measure(0, 0) qc.measure(1, 1)
Bell pairs are the resource behind teleportation, superdense coding and entanglement-based key distribution. Their correlations are stronger than any local classical model allows — the CHSH value reaches 2√2 instead of 2.
Further reading: M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (2010), §1.3.6 and §2.6.