FastDragQ

FastDragQ#

class iqm.pulse.playlist.fast_drag.FastDragQ(n_samples, full_width, coefficients, suppressed_frequencies, compute_coefs_from_frequencies, number_of_cos_terms, suppressed_interval_widths, weights, center_offset=0)#

Bases: FastDrag

Q-component of the Fourier Ansatz Spectrum Tuning (FAST) drag pulse.

The Q-envelope is defined as

\[Q(t) = \sum_{n=1}^{N} c_n n \sin(2\pi n t/t_p + n\pi)],\]

where \(N\) is the number of cosine terms in the series, \(\{c_n\}\) are the coefficients, and the pulse is defined on the interval \(t \in [-t_p/2, t_p/2]\).

Module: iqm.pulse.playlist.fast_drag

Attributes

number_of_cos_terms

suppressed_interval_widths

weights

full_width

coefficients

suppressed_frequencies

compute_coefs_from_frequencies

n_samples

Requested number of samples for the waveform.

Methods

Parameters:
  • n_samples (int) –

  • full_width (float) –

  • coefficients (ndarray) –

  • suppressed_frequencies (ndarray) –

  • compute_coefs_from_frequencies (bool) –

  • number_of_cos_terms (int) –

  • suppressed_interval_widths (ndarray) –

  • weights (ndarray) –

  • center_offset (float) –

_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