scqubits.core.operators.sin_theta_harmonic¶
- scqubits.core.operators.sin_theta_harmonic(dimension, prefactor=None)[source]¶
Operator matrix for sin(prefactor(a+a^dag)) of size dimension x dimension in sparse matrix representation.
- Parameters:
dimension (
int) – matrix sizeprefactor (
Union[float,complex,None]) – prefactor multiplying the number operator matrix (if not given, this defaults to 1)
- Return type:
ndarray- Returns:
prefactor (a + a^dag) as ndarray, size dimension x dimension