  We introduce different strategies to enhance photon generation in a cavity
within the Rabi model in the ultrastrong coupling regime. We show that a
bang-bang strategy allows to enhance the effect of up to one order of magnitude
with respect to simply driving the system in resonance for a fixed time.
Moreover, up to about another order of magnitude can be gained exploiting
quantum optimal control strategies. Finally, we show that such optimized
protocols are robust with respect to systematic errors and noise, paving the
way to future experimental implementations of such strategies.
