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

Commits on Sep 30, 2022

  1. check for diagonal matrices in find-diag-in-e-basis

    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.
    Spin1Half committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    4366175 View commit details
    Browse the repository at this point in the history