openfermion.measurements.operator_to_vector

Function to map operator to vector.

operator FermionOperator

FermionOperator with only 1- and 2-body terms that we wish to vectorize.

vectorized_operator numpy.array

Vector of term coefficients.