OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Function linearize_term may return None by default

Open mhucka opened this issue 11 months ago • 0 comments

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.

mhucka avatar Feb 03 '25 18:02 mhucka