CosineFallFlex

CosineFallFlex#

class iqm.pulse.playlist.waveforms.CosineFallFlex(n_samples, rise_time, full_width)#

Bases: Waveform

Cosine fall waveform with an extra duration buffer.

The waveform is a piecewise function: |flat plateau|cosine fall|buffer|, where: - buffer is a ‘leftover’ constant signal with amplitude = 0, generally with duration of duration - full_width - cosine fall is a cosine fall pulse with a duration of rise_time - flat plateau is a constant signal with amplitude = 1, generally with duration of full_width - rise_time

Parameters:
  • rise_time (float) – rise time of the waveform

  • full_width (float) – combined duration of the cosine fall time and the flat plateau

  • n_samples (int)

Raises:

ValueError – Error is raised if full_width or rise_time is more than duration

Module: iqm.pulse.playlist.waveforms

Attributes

rise_time

full_width

n_samples

Requested number of samples for the waveform.

Methods

_sample(sample_coords)#

Actually samples the waveform.

Parameters:

sample_coords (ndarray) – coordinates of the samples to be returned

Returns:

array of samples (same shape as sample_coords, dtype == float)

Return type:

ndarray