Quantum ToolkitOperatorsRotZOn this pageRotZ RotZ(real phi, integer site) -> OperatorParam<real> Returns a spin-1/2 RotZ(ϕ)=exp(−iϕZ/2)(\phi) = \exp(-i\phi Z/2)(ϕ)=exp(−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