OpenFermion
OpenFermion copied to clipboard
Function linearize_term may return None by default
Function linearize_term in file src/openfermion/measurements/equality_cosntraint_projection.py has several returns in an if-elif conditional, but it doesn't have a default return, which means it can return None if none of the conditions match. This is probably wrong, but I don't know what the default return value should be instead.