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
  • mat_0_0 (float/Variable) – top left entry of \(U\)

  • mat_0_1 (float/Variable) – top right entry of \(U\)

  • mat_1_0 (float/Variable) – bottom left entry of \(U\)

  • mat_1_1 (float/Variable) – bottom right entry of \(U\)

Returns

a tuple of three values (either float if the input was determined or arithmetic expression)

Return type

tuple