Identity — I
Leaves the qubit state unchanged.
Simulator
Pauli-X — X
Bit-flip gate. Maps |0⟩ → |1⟩ and |1⟩ → |0⟩. Quantum analogue of the classical NOT gate.
Matrix
Pauli-Y — Y
Combined bit-flip and phase-flip. Maps |0⟩ → i|1⟩ and |1⟩ → -i|0⟩.
Simulator
Pauli-Z — Z
Phase-flip gate. Leaves |0⟩ unchanged and maps |1⟩ → -|1⟩.
Simulator
Hadamard — H
Creates an equal superposition from a basis state: |0⟩ → (|0⟩ + |1⟩)/√2, |1⟩ → (|0⟩ - |1⟩)/√2. Fundamental to most quantum algorithms.
Matrix
S Gate — S
Applies a π/2 (90°) phase shift to |1⟩. Equivalent to T².
Simulator
T Gate — T
Applies a π/4 (45°) phase shift to |1⟩. Used in fault-tolerant gate sets.
Simulator
Phase Rotation — R(theta)
Applies a phase of exp(i·theta) to |1⟩, leaving |0⟩ unchanged.
q.Theta(k) to get the standard QFT angle 2π / 2^k.
Simulator
RX — Rotation Around X Axis
Rotates the Bloch sphere vector bytheta radians around the X axis.
RY — Rotation Around Y Axis
Rotates the Bloch sphere vector bytheta radians around the Y axis. Produces real-valued superpositions.
RZ — Rotation Around Z Axis
Rotates the Bloch sphere vector bytheta radians around the Z axis. Applies a relative phase between |0⟩ and |1⟩.
Universal Gate — U(theta, phi, lambda)
The most general single-qubit unitary up to a global phase. Every single-qubit gate is a special case of U.
| Gate | U parameters |
|---|---|
| H | U(π/2, 0, π) |
| X | U(π, 0, π) |
| Z | U(0, 0, π) |
| S | U(0, 0, π/2) |
| T | U(0, 0, π/4) |
Example: Bell state via U parameters
Example: Bell state via U parameters