exa.core.model_selection_fitter.models.ramsey2f_separable_model.ramsey_2f_basis

exa.core.model_selection_fitter.models.ramsey2f_separable_model.ramsey_2f_basis#

ramsey_2f_basis(t, f_d, f_q, tau, T_exp)#

Basis matrix for the four linear parameters of the two-tone Ramsey response.

With \(\Theta_j = 2\pi(f_q - f_{d,j})(t - t_0 + \tau)\), the shared oscillation expands as

\[A\sin(\Theta_j + \phi) = (A\cos\phi)\sin\Theta_j + (A\sin\phi)\cos\Theta_j,\]

so the first two columns are the sine and the cosine of that angle under the decay envelope, and the last two the offset of each tone.

Parameters:
  • t (ndarray) – The time coordinate values.

  • f_d (ndarray) – Frequencies of the two drive tones.

  • f_q (float) – Frequency of the qubit.

  • tau (float) – Constant time offset, accounting for phase the time coordinate does not carry.

  • T_exp (float) – Exponential decay time, shared by both tones.

Returns:

Array of shape (len(t) * len(f_d), 4), rows in np.ravel order of the (len(t), len(f_d)) response, so basis @ [c_cos, c_sin, offset_1, offset_2] is the flattened response.

Return type:

ndarray