Quantum Gates & Circuits
Quantum gates are the quantum analogues of classical logic gates. They are represented by unitary matrices — invertible operations that preserve the normalization of quantum states. Every quantum computation is a sequence of such gates, and a small universal set suffices to approximate any quantum operation to arbitrary precision.
Key Concepts
Key Equations
Applying the Hadamard Gate
Show that applying twice to returns , demonstrating .
Apply H to |0⟩:
Apply H again to |+⟩:
Exercises
5 problemsApply the gate to . What is after measurement?
Apply to to get . What is upon measurement?
Apply then again to (since ). What is ?
Unlock Exercise 3
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Apply to . What is ? (Global phase has no effect.)
Unlock Exercise 4
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →A general 2-qubit unitary can be decomposed into at most how many CNOT gates (Shende et al. 2004 tight bound)?
Unlock Exercise 5
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Key Takeaways
- Quantum gates are unitary matrices; ensures reversibility and norm preservation.
- Pauli gates X, Y, Z are the single-qubit building blocks; X is the quantum NOT gate.
- The Hadamard creates equal superpositions and is its own inverse: .
- CNOT entangles two qubits — it is the essential two-qubit gate for quantum algorithms.
- The set is universal: any quantum algorithm can be compiled into these three gates.