Isoenergetic Cycle for the Quantum Rabi Model