Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function linearize_term may return None by default #929

Open
mhucka opened this issue Feb 3, 2025 · 0 comments
Open

Function linearize_term may return None by default #929

mhucka opened this issue Feb 3, 2025 · 0 comments

Comments

@mhucka
Copy link
Contributor

mhucka commented Feb 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant