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

Bug in smallInverse function #239

Open
maierta opened this issue Apr 15, 2021 · 0 comments
Open

Bug in smallInverse function #239

maierta opened this issue Apr 15, 2021 · 0 comments

Comments

@maierta
Copy link
Contributor

maierta commented Apr 15, 2021

For a 2x2 matrix, the smallInverse function does the inversion analytically and incorrectly switches the off-diagonal elements: std::swap(m_inv(1, 0), m_inv(0, 1)); This won't affect problems for which the Hamiltonian is real, but it does affect problems with complex off-diagonal elements.

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

No branches or pull requests

1 participant