PiecewiseConstant#
- class iqm.pulse.playlist.waveforms.PiecewiseConstant(n_samples, changepoints, values)#
Bases:
WaveformPiecewise constant waveform.
The values are assumed to be in the range \([-1, 1]\), and the changepoints are assumed to be in the Nyquist-zone of the duration, i.e. in the range [-duration/2, duration/2]
- Parameters:
Module:
iqm.pulse.playlist.waveformsAttributes
changepointsvaluesn_samplesRequested number of samples for the waveform.
Methods
Mapping from waveform attributes to the units of their calibration data, unless that unit is second.
- 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.