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

GateMatrixEffect
Pauli XBit flip
Pauli YBit + phase flip
Pauli ZPhase flip
Hadamard (H)Creates superposition
Phase (S)π/2 phase
T Gateπ/4 phase

Common Multi-Qubit Gates

GateQubitsEffect
CNOT2Controlled NOT (entangling)
CZ2Controlled Z
SWAP2Exchanges two qubits
Toffoli3Controlled-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