HdDrag#

class iqm.pulse.playlist.hd_drag.HdDrag(n_samples, full_width, coefficients, suppressed_frequencies, compute_coefs_from_frequencies, center_offset=0)#

Bases: SuppressedPulse

Base class for higher-derivative DRAG based on Eqs. (B1) and (B2) of [1].

Base class for IQ components of the higher derivative (HD) drag pulse. Depending on the value of compute_coefs_from_frequencies, we compute the coefficients from the suppressed frequencies during the post-initialization or use pre-computed coefficients of the derivative terms (neglecting the suppressed frequencies). See SuppressedPulse.

Module: iqm.pulse.playlist.hd_drag

Attributes

center_offset

full_width

coefficients

suppressed_frequencies

compute_coefs_from_frequencies

n_samples

Requested number of samples for the waveform.

Methods

non_timelike_attributes

Mapping from waveform attributes to the units of their calibration data, unless that unit is second.

Parameters:
  • n_samples (int) –

  • full_width (float) –

  • coefficients (ndarray) –

  • suppressed_frequencies (ndarray) –

  • compute_coefs_from_frequencies (bool) –

  • center_offset (float) –

static non_timelike_attributes()#

Mapping from waveform attributes to the units of their calibration data, unless that unit is second.

Used to construct the parameters for the calibration data required by the waveform. By default all the waveform attributes are “timelike” (the unit for their calibration data is s). However, some waveform attributes can be dimensionless, e.g. the relative amplitudes in a sum of consisting of multiple terms, or frequency-like (calibration data has the unit ‘Hz’). If a Waveform subclass has non-timelike attributes, it needs to redefine this method.

When the Waveform is constructed, all timelike calibration data is converted to units of the sampling window duration, and all frequency-like calibration data into units of inverse sampling window duration.

Return type:

dict[str, str]