View source on GitHub |
Given a string of Symbolic operators, set each prefactor equal to the
fqe.openfermion_utils.update_operator_coeff(
operators: "SymbolicOperator",
coeff: numpy.ndarray
) -> None
value in coeff. Note that the order in which SymbolicOperators in OpenFermion are printed out is not necessarily the order in which they are iterated over.
Args | |
---|---|
operators (FermionOperator) - A linear combination of operators.
coeff (numpy.array(ndim=1,dtype=numpy.complex64) |
Returns | |
---|---|
nothing - mutates coeff in place |