View source on GitHub |
Make a matrix representation of a singular bosonic ladder operator in the Fock space.
openfermion.linalg.boson_ladder_sparse(
n_modes, mode, ladder_type, trunc
)
Since the bosonic operator lies in an infinite Fock space, a truncation value needs to be provide so that a sparse matrix of finite size can be returned.
Returns | |
---|---|
The corresponding trunc x trunc Scipy sparse matrix. |