scqubits.core.operators.a_plus_adag#

scqubits.core.operators.a_plus_adag(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:

ndarray

Returns:

prefactor (a + a^dag) as ndarray, size dimension x dimension