Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Euler decomposition of single-qubit gates

The expression of a single-qubit unitary as a global phase and three rotations about specified axes.

Also called ZYZ decomposition

Edition released Coverage: Overview · Technical
On this page

Definition, purpose and input assumptions

Euler decomposition gives a small set of angles describing any single-qubit unitary. A common convention writes U=exp(i alpha)R_Z(phi)R_Y(theta)R_Z(lambda), with the rightmost factor acting first. This is useful for gate synthesis and for translating a target matrix into a supported rotation family. The angles are not unique at coordinate singularities or after adding full turns.

Mathematical mechanism

Multiplication gives the special-unitary part [[exp(-i(phi+lambda)/2)cos(theta/2),-exp(-i(phi-lambda)/2)sin(theta/2)],[exp(i(phi-lambda)/2)sin(theta/2),exp(i(phi+lambda)/2)cos(theta/2)]]. Its determinant is one. The separate phase exp(i alpha) supplies the determinant of a general U(2) operation.

The formula has three physically relevant rotation parameters for a general unitary, unlike a pure qubit state, which has only two parameters after normalization and global phase. State preparation therefore does not require specifying every part of a full unitary extension.

Fully solved reference example

For theta=pi/2 and phi=lambda=0, the decomposition is R_Y(pi/2)=[[1,-1],[1,1]]/sqrt(2). It maps |0> to |+> and |1> to -|->. This is not H, whose second column is |->; the differing sign is attached to one input column and is therefore not a common global phase.

Indeed H=R_Y(pi/2)Z, as direct matrix multiplication shows. Because Z=iR_Z(pi), one valid Euler representation is H=i R_Y(pi/2)R_Z(pi). Multiplying the displayed matrices gives [[1,1],[1,-1]]/sqrt(2). This example exposes why matching one prepared state is insufficient to prove equality of gates.

Limitations and classical comparison

Near theta=0 or pi, angle extraction can be numerically ill-conditioned even though the underlying unitary is smooth. A compiler should validate the reconstructed matrix under a stated phase convention. Three rotations do not necessarily mean three physical pulses, since some devices implement frame changes virtually.

Scientific relationships

Euler decomposition is used in quantum circuit compilation and controlled-unitary synthesis. It generalizes individual single-qubit rotations while preserving the global-phase distinctions required by coherent control.

Extracting Euler angles from a concrete matrix

Consider U=e^{iπ/7}V, where V has entries V00=e^{-iπ/24}/2, V01=-(√3/2)e^{-i7π/24}, V10=(√3/2)e^{i7π/24}, and V11=e^{iπ/24}/2. The columns have unit norm and zero inner product, so V is unitary; its determinant is one. Therefore det U=e^{i2π/7}, and the determinant phase identifies α=π/7 on the selected branch. Dividing U by e^{iα} produces the special-unitary matrix to which a three-angle decomposition applies.

For V=R_Z(φ)R_Y(θ)R_Z(λ) with 0<θ<π, write a=V00 and c=V10. Then |a|=cos(θ/2), |c|=sin(θ/2), arg a=-(φ+λ)/2, and arg c=(φ-λ)/2, subject to consistent phase branches. Consequently θ=2 atan2(|c|,|a|), φ=arg c-arg a, and λ=-arg c-arg a. In the present example these expressions give θ=2π/3, φ=π/3, and λ=-π/4. Substitution reproduces every complex entry, including the minus sign in V01. The inverse problem therefore has an explicit reconstruction, rather than an angle triple checked only on one input state.

The determinant step has a branch choice: both α and α+π remove the determinant phase, with special-unitary factors V and -V respectively. Either can describe the original U if all subsequent signs and angle ranges are adjusted consistently. Treating α as disposable during this step is unsuitable when the result will later become a controlled operation. The matrix and its scalar metadata together specify that operation.

Singular coordinates do not imply a singular gate

At θ=0, the product reduces to R_Z(φ+λ). The two outer angles cannot be recovered separately because infinitely many pairs have the same sum. A stable convention can set λ=0 and retain the sum in φ. At θ=π, only the difference φ-λ determines the off-diagonal entries, apart from the tracked scalar phase. These are coordinate degeneracies, not physical discontinuities of the unitary group.

For a concrete approach to the first boundary, take V(η,β)=R_Z(β)R_Y(η)R_Z(-β). Its diagonal entries are cos(η/2), while its lower off-diagonal entry is e^{iβ}sin(η/2). As η approaches zero, every value of β produces a matrix approaching I. A perturbation of the tiny off-diagonal entry can cause a large inferred change in β although the matrix perturbation remains tiny. Reporting anglewise error near this point can therefore exaggerate operational error. A matrix norm, or an appropriate channel distance, measures the implemented transformation without this coordinate artifact.

The same example supplies an axis interpretation. Conjugating Y by R_Z(β) gives cos β Y-sin β X, so V(η,β) is a rotation through η about the unit vector (-sin β,cos β,0). When η vanishes, the axis ceases to be identifiable because the rotation itself vanishes. This explains the numerical instability geometrically and suggests retaining a matrix or quaternion representation during interpolation.

Changing rotation alphabets and preparing one column

An implementation that supplies X and Z rotations can replace R_Y(θ) by R_Z(π/2)R_X(θ)R_Z(-π/2). The identity follows by conjugating X into Y with R_Z(π/2). The Euler product becomes R_Z(φ+π/2)R_X(θ)R_Z(λ-π/2). For the concrete matrix above, the outer angles are 5π/6 and -3π/4, with the same middle angle 2π/3 and scalar e^{iπ/7}. This conversion changes the available rotation axes without approximating the target.

Preparing the first column requires less information than implementing the entire matrix. Acting on |0>, the rightmost Z rotation contributes only a scalar, and the relative amplitude phase is controlled by φ. Indeed V|0> has amplitudes e^{-iπ/24}/2 and √3 e^{i7π/24}/2, with probabilities 1/4 and 3/4. Replacing V by V diag(1,e^{iδ}) preserves this output exactly for every δ, but changes the action on |1>. A state-preparation compiler may exploit this freedom; a general unitary compiler must preserve the second column as well. This is an explicit distinction between state equivalence on a promised input and equality as an operator.

Reconstruction policy and geometric figure

A conceptual extraction routine first verifies the matrix is sufficiently close to unitary, records the determinant phase, and obtains the middle angle from magnitudes with atan2. It selects a documented boundary convention when an entry is too small to support a reliable argument. Finally it reconstructs the matrix and reports a matrix residual. If the input is noisy, projecting to a nearest unitary is a separate approximation whose residual should not be hidden in the Euler-angle calculation.

A second reconstruction through axis and angle

For any special-unitary V, write V=wI-i(v_xX+v_yY+v_zZ), where w and the three components of v are real and w²+||v||²=1. They can be extracted by w=Tr(V)/2 and v_j=i Tr(σ_jV)/2. A rotation angle γ=2 atan2(||v||,w) and axis v/||v|| then reconstruct V, provided the nonzero axis and the selected angle branch are specified. This gives an independent check on an Euler extraction without comparing angle triples, which are not unique.

For V=R_Z(π/2), the values are w=1/√2, v_z=1/√2, and v_x=v_y=0. The recovered axis is z and γ=π/2. For V=-I, the vector vanishes while w=-1; the same prescription returns a full spinor rotation of 2π with no identifiable axis. The Bloch-sphere action is identity in this case, but the special-unitary matrix retains its minus sign. This boundary separates a physical spatial rotation description from the matrix phase required by coherent control. In floating-point calculations the extracted coefficients can be renormalized only after recording how far the original matrix departed from unitarity; otherwise normalization could conceal a different input error.

Sources

  • A. Barenco et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevA.52.3457
    Verification scope

    Selected source text checked ·

    Source anchors gate-decomposition conventions. New worked instances are independent mathematical constructions, not reported experiments.