{ }
View source on GitHub |
Map an operator to a sparse matrix.
openfermion.linalg.get_sparse_operator(
operator, n_qubits=None, trunc=None, hbar=1.0
)
Used in the notebooks
Used in the tutorials |
---|
If the input is not a QubitOperator, the Jordan-Wigner Transform is used.