Waveform

class qililab.Waveform

Bases: ABC

Waveforms describes the pulses envelope’s shapes. Waveform is their abstract base class.

Every child of this interface needs to contain an envelope method.

The envelope method will create the corresponding array of each shape.

Derived: Arbitrary, Square, Gaussian and DragCorrection.

Methods

envelope([resolution])

Returns the pulse height for each time step.

get_duration()

Get the duration of the waveform.

abstractmethod envelope(resolution=1)

Returns the pulse height for each time step.

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