You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Function
linearize_term
in filesrc/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 returnNone
if none of the conditions match. This is probably wrong, but I don't know what the default return value should be instead.The text was updated successfully, but these errors were encountered: