add_discrete_pulse

DrivingField.add_discrete_pulse(samples, frequency, dt, start=None)

Add a pulse to the driving field with piecewise-constant envelope. The pulse is described by its frequency and its envelope is characterized by samples and dt.

Parameters:
  • samples (List[float | complex]) – Array of samples (in \(\text{T}\)).

  • frequency (float) – Frequency of the pulse (in \(\text{MHz}\)).

  • dt (float | List[float]) – Duration(s) of the pulse segments (in \(\mu\text{s}\)).

  • start (float | None) – Trigger (start) time of the pulse (in \(\mu\text{s}\), defaults to end of the last pulse).