def rotating_frame_transformation_operators(operator, t: float, H):
    """
    Transforms the frame of an operator (hamiltonian, or jump operator) according to
        O' = U_{RF}*O*U_{RF}^dag

    Args:
        operator (QObj): operator to be transformed
        t (float): time at which to transform
        H (QObj): hamiltonian to be rotated away

    """

    U_RF = (1j*H*t).expm()

    return U_RF * operator * U_RF.dag()