← Back to Lecture 6
One-page summary · CSC3132

Lecture 6: Multiple-qubit systems and two-qubit gates

Laid out to fit one A4 page. Good for copying into handwritten notes: rewriting it from memory, then checking, is better than reading it.

CNOT

  • CNOT∣a,b⟩=∣a,a⊕b⟩\mathrm{CNOT}\ket{a,b} = \ket{a, a\oplus b} (⊕\oplus = XOR)
  • ∣00⟩→∣00⟩\ket{00}\to\ket{00}, ∣01⟩→∣01⟩\ket{01}\to\ket{01}, ∣10⟩→∣11⟩\ket{10}\to\ket{11}, ∣11⟩→∣10⟩\ket{11}\to\ket{10}
  • Matrix: (1000010000010010)\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix}; linear, so it acts term by term

Making a Bell pair

  • ∣00⟩→H⊗I12(∣00⟩+∣10⟩)→CNOT12(∣00⟩+∣11⟩)\ket{00}\xrightarrow{H\otimes I}\tfrac1{\sqrt2}(\ket{00}+\ket{10})\xrightarrow{\mathrm{CNOT}}\tfrac1{\sqrt2}(\ket{00}+\ket{11})
  • Inputs ∣ab⟩\ket{ab} give the four Bell states: Φ+(00),Ψ+(01),Φ−(10),Ψ−(11)\Phi^+ (00), \Psi^+ (01), \Phi^- (10), \Psi^- (11)

Other gates

  • SWAP: ∣ab⟩→∣ba⟩\ket{ab}\to\ket{ba} = 3 CNOTs (alternating direction)
  • Toffoli: flip target iff both controls are 1; reversible and classically universal
  • (A⊗B)(∣a⟩⊗∣b⟩)=A∣a⟩⊗B∣b⟩(A\otimes B)(\ket a\otimes\ket b) = A\ket a\otimes B\ket b