qat.pbo.decompositions.decompositions.get_euler_angles
- qat.pbo.decompositions.decompositions.get_euler_angles(mat_0_0, mat_0_1, mat_1_0, mat_1_1)
Given 4 values corresponding to the 4 entries of a 1-qbit unitary, \(U\), finds 3 angles \(lambda\), \(theta\), \(phi\) such that
\[U = R_Z(\phi)\cdot R_Y(\theta) \cdot R_Z(\lambda)\]up to some global phase.
- Parameters
- Returns
a tuple of three values (either float if the input was determined or arithmetic expression)
- Return type
tuple