qit.utils.R_nmr¶
- qit.utils.R_nmr(theta, phi)¶
SU(2) rotation \(\theta_\phi\) (NMR notation).
One-qubit rotation by angle theta about the unit vector \([\cos(\phi), \sin(\phi), 0]\), or \(\theta_\phi\) 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]