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

Resolves failing cirq pre-release #794

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

ncrubin
Copy link
Collaborator

@ncrubin ncrubin commented Aug 6, 2022

Apparently prior releases of openfermion were attempting to
use scipy.linalg.expm to exponentiate sparse matrices. Until recently
the scipy API seem to resolve the issue of using scipy.linalg.expm
instead of scipy.sparse.linalg.expm.

This issue was not surfaced until the 1.0.0dev release so some
combination of numpy/scipy pinning or depinning has revealed this
bug in openfermion. This commit fixes the issue by converting
scipy.linalg.expm to scipy.sparse.linalg.expm where appropriate.

Apparently prior releases of openfermion were attempting to
use scipy.linalg.expm to exponentiate sparse matrices.  Until recently
the scipy API seem to resolve the issue of using scipy.linalg.expm
instead of scipy.sparse.linalg.expm.

This issue was not surfaced until the 1.0.0dev release so some
combination of numpy/scipy pinning or depinning has revealed this
bug in openfermion.  This commit fixes the issue by converting
scipy.linalg.expm to scipy.sparse.linalg.expm where appropriate.
@ncrubin ncrubin merged commit 66b2c6e into quantumlib:master Aug 6, 2022
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

Successfully merging this pull request may close these issues.

1 participant