iqm.pulse.playlist.fast_drag.evaluate_fast_drag_q_envelope

iqm.pulse.playlist.fast_drag.evaluate_fast_drag_q_envelope#

iqm.pulse.playlist.fast_drag.evaluate_fast_drag_q_envelope(t_arr, pulse_duration, coefficients)#

Evaluate Q-envelope of FAST DRAG for given coefficients.

The Q-envelope is defined as \(Q(t) = \sum_{n=1}^{N} c_n n (-1)^n \sin(2\pi n t/t_p)]\), 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]\).

Parameters:
  • t_arr (ndarray) – Array of time points, at which the function is to be evaluated

  • pulse_duration (float) – Pulse duration in the same units as t_arr

  • coefficients (ndarray) – Coefficients of a FAST DRAG pulse

Returns:

Q-envelope of a FAST DRAG pulse evaluated at t_arr

Return type:

ndarray