Skip to content

Function linearize_term may return None by default #929

Open
@mhucka

Description

@mhucka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions