code: def Rx(rads: Union[float, sympy.Basic]) -> XPowGate:
      
      pi = sympy.pi if protocols.is_parameterized(rads) else np.pi
      return XPowGate(exponent=rads / pi, global_shift=-0.5)
docs: Returns a gate with the matrix e^{-i X rads / 2}.