qp.math.decomposition.xzx_rotation_angles¶
- xzx_rotation_angles(U)[source]¶
Compute the rotation angles \(\lambda\), \(\theta\), and \(\phi\) and the phase \(\alpha\) of a 2x2 unitary matrix as a product of X and Z rotations in the form \(e^{i\alpha} RX(\phi) RZ(\theta) RX(\lambda)\).
- Parameters:
U (array) – 2x2 unitary matrix
- Returns:
The rotation angles \(\lambda\), \(\theta\), and \(\phi\) and the global phase \(\alpha\) such that \(U=e^{i\alpha} RX(\phi) RZ(\theta) RX(\lambda)\).
- Return type:
tuple