scqubits.core.operators

Functions

a_plus_adag(dimension[, prefactor])

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

a_plus_adag_sparse(dimension[, prefactor])

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

annihilation(dimension)

Returns a dense matrix of size dimension x dimension representing the annihilation operator in number basis.

annihilation_sparse(dimension)

Returns a matrix of size dimension x dimension representing the annihilation operator in the format of a scipy sparse.csc_matrix.

cos_theta_harmonic(dimension[, prefactor])

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

creation(dimension)

Returns a dense matrix of size dimension x dimension representing the creation operator in number basis.

creation_sparse(dimension)

Returns a matrix of size dimension x dimension representing the creation operator in the format of a scipy sparse.csc_matrix

hubbard_sparse(j1, j2, dimension)

The Hubbard operator \(|j1\rangle>\langle j2|\) is returned as a matrix of linear size dimension.

iadag_minus_ia(dimension[, prefactor])

Operator matrix for prefactor(ia-ia^dag) of size dimension x dimension as ndarray

iadag_minus_ia_sparse(dimension[, prefactor])

Operator matrix for prefactor(ia-ia^dag) of size dimension x dimension as ndarray

number(dimension[, prefactor])

Number operator matrix of size dimension x dimension in sparse matrix representation.

number_sparse(dimension[, prefactor])

Number operator matrix of size dimension x dimension in sparse matrix representation.

sigma_minus()

sigma_plus()

sigma_x()

sigma_y()

sigma_z()

sin_theta_harmonic(dimension[, prefactor])

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