Fiveable

Quantum Computing Unit 5 Review

QR code for Quantum Computing practice questions

5.1 Single-qubit gates (Pauli, Hadamard, phase gates)

5.1 Single-qubit gates (Pauli, Hadamard, phase gates)

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Quantum Computing
Unit & Topic Study Guides

Single-qubit gates are fundamental operations in quantum computing. They manipulate individual qubits by rotating their states on the Bloch sphere, enabling state flipping, phase shifts, and superposition creation.

Pauli gates (X, Y, Z) perform specific rotations, while the Hadamard gate creates superposition. Phase gates (S, T) introduce phase shifts. These operations form the building blocks for more complex quantum algorithms.

Single-Qubit Gates

Operation of Pauli gates

  • Pauli gates perform rotations on the Bloch sphere representing single-qubit states
    • Pauli-X gate (X gate or NOT gate) flips the qubit state from 0|0\rangle to 1|1\rangle and vice versa by rotating the state by π\pi radians about the x-axis
      • Matrix representation: X=[0110]X = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}
    • Pauli-Y gate (Y gate) flips the qubit state and applies a phase shift of ii to 1|1\rangle by rotating the state by π\pi radians about the y-axis
      • Matrix representation: Y=[0ii0]Y = \begin{bmatrix} 0 & -i \\ i & 0 \end{bmatrix}
    • Pauli-Z gate (Z gate) applies a phase shift of -1 to 1|1\rangle, leaving 0|0\rangle unchanged, by rotating the state by π\pi radians about the z-axis
      • Matrix representation: Z=[1001]Z = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}
Operation of Pauli gates, The structure of qubit and quantum gates in quantum computers : Oriental Journal of Chemistry

Function of Hadamard gate

  • The Hadamard gate (H gate) creates superposition by transforming a qubit from a basis state (0|0\rangle or 1|1\rangle) to an equal superposition of both states
    • Applies the following transformations:
      • H0=12(0+1)H|0\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)
      • H1=12(01)H|1\rangle = \frac{1}{\sqrt{2}}(|0\rangle - |1\rangle)
    • Applying the Hadamard gate twice in succession returns the qubit to its original state (self-inverse property)
    • Matrix representation: H=12[1111]H = \frac{1}{\sqrt{2}}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}
Operation of Pauli gates, Single-qubit transform of a state vector - Algowiki

Application of phase gates

  • Phase gates introduce phase shifts to the 1|1\rangle state without changing the 0|0\rangle state
    • S gate (Phase gate or Z\sqrt{Z} gate) applies a phase shift of ii to 1|1\rangle by rotating the state by π2\frac{\pi}{2} radians about the z-axis
      • Matrix representation: S=[100i]S = \begin{bmatrix} 1 & 0 \\ 0 & i \end{bmatrix}
    • T gate (S\sqrt{S} gate or Z4\sqrt[4]{Z} gate) applies a phase shift of eiπ4e^{i\frac{\pi}{4}} to 1|1\rangle by rotating the state by π4\frac{\pi}{4} radians about the z-axis
      • Matrix representation: T=[100eiπ4]T = \begin{bmatrix} 1 & 0 \\ 0 & e^{i\frac{\pi}{4}} \end{bmatrix}

Geometric representation on Bloch sphere

  • The Bloch sphere geometrically represents a qubit's state, with pure states on the surface and mixed states inside the sphere
  • Single-qubit gates can be visualized as rotations on the Bloch sphere:
    1. Pauli-X gate: π\pi rotation about the x-axis (flips state)
    2. Pauli-Y gate: π\pi rotation about the y-axis (flips state and applies phase shift)
    3. Pauli-Z gate: π\pi rotation about the z-axis (applies phase shift)
    4. Hadamard gate: π\pi rotation about the axis equally dividing the x and z axes (creates superposition)
    5. S gate: π2\frac{\pi}{2} rotation about the z-axis (applies phase shift)
    6. T gate: π4\frac{\pi}{4} rotation about the z-axis (applies phase shift)
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →