Quantum ToolkitFactoriesRotXOn this pageRotX RotX(real phi, integer site) -> OperatorParam<real> Returns a spin-1/2 RotX(ϕ)=e−iϕX/2(\phi) = e^{-i\phi X/2}(ϕ)=e−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