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:
- Returns:
Array of shape
(len(t) * len(f_d), 4), rows innp.ravelorder of the(len(t), len(f_d))response, sobasis @ [c_cos, c_sin, offset_1, offset_2]is the flattened response.- Return type: