Skip to main content

RotEuler

RotEuler(real phi, real theta, real omega, integer site) -> OperatorParam<real>

Returns a general spin-1/2 rotation operator RotEuler(ϕ,θ,ω)=RZ(ω)RX(θ)RZ(ϕ)=e(iωZ/2)e(iθX/2)e(iϕZ/2)(\phi,\theta,\omega) = RZ(\omega)RX(\theta)RZ(\phi) = e^{(-i \omega Z/2)} e^{(-i \theta X/2)} e^{(-i \phi Z/2)}.

Parameters

  • phi: The first rotation angle.
  • theta: The second rotation angle.
  • omega: The third rotation angle.
  • site: The site index where the operator acts.

Example

var rot0 = RotEuler(1.57, 0.78, 3.14, 0)  // General rotation on site 0