Controlled gates and Bell states
Controlled gates (like CNOT) let one qubit conditionally change another; combining them with single-qubit gates produces the four Bell states — maximally entangled two-qubit states used for teleportation, superdense coding and entanglement tests.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Engineers use controlled gates and Bell states when designing quantum circuits that create, manipulate and measure entanglement. Practical tasks include building entanglement sources for quantum communication (teleportation, superdense coding), debugging two-qubit gates on hardware, and proving correctness of quantum algorithms that rely on entanglement.
Key ideas
If c = 0 → do nothing: |0, t> -> |0, t>
If c = 1 → apply U to target: |1, t> -> |1> (U|t>) Bold: A controlled gate is a 4×4 unitary with block-diagonal form I ⊕ U in the computational basis ordered as |00>, |01>, |10>, |11>, with the first qubit as control. Control-on-|0> can be implemented by sandwiching with X on the control (apply X on the control before and after the controlled-U).
CNOT (controlled-NOT) — the specific controlled gate with U = X (Pauli-X). Definition: it flips the target bit when control is |1>. Exact action on basis:
- |00> -> |00>
- |01> -> |01>
- |10> -> |11>
- |11> -> |10> The CNOT matrix in the computational basis (|00>,|01>,|10>,|11>) is a 4×4 permutation matrix (see Formulas).
Hadamard gate (H) — single-qubit unitary that maps |0> -> (|0>+|1>)/√2 and |1> -> (|0>-|1>)/√2. It creates equal superposition from a basis state.
Entanglement — a multi-qubit state is entangled if it cannot be written as a tensor product of individual qubit states. Formally: |ψ> in H_A ⊗ H_B is entangled if there do not exist |α> in H_A and |β> in H_B with |ψ> = |α> ⊗ |β>.
Bell states (Bell basis) — four orthonormal, maximally entangled two-qubit states (also called EPR pairs). They form a basis of the two-qubit space and are:
- |Φ+> = (|00> + |11>)/√2
- |Φ-> = (|00> - |11>)/√2
- |Ψ+> = (|01> + |10>)/√2
- |Ψ-> = (|01> - |10>)/√2 Bold: "Maximally entangled" means the reduced state of either single qubit is the maximally mixed state I/2.
Preparing a Bell state (standard circuit) — Start with |00>, apply H to the first qubit, then apply CNOT with first as control and second as target. Diagram to draw for exam: two horizontal lines left-to-right labeled Qubit 1 (top) and Qubit 2 (bottom). On top line place a box labeled H; on top line after H place a control dot connected vertically to a ⊕ symbol on the bottom line (label the control and target). Arrow left-to-right indicates circuit time.
Density matrix and partial trace — For a pure state |ψ>, ρ = |ψ><ψ|. The reduced density matrix for subsystem A is ρ_A = Tr_B(ρ). For Bell states ρ_A = I/2 (maximally mixed). Derivation of this is commonly asked in exams (see Worked examples).
Bell measurement — a measurement in the Bell basis. It projects two qubits onto one of the four Bell states. In many protocols you are asked to show how a Bell measurement can be implemented by reversing the Bell-state preparation: apply CNOT (control first) then H on the first qubit, then measure both qubits in computational basis. This maps Bell states to computational-basis outcomes as |Φ+> -> 00, |Φ-> -> 10, |Ψ+> -> 01, |Ψ-> -> 11.
Assumptions used: qubits are ideal, gates are unitary, basis ordering is fixed to |00>,|01>,|10>,|11| unless stated otherwise.
Formulas
H = (1/sqrt(2)) * [[1, 1], [1, -1]] — H is the Hadamard matrix. Symbols: H (unitary), sqrt( ) = square root, entries are dimensionless, applies to single qubits.
X = [[0, 1], [1, 0]] — Pauli-X (bit-flip). X is unitless and applies to single qubits.
CNOT = [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]] — matrix in computational basis ordered |00>,|01>,|10>,|11>. All entries dimensionless. Applies to two qubits with first as control, second as target.
|Φ+> = (|00> + |11>) / sqrt(2) — definition of Bell state |Φ+>.
ρ = |ψ><ψ| — density matrix for pure state |ψ>. ρ is unitless; Tr(ρ)=1.
ρ_A = Tr_B(ρ) — partial trace over subsystem B yields reduced density matrix on A. Tr_B has no units.
P(outcome i) = <ψ|Π_i|ψ> — probability of measurement outcome i for projector Π_i. Dimensionless; 0 ≤ P ≤ 1.
S(ρ) = -Tr(ρ log2 ρ) — Von Neumann entropy in bits. Dimensionless; log base 2 yields units of bits.
Worked examples
Example 1 — Prepare |Φ+> from |00> (exam-style derivation)
- Start: |ψ0> = |0> ⊗ |0> = |00>.
- Apply H on qubit 1: H|0> = (|0> + |1>)/√2, so state becomes |ψ1> = (|0> + |1>)/√2 ⊗ |0> = (|00> + |10>)/√2.
- Apply CNOT (control = qubit1, target = qubit2): CNOT|00> = |00>, CNOT|10> = |11>. So
|ψ2> = (|00> + |11>)/√2 = |Φ+>.
Final answer: |Φ+> = (|00> + |11>)/√2.
Example 2 — Action of CNOT on a product superposition
Given state |ψ> = (|0> + |1>)/√2 ⊗ (|0> - |1>)/√2. Compute CNOT(|ψ>). Steps:
- Expand tensor product: |ψ> = (1/2)(|00> - |01> + |10> - |11>). (Normalization: 1/√2 × 1/√2 = 1/2.)
- Apply CNOT to each basis term:
- CNOT|00> = |00>
- CNOT|01> = |01>
- CNOT|10> = |11>
- CNOT|11> = |10>
- So resulting state = (1/2)(|00> - |01> + |11> - |10>) = (1/2)(|00> - |01> - |10> + |11>) (reorder if needed).
This state is not entangled; it factorizes as (|0> - |1>)/√2 ⊗ (|0> - |1>)/√2 = |-> ⊗ |->. Final answer: CNOT(|ψ>) = (|00> - |01> - |10> + |11>)/2 = |-> ⊗ |->.
Example 3 — Reduced density matrix of |Φ+> and entropy
- Pure state |Φ+> = (|00> + |11>)/√2. Density matrix ρ = |Φ+><Φ+| = (1/2)(|00><00| + |00><11| + |11><00| + |11><11|).
- Compute reduced density for qubit A: ρ_A = Tr_B(ρ). Evaluate matrix elements in basis |0>,|1> for qubit A:
- Tr_B(|00><00|) = |0><0| · Tr(|0><0|) = |0><0| · 1 = |0><0|
- Tr_B(|00><11|) = |0><1| · Tr(|0><1|) = |0><1| · 0 = 0 (off-diagonal vanishes)
- Tr_B(|11><00|) = 0
- Tr_B(|11><11|) = |1><1| So ρ_A = (1/2)(|0><0| + |1><1|) = I/2.
- Von Neumann entropy: eigenvalues of ρ_A are 1/2 and 1/2, so S(ρ_A) = -(1/2)log2(1/2) - (1/2)log2(1/2) = 1 bit.
Final answers: ρ_A = I/2, S(ρ_A) = 1 bit.
Common mistakes
- Treating Bell states as product states. Students often try to write |Φ+> = |α> ⊗ |β> — this is impossible; show by attempting to factor coefficients.
- Wrong ordering of basis states (some books use |00>,|10>,|01>,|11> ordering). Always state the ordering when writing the CNOT matrix.
- Incorrect partial trace: forgetting that Tr(|i><j|) over subsystem B is δ_{ij} (Kronecker delta), which kills cross terms.
- Assuming local measurement outcomes are deterministic for Bell states. Locally each qubit is random; only joint outcomes are correlated.
For your exam
Question types you can expect for this topic:
- Definitions: define controlled gate, CNOT, Bell states, entanglement.
- Short derivation: show CNOT matrix; show how H + CNOT produces |Φ+> from |00> with circuit diagram.
- Density-matrix derivation: compute reduced density matrix of a Bell state and its entropy.
- Circuit reasoning: given a circuit with H and CNOTs, compute final state or show whether it is entangled.
- Diagram question: draw the Bell-state preparation circuit and the Bell-measurement circuit (reverse the preparation).
What a full-marks answer includes:
- Clear statement of starting assumptions (basis ordering, which qubit is control), explicit matrices where helpful, correct normalization, step-by-step algebra, a labeled circuit diagram, and a concluding sentence interpreting the result (e.g., entangled, maximally mixed reduction).
Quick check
- Write the state vector for |Ψ->.
- If you apply CNOT (control=1, target=2) to |10>, what is the result?
- What is the reduced density matrix of qubit 1 for |Ψ+>?
Answers: 1) (|01> - |10>)/√2; 2) |11>; 3) I/2 (maximally mixed).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?