resample(time_step: float, name: Optional[str] = None) → qctrlopencontrols.driven_controls.driven_control.DrivenControl¶
Returns a new driven control obtained by resampling this control.
time_step (float) – The time step to use for resampling, \(\delta t\).
name (str, optional) – The name for the new control. Defaults to
A new driven control, sampled at the specified rate. The durations of the new control are all equal to \(\delta t\). The total duration of the new control might be slightly larger than the original duration, if the time step doesn’t exactly divide the original duration.
- Return type