Apparatus and associated methods relate to modulating the frequency of a switch signal to achieve a fast transient response while holding the average frequency constant over a predetermined number of N cycles. In an illustrative example, a quantum charge modulator may include a compensation processor configured to compensate an error signal and generate a compensation signal by performing operations to maintain an average switching frequency over the N cycles in response to the transient. The compensation signal may be a function of a real phase deviation ΔTSW between a stable pulse modulated signal having a cycle period TSW before the transient and a measured pulse modulated signal having a cycle period TSW_M after the transient. A forgetting factor may be used to calculate the phase deviations. The quantum charge modulator may provide a compensation free, stable, and high performance response over power stage component changes.