resonatorprofile#
- torchspin.resonatorprofile(nu, nu0, Qu, beta=None, mode='transferfunction')[source]#
Compute resonator profile.
- Parameters:
nu (ndarray | None) – Frequency array in GHz. If
None, an appropriate range is chosen automatically and returned as the first output.nu0 (float) – Resonator frequency in GHz.
Qu (float) – Unloaded Q-factor.
beta (float | None) – Coupling coefficient.
beta < 1: undercoupled,beta = 1: critically coupled,beta > 1: overcoupled. Required for reflection modes.mode (str) –
'transferfunction','voltagereflection', or'powerreflection'.
- Returns:
out (np.ndarray) – Profile values. If nu was
None, returns(nu, out).- Return type: