Cavity losses for the dissipative Jaynes–Cummings Hamiltonian beyond rotating wave approximation