Rabi_Simulation