qit.utils.R_nmr

qit.utils.R_nmr(theta, phi)

SU(2) rotation θϕ (NMR notation).

One-qubit rotation by angle theta about the unit vector [cos(ϕ),sin(ϕ),0], or θϕ in the NMR notation.

Parameters
  • theta (float) – rotation angle

  • phi (float) – angle between the rotation axis and the positive x axis

Returns

rotation matrix

Return type

array[complex]