Skip to content

Conversation

Aniketsy
Copy link

#880
This PR fixes an issue where get_sparse_operator fails when given a non-simplified QubitOperator

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou !

@mhucka mhucka added area/functionality Involves the features and operations implemented in OpenFermion area/health Involves code and/or project health labels Sep 25, 2025
@mhucka
Copy link
Contributor

mhucka commented Oct 13, 2025

Thanks for this contribution. This is currently failing CI tests because the function simplify() does not seem to exist on the object. Could you please investigate?

Also, I highly recommend running tests locally before submitting a PR, to catch problems like this.

@Aniketsy
Copy link
Author

Sure, Thanks! I will look into it .

@Aniketsy Aniketsy force-pushed the fix-sparse-operator-simplify branch from 52f8f8e to 298399c Compare October 13, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/functionality Involves the features and operations implemented in OpenFermion area/health Involves code and/or project health

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants