SuppressedPulse#

class iqm.pulse.playlist.fast_drag.SuppressedPulse(n_samples, full_width, coefficients, suppressed_frequencies, compute_coefs_from_frequencies)#

Bases: Waveform

Base class for a control pulse using a series expansion to suppress certain frequencies in its envelope spectrum

The base class describes control pulses, in which the coefficients of the basis functions are chosen to suppress specific frequencies or frequency ranges in the frequency spectrum of the pulse envelope. Examples include FAST DRAG and HD DRAG.

The pulse argument compute_coefs_from_frequencies allows the user to choose whether the basis function coefficients are computed from suppressed_frequencies during the post-initialization of the pulse (thus, overriding any pre-computed values in coefficients), or if the (pre-computed) values in coefficients are directly used and suppressed_frequencies are neglected. The classes deriving from this base class should implement the post-initialization logic specific to the given pulse.

Parameters:
  • full_width (float) – Full width of the pulse corresponding to the pulse duration with non-zero amplitude (in s).

  • coefficients (ndarray) – Pre-computed coefficients of the series expansion.

  • suppressed_frequencies (ndarray) – Frequencies to be suppressed or center frequencies of intervals to be suppressed (in Hz).

  • compute_coefs_from_frequencies (bool) – Boolean value indicating whether we compute the coefficients from the suppressed frequencies or whether we use the pre-computed coefficients. If True, suppressed_frequencies are used to compute and override coefficients in the post-initialization. If False, pre-computed coefficients are used, and suppressed_frequencies are ignored.

  • n_samples (int) –

Module: iqm.pulse.playlist.fast_drag

Attributes

full_width

coefficients

suppressed_frequencies

compute_coefs_from_frequencies

n_samples

Requested number of samples for the waveform.

Methods

static _normalize(samples)#

Scale the pulse samples to the interval (-1, 1) to avoid clipping at the instruments.

Parameters:

samples (ndarray) – Array of pulse samples

Returns:

re-scaled Array of pulse samples

Return type:

ndarray