scqubits.core.operators.a_plus_adag_sparse#

scqubits.core.operators.a_plus_adag_sparse(dimension, prefactor=None)[source]#

Operator matrix for prefactor(a+a^dag) of size dimension x dimension in sparse matrix representation.

Parameters:
  • dimension (int) – matrix size

  • prefactor (Union[float, complex, None]) – prefactor multiplying the number operator matrix (if not given, this defaults to 1)

Return type:

csc_matrix

Returns:

prefactor * (a + a^dag) as sparse operator matrix, size dimension x dimension