scqubits.Fluxonium.sin_phi_operator#
- Fluxonium.sin_phi_operator(alpha=1.0, beta=0.0, energy_esys=False)[source]#
Returns the \(\sin (\alpha \phi + \beta)\) operator with \(\alpha\) and \(\beta\) being numbers, in the LC harmonic oscillator or eigenenergy basis.
- Parameters:
energy_esys (
Union
[bool
,Tuple
[ndarray
,ndarray
]]) – If False (default), returns the \(\sin (\alpha \phi + \beta)\) operator in the LC harmonic oscillator basis. If True, the energy eigenspectrum is computed, returns the \(\sin (\alpha \phi + \beta)\) operator in the energy eigenbasis. If energy_esys = esys, where esys is a tuple containing two ndarrays (eigenvalues and energy eigenvectors), returns the \(\sin (\alpha \phi + \beta)\) operator in the energy eigenbasis, and does not have to recalculate eigenspectrum.alpha (float) –
beta (float) –
- Return type:
ndarray
- Returns:
Operator \(\sin (\alpha \phi + \beta)\) in chosen basis as ndarray. If the eigenenergy basis is chosen, unless energy_esys is specified, \(\sin (\alpha \phi + \beta)\) has dimensions of truncated_dim x truncated_dim. Otherwise, if eigenenergy basis is chosen, \(\sin (\alpha \phi + \beta)\) has dimensions of m x m, for m given eigenvectors.