Quantum Gate
A basic operation on qubits, the quantum equivalent of classical logic gates.
A quantum gate is a basic operation that transforms quantum states. Just as classical computers use AND, OR, and NOT gates, quantum computers use quantum gates to perform computations.
Key Properties
Unitary
Every quantum gate is represented by a unitary matrix :
This ensures:
- Reversibility (every gate has an inverse: )
- Preservation of probability (states stay normalized)
Reversible
Unlike classical gates (AND, OR destroy information), quantum gates are always reversible. Given the output, you can recover the input.
Common Single-Qubit Gates
| Gate | Matrix | Effect |
|---|---|---|
| Pauli X | Bit flip | |
| Pauli Y | Bit + phase flip | |
| Pauli Z | Phase flip | |
| Hadamard (H) | Creates superposition | |
| Phase (S) | π/2 phase | |
| T Gate | π/4 phase |
Common Multi-Qubit Gates
| Gate | Qubits | Effect |
|---|---|---|
| CNOT | 2 | Controlled NOT (entangling) |
| CZ | 2 | Controlled Z |
| SWAP | 2 | Exchanges two qubits |
| Toffoli | 3 | Controlled-controlled NOT |
Gate Application
Applying gate to state :
For density matrices:
Rotation Gates
Single-qubit gates can be parameterized as rotations:
Any single-qubit gate can be decomposed into rotations:
Gate Sets
A universal gate set can approximate any quantum operation:
- {H, T, CNOT}: standard universal set
- {H, Toffoli}: also universal
Physical Implementation
Gates are implemented differently on different hardware:
- Superconducting qubits: Microwave pulses
- Trapped ions: Laser pulses
- Photonic: Beam splitters, phase shifters
Gate times and error rates are key performance metrics. Fidelity measures how close a real gate is to the ideal operation.
See also: Quantum Circuit, Pauli Gates, Hadamard Gate, CNOT Gate, Universal Gate Set