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

Euler Angle Decomposition of Single-Qubit Unitaries

Hello! Welcome to your fourth lesson in our course on Quantum Computing Foundations.

In our last two lessons, we built up our understanding of the fundamental quantum gates. We started with single-qubit gates, visualizing them as rotations on the Bloch sphere, and then moved to two-qubit gates like CNOT, which are essential for creating entanglement and performing conditional logic.

Today, we return to single-qubit operations to prove a crucial result about their structure and universality. The question we'll answer is: can any possible single-qubit operation be constructed from a simple, standard set of gates?

The learning outcome for this lesson is to derive the decomposition of an arbitrary single-qubit unitary into a sequence of rotation gates using the Euler angle representation.

To achieve this, we will:

  1. Review the geometric picture of single-qubit gates as rotations.
  2. Examine the general mathematical form of a 2x2 unitary matrix, separating the global phase from the SU(2) component.
  3. Derive the Z-Y-Z Euler angle decomposition, which shows that any SU(2) operation can be expressed as three successive rotations.
  4. Briefly discuss other Euler decompositions and how they relate to the Z-Y-Z form.

This is a cornerstone result in quantum computation, as it proves that we don't need an infinite library of distinct physical gates to implement any desired single-qubit transformation. A small set of continuously parameterised rotation gates is sufficient.

1. Gates as Rotations: A Recap

As we saw in Lesson 2, single-qubit gates correspond to rotations of the state vector on the Bloch sphere. The Pauli gates are rotations by radians around their respective axes, and the Hadamard gate is a rotation by around an axis halfway between the x and z axes.

More generally, we can define rotation gates that rotate a qubit state by an arbitrary angle around the specified axis. These are our fundamental building blocks.

For a quick visual refresher on this concept, please watch the following clip.

Logic Gates Rotate Qubits

This video from Josh's Channel provides a clear, intuitive visualization of how quantum gates act as rotations on the Bloch sphere.

Please watch from 05:40 to 07:00. This will recap the idea of X, Y, and Z gates as rotations and introduce the generalized Rx, Ry, and Rz gates.

2. The General Form of a Single-Qubit Unitary

A single-qubit gate is mathematically described by a unitary matrix, . A key property of any unitary matrix is that its determinant has a magnitude of 1, i.e., . This means the determinant must be a pure phase factor, for some real .

This allows us to factor any unitary matrix into two parts:

where:

  • is a global phase. This phase has no observable physical consequence, as it multiplies all basis states equally.
  • is a special unitary matrix, which means its determinant is exactly 1, . The set of all such matrices forms the special unitary group SU(2).

This separation is useful because the SU(2) matrix captures all the relative phase changes and rotations that are physically meaningful. The resource below, from Gavin E. Crooks, provides the details for how to perform this separation.

Quantum Gates

This document, 'Quantum Gates' by Gavin E. Crooks, gives a concise and mathematically rigorous treatment of gate decompositions. We'll start with the first step: extracting the global phase.

Please read the introductory part of Section 4, 'Decomposition of 1-qubit gates' (page 23). Focus on how the global phase α is calculated using the determinant of the matrix U.

The key insight is that since , we can find the global phase angle by taking the argument of the determinant.

3. The Z-Y-Z Euler Angle Decomposition

Now we come to the main result. Any special unitary operation can be decomposed into a sequence of three rotations. A standard choice, analogous to Euler angles in classical mechanics, is the Z-Y-Z decomposition.

The theorem states that for any single-qubit unitary , we can find four angles such that:

Note the ordering of the rotation angles, which corresponds to the reverse order of application in operator notation.

The derivation involves writing out the matrix for the product of rotations and equating its elements to the elements of the target SU(2) matrix . This creates a system of equations that can be solved for the angles .

The following reading walks through this derivation in detail.

Quantum Gates

Let's return to the 'Quantum Gates' document by Crooks for the core derivation.

Please read Section 4.1, 'Z-Y-Z decomposition' (pages 24-25). Follow the steps for calculating the angles θ₁, θ₀, and θ₂ from the elements of the special unitary matrix V. The use of the arctan2 function is a standard technique for robustly extracting phase angles.

Summary of the Derivation Strategy

Let's recap the logic.

  1. Start with an arbitrary unitary .
  2. Calculate and define the special unitary matrix . Let its elements be .
  3. The matrix for the rotation product is . By multiplying out the rotation matrices and , we get the form shown in Eq. (37) of the resource.
  4. By comparing the matrix elements of with the elements of the rotation product, we can solve for the angles.
    • The angle is found from the magnitudes of the matrix elements, e.g., .
    • The angles and are found from the phases of the matrix elements, which give expressions for the sum and difference .

This procedure provides a constructive algorithm for finding the rotation angles for any given unitary.

4. A Concrete Example: Decomposing the Hadamard Gate

Let's apply this procedure to the Hadamard gate, .

  1. Global Phase:
    . From , we have , so .

  2. Special Unitary Part:
    .
    The matrix elements are , , , and .

  3. Find Rotation Angles (using formulas from Crooks):

    • .
    • .
      Since , the argument of is .
      So, .
    • .
      Since , the argument of is .
      So, .
  4. Solve for Angles:
    We have a system of two linear equations:


    Adding them gives . Substituting back gives .

  5. Final Decomposition:

    Since , this simplifies to . This is a standard decomposition of the Hadamard gate.

5. General Euler Decompositions

The Z-Y-Z decomposition is not unique. Any sequence of three rotations about two non-parallel axes is sufficient. For example, X-Y-X or Z-X-Z are also valid Euler decompositions. These different forms can be useful depending on the native gate set of a particular quantum hardware.

The relationship between these different decompositions is a simple basis change, which can be implemented by a similarity transform. For instance, since , we can convert a Z-Y-Z decomposition into a X-Y-X decomposition.

Quantum Gates

The final section of the Crooks document explains this relationship between different Euler decompositions.

Please read Section 4.3, 'General Euler angle decompositions' (page 25). The key takeaway is the 'trick' of using a similarity transform to relate any Euler decomposition back to the Z-Y-Z form.

Conclusion

This lesson established a powerful and fundamental result in quantum computing.

Key Takeaways:

  • Any single-qubit unitary operation can be decomposed into a global phase and a sequence of three rotation gates, for example: .
  • This is a universality theorem for single-qubit gates. It means that if we can physically implement rotations around two different axes, we can construct any possible single-qubit gate.
  • The decomposition is found via a constructive procedure: first, extract the global phase using the matrix determinant, then solve for the three Euler angles by equating the elements of the target SU(2) matrix with the rotation product matrix.

Preview of the Next Lesson:

We have now thoroughly covered the mathematical description of single- and two-qubit gates. We know what they are and how to build complex ones from simpler ones. The next logical step is to understand how we extract information from a quantum system after these operations have been applied.

In the next lesson, we will learn to calculate measurement outcomes and probabilities for quantum states in computational and arbitrary bases. This will bridge the gap between the abstract quantum state vector and the concrete, probabilistic outcomes observed in a real experiment.

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

Sign up