Module 11 introduced three families of two-qubit controlled gates — CNOT, CZ, and SWAP — and the
identities that connect them. This checkpoint asks you to combine those tools to realize a specific
target operation.
The target: a Bell-basis encoder
A natural and important two-qubit unitary is the Bell-basis encoderUBell. It maps
each computational basis state to a distinct Bell state:
The four Bell states form an orthonormal basis for the two-qubit space — they span the same
space as the computational basis, just rotated. Because UBell maps one orthonormal
basis to another, it is unitary: UBell†UBell=I.
Reading off the circuit
To figure out what gates to use, look at the first row of the map. Starting from ∣00⟩,
the output ∣Φ+⟩=21(∣00⟩+∣11⟩) is the Bell state built
in the "CNOT on Superpositions" lesson. The recipe is:
Apply H to qubit 0, turning ∣0⟩ into ∣+⟩=21(∣0⟩+∣1⟩).
Apply CNOT(0→1), entangling the qubits.
Let us verify that the same two-gate sequence maps the remaining basis states correctly.
Input ∣01⟩:
∣01⟩H⊗I21(∣0⟩+∣1⟩)∣1⟩=21(∣01⟩+∣11⟩).
CNOT flips qubit 1 when qubit 0 is ∣1⟩, so ∣11⟩→∣10⟩ while ∣01⟩
stays:
All four inputs produce the correct Bell state, confirming that UBell=CNOT(0→1)⋅(H⊗I).
The unitary grader
This exercise uses the unitary grader: it extracts the full 4×4 matrix of your
circuit and compares it to the reference. Every column of the matrix is the image of one
computational basis state under your circuit, so each column must match one of the four Bell
states shown above. An empty circuit, a circuit with only H, or a circuit with only CNOT will
all fail — both gates are required.
Try it
Build UBell: apply H to qubit 0, then CNOT with control 0 and target 1. The grader
checks the whole unitary matrix.
Run your code to see the quantum state.
After running, inspect the Unitary panel: the four columns should each show two amplitudes of
magnitude 21≈0.707 at positions {∣00⟩,∣11⟩},
{∣01⟩,∣10⟩}, {∣00⟩,∣11⟩}, and {∣01⟩,∣10⟩}
(with appropriate signs), confirming the Bell-state structure of the encoder.
Sign in on the full site to ask questions and join the discussion.