Quantum ToolkitOperatorsRotXOn this pageRotX RotX(real phi, integer site) -> OperatorParam<real> Returns a spin-1/2 RotX(ϕ)=exp(−iϕX/2)(\phi) = \exp(-i\phi X/2)(ϕ)=exp(−iϕX/2) rotation operator around the X-axis. Parameters phi: The rotation angle. site: The site index where the operator acts. Example var rx_half = RotX(1.5708, 0) // π/2 rotation on site 0