BaseDrivingField
- class BaseDrivingField(name, target_spins=None)
Shared pulse-management functionality for driving fields.
Note
In most user code, prefer
LinearDrivingFieldorCircularDrivingFieldinstead of instantiatingBaseDrivingFielddirectly.- Parameters:
Methods
add_discrete_pulse(samples, frequency, dt[, ...])Add a piecewise-constant pulse to this driving field.
add_pulse(pulse)Add a pre-built
Pulseto this driving field.add_rectangle_pulse(amplitude, frequency, ...)Add a rectangular pulse to this driving field.
add_wait(duration)Add an idle section to this driving field.
plot_pulses([function, start, end, ax])Plot the added pulse(s).
Remove all pulses from this driving field only.
Attributes
End time of the latest pulse on this field (in \(\mu\text{s}\)).
Name of the driving field.
Ordered list of pulses on this driving field.
Spin names affected by this driving field, or
Nonefor all spins.