ModulatedCosineRiseFall#

class iqm.pulse.playlist.waveforms.ModulatedCosineRiseFall(n_samples, full_width, rise_time, modulation_frequency=0.0, phase=0, center_offset=0.0)#

Bases: Waveform

Modulated Cosine Rise Fall waveform.

This waveform takes the waveform CosineRiseFall and modulates it with a cosine signal which then has parameters frequency and phase, additional to the parameters full_width, rise_time, and center_offset, see description of TruncatedGaussianSmoothedSquare for further details.

Parameters:
  • full_width (float) – Full width of the pulse, >= 2 * rise_time.

  • rise_time (float) – Duration of the sinusoidal rise (and fall) part of the waveform, >= 0.

  • modulation_frequency (float) – Modulation frequency.

  • phase (float) – Phase of the modulation.

  • center_offset (float) – The waveform is centered around this sampling window coordinate. If zero, the pulse is placed in the middle of the sampling window.

  • n_samples (int) –

Module: iqm.pulse.playlist.waveforms

Attributes

center_offset

modulation_frequency

phase

full_width

rise_time

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.

_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

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]