qp.math.decomposition.zyz_rotation_angles

zyz_rotation_angles(U)[source]

Compute the rotation angles \(\phi\), \(\theta\), and \(\omega\) and the phase \(\alpha\) of a 2x2 unitary matrix as a product of Z and Y rotations in the form \(e^{i\alpha} RZ(\omega) RY(\theta) RZ(\phi)\)

Parameters:

U (array) – 2x2 unitary matrix

Returns:

The rotation angles \(\phi\), \(\theta\), and \(\omega\) and the global phase \(\alpha\) such that \(U=e^{i\alpha} RZ(\omega) RY(\theta) RZ(\phi)\).

Return type:

tuple