Quantum ToolkitOperatorsPhaseShiftOn this pagePhaseShift PhaseShift(real phi, integer site) -> OperatorParam<real> Returns a spin-1/2 PhaseShift(ϕ)=exp(iϕ)(\phi) = \exp(i\phi)(ϕ)=exp(iϕ) on the ∣1⟩|1\rangle∣1⟩ state. Parameters phi: The rotation angle. site: The site index where the operator acts. Example var ps_half = PhaseShift(1.5708, 0)