Skip to content

Function linearize_term may return None by default #929

Closed
@mhucka

Description

@mhucka

Function linearize_term in file src/openfermion/measurements/equality_cosntraint_projection.py has several returns in an if-elseif 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/healthInvolves code and/or project health

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions