![]() |
Function to map operator to vector.
openfermion.measurements.operator_to_vector(
operator
)
Args | |
---|---|
operator(FermionOperator): FermionOperator with only 1- and 2-body terms that we wish to vectorize. |
Returns | |
---|---|
vectorized_operator(numpy.array): Vector of term coefficients. |