Quantum ToolkitFactoriesRotZOn this pageRotZ RotZ(real phi, integer site) -> OperatorParam<real> Returns a spin-1/2 RotZ(ϕ)=e−iϕZ/2(\phi) = e^{-i\phi Z/2}(ϕ)=e−iϕZ/2 rotation operator around the Z-axis. Parameters phi: The rotation angle. site: The site index where the operator acts. Example var rz_full = RotZ(6.28318, 2) // 2π rotation on site 2