Skip to content
Snippets Groups Projects

Hamiltonian construction

Merged Anton Akhmerov requested to merge hamiltonian_construction into main
All threads resolved!

This does several things:

  • Switches the Hamiltonian format of builder_to_tb to dense because we expect no speedup due to needing full spectrum.
  • Prohibits Kwant lattices without norbs set (the code used to assume 1 orbital, but this is not what norbs=None means).
  • Avoids
    O(N2)\mathcal{O}(N^2)
    or
    O(N3)\mathcal{O}(N^3)
    operations for constructing the Hamiltonian, and therefore likely providing a speedup.

I did not modify the tests, and therefore I don't know whether they are specific enough.

Edited by Anton Akhmerov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Antonio Manesco resolved all threads

    resolved all threads

  • Kostas Vilkelis approved this merge request

    approved this merge request

  • Anton Akhmerov mentioned in commit 7028c68a

    mentioned in commit 7028c68a

  • Please register or sign in to reply
    Loading