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

check for diagonal matrices in find-diag-in-e-basis #857

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

Spin1Half
Copy link
Contributor

It seems that LAPACK becomes unstable on ARM when attempting to find the eigenvectors and eigenvalues of a diagonal matrix. This instability is triggered in find-diagonalizer-in-e-basis. The operation becomes trivial when run on a diagonal matrix, so we check for this and return the identity to avoid making a potentially unstable LAPACK call.

Fixes #842.

It seems that LAPACK becomes unstable on ARM when attempting to
find the eigenvectors and eigenvalues of a diagonal matrix. This
instability is triggered in find-diagonalizer-in-e-basis. The
operation becomes trivial when run on a diagonal matrix, so we
check for this and return the identity to avoid making a
potentially unstable LAPACK call.

Fixes quil-lang#842.
@stylewarning stylewarning merged commit 55053d1 into quil-lang:master Sep 30, 2022
@notmgsk
Copy link
Member

notmgsk commented Sep 30, 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.

A violent error via quil_to_native_quil on ARM64
3 participants