Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

Bloch Sphere Rotations of Single-Qubit Gates

Hello! Welcome to the second lesson in our exploration of quantum computing foundations.

In our previous lesson, we established the density matrix formalism as a universal tool for describing quantum states, distinguishing between pure states (on which we have complete knowledge) and mixed states (which represent statistical uncertainty). We also introduced the von Neumann entropy to quantify this uncertainty.

Today, we will build a powerful geometric intuition for the state of a single qubit and the operations that act upon it. Our learning outcome is to analyze single-qubit gates as rotations on the Bloch sphere, identifying the rotation axis and angle for each standard gate (Pauli, Hadamard, phase).

We will cover:

  • The Bloch sphere representation for single-qubit states, connecting it to the density matrix formalism.
  • The fundamental principle that single-qubit gates are rotations.
  • A detailed analysis of the rotational action of the Pauli (X, Y, Z), phase (S, T, Rz), and Hadamard (H) gates.

This geometric picture is invaluable for visualizing and reasoning about single-qubit algorithms and the effects of noise, which we will encounter later in the course.

1. The Bloch Sphere: A Geometric Canvas for Qubits

While a qubit state is mathematically a vector in a 2D complex Hilbert space, we can visualize it as a vector in 3D real space using the Bloch sphere.

A general pure state of a single qubit can be written as:

where and are real parameters. These two angles define a point on the surface of a unit sphere, where is the polar angle (colatitude) and is the azimuthal angle (longitude).

  • The state corresponds to (the North Pole).
  • The state corresponds to (the South Pole).
  • Superpositions with equal amplitudes, like , lie on the equator ().

This representation connects directly to the density matrix we studied. Any single-qubit density matrix can be expressed as:

where is the identity matrix, is the vector of Pauli matrices, and is a real 3D vector called the Bloch vector.

  • For pure states, the vector has unit length, , so they lie on the surface of the sphere.
  • For mixed states, the vector has a length less than one, , so they lie in the interior of the sphere. The maximally mixed state corresponds to , the center of the sphere.

The length of the Bloch vector is related to the purity we discussed: . You can see that implies (pure) and implies (mixed).

To solidify your understanding of this representation, please read the following section.

Quantum Gates - Gavin E. Crooks

The text 'Quantum Gates' by Gavin E. Crooks provides a concise and mathematically clear introduction to the Bloch sphere representation.

Please read Section 2, 'Bloch sphere representation of a qubit' (pages 5-6). Pay attention to the parameterization of the qubit state and the location of the standard basis states on the sphere.

2. Single-Qubit Gates as Rotations

The evolution of a closed quantum system is described by unitary operators. For a single qubit, these are 2x2 unitary matrices. The crucial insight is that every single-qubit unitary operation corresponds to a rotation of the Bloch sphere.

This correspondence arises from a deep connection in group theory: the group of 2x2 special unitary matrices, , is the double cover of the group of 3D rotations, . Your background in physics might make you familiar with this relationship from the context of spin-1/2 particles. A key consequence is that a rotation of the state vector in the 2D complex Hilbert space by an angle results in a rotation of the Bloch vector in 3D real space by an angle .

The general operator for a rotation by angle about an axis defined by the unit vector is given by the matrix exponential:

This formula is the key to analyzing any single-qubit gate.

3. Analyzing the Standard Gates

Let's now apply this framework to the most common single-qubit gates. The following text provides a comprehensive reference for this analysis. We will walk through it gate by gate.

Quantum Gates - Gavin E. Crooks

We will use Gavin E. Crooks' 'Quantum Gates' as our primary reference. It systematically breaks down each gate into its rotational components.

I recommend having this text open as we go through the sections. We will be referring to Section 3.1 'Pauli gates', Section 3.2 'Rotation gates', and Section 3.5 'Hadamard gates'.

For a visual walkthrough of these concepts, the following video is an excellent companion.

Single qubit and its logic gates

This video from Professor Nano, 'Single qubit and its logic gates', provides clear animations of the gate actions on the Bloch sphere, which can help build intuition alongside the mathematical formalism.

You can watch the relevant parts of this video as we discuss each gate type. It covers the Bloch sphere (7:34-8:43), Pauli gates (8:43-11:16), and the Hadamard gate (11:49-13:41).

3.1. Pauli Gates: The Half-Turns

The Pauli gates , , and are the fundamental building blocks. They correspond to rotations of radians (180°) about their respective axes.

  • Pauli-X Gate (Bit-Flip): . This is a rotation by around the x-axis.

    • (up to a global phase of ).
    • This is why it flips (north pole) to (south pole) by rotating the sphere around the x-axis.
  • Pauli-Y Gate: . This is a rotation by around the y-axis.

    • (up to a global phase of ).
  • Pauli-Z Gate (Phase-Flip): . This is a rotation by around the z-axis.

    • (up to a global phase of ).
    • This leaves and in place (they are on the axis of rotation) but flips the phase of states on the equator, e.g., .

Please review Section 3.1 of the Crooks text for the matrix forms and diagrams.

3.2. Phase Gates: Rotations around Z

The Z-gate is a special case of a more general class of gates that implement rotations around the z-axis. These gates modify the relative phase of the qubit state without changing the polar angle , and thus do not affect the measurement probabilities in the computational basis.

Quantum Computing Course: 1.5 Introduction to Phase

Before diving into the specific gates, this short video from Quantum Soar, 'Introduction to Phase', gives a great intuitive explanation of what 'phase' means in the context of Z-rotations and why it's distinct from global phase.

Watch from the beginning to 03:26. Focus on the distinction between relative phase (a rotation on the sphere) and global phase (physically irrelevant).

The general z-rotation gate is . Two important special cases form a universal gate set with the Hadamard gate:

  • S Gate (Phase Gate): This is a rotation by around the z-axis.

    • (up to a phase). It is the "square root of Z", since .
  • T Gate: This is a rotation by around the z-axis.

    • (up to a phase). It is the "square root of S", since .

You can find these gates in Sections 3.4 and 3.7 of the Crooks text.

3.3. The Hadamard Gate: Changing Basis

The Hadamard gate is one of the most important gates in quantum computing. It creates superpositions and is key to many quantum algorithms.

  • Hadamard Gate: .
    • Its action maps the z-axis to the x-axis () and the x-axis to the z-axis ().
    • This corresponds to a rotation by around the diagonal axis .

This is a crucial example of a rotation that is not aligned with the cardinal x, y, or z axes. Please review Section 3.5 of the Crooks text for the derivation and diagrams.

4. Visual Summary and Consolidation

The image below provides a helpful visual summary of the rotational actions for several key gates.

This image illustrates the rotational action of several common single-qubit gates. The top row shows the Pauli-X, Y, Z, and T gates. The bottom row shows the square-root-of-X, square-root-of-Y (a pseudo-Hadamard), S (square-root-of-Z), and Hadamard gates. Each sphere shows the path a state vector takes under the gate's operation.

Let's consolidate this with a summary table and a short exercise.

Gate Matrix Rotation Axis Rotation Angle
Pauli-X
Pauli-Y
Pauli-Z
S Gate
T Gate
Hadamard

Exercise:
The relationship between gates and rotations is powerful because it allows us to reason about sequences of gates geometrically. Consider the sequence .

  1. Describe the action of this sequence in words, thinking about it as a transformation of the coordinate system.
  2. What single rotation gate is this sequence equivalent to (up to a global phase)?
Solution
  1. The first gate transforms the coordinate system, effectively swapping the x and z axes. The gate then performs a rotation around the new z-axis, which is the original x-axis. The final gate transforms the coordinate system back.
  2. Therefore, the sequence is equivalent to a rotation by around the x-axis, which is the gate. Mathematically, this is an example of a similarity transform: . Since swaps the X and Z operators (), this transforms a Z-rotation into an X-rotation.

Conclusion

In this lesson, we have developed a geometric understanding of single-qubit states and operations.

Key Takeaways:

  • Pure single-qubit states can be visualized as points on the surface of the Bloch sphere, while mixed states occupy its interior.
  • Every single-qubit gate is equivalent to a rotation of the Bloch sphere.
  • The Pauli gates (X, Y, Z) are rotations by (180°) around their respective axes.
  • Phase gates (Rz, S, T) are rotations around the z-axis by varying angles.
  • The Hadamard gate is a rotation around an axis diagonal to and , which facilitates transformations between the computational () basis and the Hadamard () basis.

This geometric intuition is a cornerstone of quantum information science. It provides a powerful way to reason about the design and analysis of quantum circuits.

Preview of the Next Lesson:

Our next topic is two-qubit gates. We will see how gates like CNOT, CZ, and SWAP operate on pairs of qubits. This will introduce the concept of entanglement and require us to move beyond the simple Bloch sphere picture. To describe multi-qubit systems, we will need a new mathematical tool: the tensor product.

Can't find a good explanation? Sign up and we'll make it for you

Sign up