egtry / Quantum States & Qubits Step by Step

Bell Pair Preparation

A simple two-gate sequence prepares a two-qubit state with exactly two correlated branches.

Calculate the baseline

H on the zero control prepares equal control branches; the target starts in zero. CNOT then maps the one-zero branch to one-one, leaving two correlated branches.

Prepare control (0.7071067812, 0.7071067812) and target zero, then CNOT. What is the same-bit probability?

  1. Start with a|00⟩ + b|10⟩; CNOT gives a|00⟩ + b|11⟩ — The two branches carry signed amplitudes.
  2. Leave target unchanged: a|00⟩ + b|11⟩ — A target flip is an explicit comparison with the correlated baseline.
  3. P00 + P11 = 1 1 — Add only the same-bit rows; one-qubit marginals may still be uncertain.
  4. ✓ — Independent check: Same-bit plus different-bit probability equals one.

Enable JavaScript to control the model and practise.

Compare a second case

Use unequal control amplitudes as a comparison. Both branches still have matching bits, although the marginal probabilities are unequal.

Prepare control (0.6, 0.8) and target zero, then CNOT. What is the same-bit probability?

  1. Start with a|00⟩ + b|10⟩; CNOT gives a|00⟩ + b|11⟩ — The two branches carry signed amplitudes.
  2. Leave target unchanged: a|00⟩ + b|11⟩ — A target flip is an explicit comparison with the correlated baseline.
  3. P00 + P11 = 1 1 — Add only the same-bit rows; one-qubit marginals may still be uncertain.
  4. ✓ — Independent check: Same-bit plus different-bit probability equals one.

Enable JavaScript to control the model and practise.

Test the boundary and practise

An explicit target X after CNOT changes matching branches into opposite-bit branches. This comparison tests the routing, not time evolution.

Prepare control (0.7071067812, 0.7071067812) and target zero, then CNOT and a target X. What is the same-bit probability?

  1. Start with a|00⟩ + b|10⟩; CNOT gives a|00⟩ + b|11⟩ — The two branches carry signed amplitudes.
  2. Apply target X: a|01⟩ + b|10⟩ — A target flip is an explicit comparison with the correlated baseline.
  3. P00 + P11 = 0 1 — Add only the same-bit rows; one-qubit marginals may still be uncertain.
  4. ✓ — Independent check: Same-bit plus different-bit probability equals one.

Enable JavaScript to control the model and practise.

Recap