View source on GitHub |
Make a matrix representation of a singular quadrature operator in the Fock space.
openfermion.linalg.single_quad_op_sparse(
n_modes, mode, quadrature, hbar, trunc
)
Since the bosonic operators lie 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. |