scqubits.core.operators.sin_theta_harmonic¶
- scqubits.core.operators.sin_theta_harmonic(dimension, prefactor=None)[source]¶
Operator matrix for sin(prefactor(\(a+a^\dagger\))) 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^\dagger\)) as ndarray, size dimension x dimension