FlatTop

class qililab.FlatTop(amplitude, duration, smooth_duration, buffer=0)

Bases: Waveform

Smoothed square pulse with error function on the edges rise waveform.

Parameters:
  • duration (int) – Duration of the pulse (ns).

  • amplitude (float) – Maximum amplitude of the pulse.

  • smooth_duration (int) – duration of the smoothing component in ns.

  • buffer (float, optional) – Buffer of the waveform. Defaults to 0.

Methods

envelope([resolution])

Smoothed square pulse with error function on the edges rise envelope.

get_duration()

Get the duration of the waveform.

Attributes

yaml_tag

envelope(resolution=1)

Smoothed square pulse with error function on the edges rise envelope.

Parameters:

resolution (float, optional) – Resolution of the pulse. Defaults to 1.

Returns:

Height of the envelope for each time step.

Return type:

np.ndarray

get_duration()

Get the duration of the waveform.

Returns:

The duration of the waveform in ns.

Return type:

int