RotationGate function

This fucntion applies the rotation gate