add_rectangle_pulse
- DrivingField.add_rectangle_pulse(amplitude, frequency, phase, duration, start=None, rise_time=0, fall_time=0)
Add a pulse to the driving field with rectangular envelope (constant-amplitude). The pulse is described by a
frequency
and aphase
, and its envelope is characterized by anamplitude
and aduration
. By default, the pulse is turned on and off instantly, but by setting therise_time
andfall_time
parameters, the rise and fall of the pulse can be set to a finite duration.- Parameters:
amplitude (
float
) – Amplitude of the pulse (in \(\text{T}\)).frequency (
float
) – Frequency of the pulse (in \(\text{MHz}\)).phase (
float
) – Phase of the pulse.duration (
float
) – Duration of the pulse (in \(\mu\text{s}\)).start (
float
|None
) – Trigger (start) time of the pulse (in \(\mu\text{s}\), defaults to end of the last pulse).rise_time (
float
) – Rise time of the pulse (in \(\mu\text{s}\)).fall_time (
float
) – Fall time of the pulse (in \(\mu\text{s}\)).
Note
The time-dependence of the rise and fall is described by a sinusoidal function, for instance:
\[f_\text{rise}(t) = \frac{A}{2}\left(1+\cos\left[\pi\left(1-\frac{t}{\tau_\text{rise}}\right) \right]\right),\quad\text{where } 0 \le t \le \tau_\text{rise}.\]