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
, 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]