qml.math.decomposition.xyx_rotation_angles¶
- xyx_rotation_angles(U, return_global_phase=False)[source]¶
Compute the rotation angles \(\lambda\), \(\theta\), and \(\phi\) and the phase \(\alpha\) of a 2x2 unitary matrix as a product of X and Y rotations in the form \(e^{i\alpha} RX(\phi) RY(\theta) RX(\lambda)\).
- Parameters:
U (array) – 2x2 unitary matrix
return_global_phase (bool) – if True, returns the global phase as well.
- Returns:
- The rotation angles \(\lambda\), \(\theta\), and \(\phi\) and the
global phase \(\alpha\) if
return_global_phase=True
.
- Return type:
tuple
code/api/pennylane.math.decomposition.xyx_rotation_angles
Download Python script
Download Notebook
View on GitHub