Skip to main content

rotate_spin

Function rotate_spin 

Source
pub fn rotate_spin(state: &SpinState, axis: Vec3, angle: f64) -> SpinState
Expand description

Rotate spin state about an axis by an angle. Uses the SU(2) rotation: exp(-i * angle/2 * n.sigma)