QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
HomeLearnCatalogRanksPlaygroundDocs
04 · Entanglement and the Bell states0%

You are reading without signing in. Sign in or continue as guest to take quizzes and climb the ranks.

Learn/QC 102Gates and Circuits·Lesson 4 of 7

Entanglement and the Bell states

Build the four Bell states, test them with correlations, and see why they cannot be factored.

Beginner14 min read6 sections · 2 questions+45
By the end you will be able to
  1. 01Derive |Φ⁺⟩ from H then CNOT.
  2. 02Show that |Φ⁺⟩ is not a product state.
  3. 03Make all four Bell states with one extra X or Z.
∣Φ±⟩=2​∣00⟩±∣11⟩​,∣Ψ±⟩=2​∣01⟩±∣10⟩​

H on qubit 0 gives (|0⟩+|1⟩)|0⟩/√2. CNOT with control 0 flips qubit 1 in the second branch only: (|00⟩+|11⟩)/√2. Try to write this as (a|0⟩+b|1⟩)(c|0⟩+d|1⟩): you need ac ≠ 0 and bd ≠ 0 but ad = bc = 0, which is impossible. The state has no description qubit by qubit.

Hands-on

Perfect correlation

Simulate: half the shots read 00, half 11, never 01 or 10. Then add z q[0] before the CNOT to make |Φ⁻⟩: the histogram is identical. Only the State tab's phases tell the two apart.

OpenQASM 3
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
bit[2] c;
h q[0];
cx q[0], q[1];
c = measure q;
Sign in to run (nothing is saved)
Open in the IDE Open in the Playground
StateBefore the CNOT, add
|Φ⁺⟩nothing
|Φ⁻⟩z q[0]
|Ψ⁺⟩x q[1]
|Ψ⁻⟩z q[0] and x q[1]

01Entanglement you can measure

Correlation in one basis is not enough: two classical coins glued together also always agree. Entanglement shows when the correlation survives a change of basis. Measure both qubits of |Φ⁺⟩ in the X basis (H on each before measuring) and they still agree every time. Classical coins cannot do that.

Hands-on

Agreement in the X basis

Simulate: again only 00 and 11. Replace the Bell pair by two independent H gates (remove the CNOT) and the X-basis results become uniform.

OpenQASM 3
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
bit[2] c;
h q[0];
cx q[0], q[1];
h q[0];
h q[1];
c = measure q;
Sign in to run (nothing is saved)
Open in the IDE Open in the Playground
Knowledge check

2 questions · one try each counts

Question 1

Which circuit prepares |Ψ⁺⟩ = (|01⟩+|10⟩)/√2?

Sign in to answer and climb the ranks; you will come back to this lesson.

Question 2

Two qubits always give the same bit in the Z basis. Are they necessarily entangled?

Sign in to answer and climb the ranks; you will come back to this lesson.

Key takeaway

H then CNOT makes a Bell state: a two-qubit state with no description qubit by qubit, whose correlations survive a change of basis. One X or Z before the CNOT selects which of the four.

Finished reading?

Knowledge check: 2 questions waiting above. Questions are optional. Mark it complete, or press Next: moving on marks it complete too.

Up next
Lesson 5 · 12 min
Phase Kickback: The Algorithm Secret
How a CNOT can change its own control: a target in |−⟩ sends a phase back, the trick inside every oracle and phase estimation.
Further reading
  • Docs: entanglement chapter
More in Gates and Circuits
  • Pauli gates: X, Y, Z
  • Phase and rotation gates
  • Two-qubit gates: CNOT, CZ, SWAP
Two-qubit gates: CNOT, CZ, SWAPPhase Kickback: The Algorithm Secret
In this lesson0%
  1. Introduction
  2. Try it: Perfect correlation
  3. Entanglement you can measure
  4. Try it: Agreement in the X basis
  5. Knowledge check
  6. Key takeaway
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in