Skip to content

Bug in smallInverse function #239

Description

@maierta

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions