Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kwant kwant
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 142
    • Issues 142
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kwant
  • kwantkwant
  • Issues
  • #395
Closed
Open
Created Oct 23, 2020 by Christoph Groth@cwgOwner

Improve Hamiltonian evaluation for vectorized systems

So far, the new system.VectorizedSystem offers a hamiltonian_submatrix method that offers a subset of the functionality of the eponymous method of system.System.

This is a good first step, but we are not bound by backwards compatibility here (the new hamiltonian_submatrix already breaks it), since there is no legacy code that enables vectorization.

This gives as a unique opportunity to modernize the API for evaluating Hamiltonians.

Here are some problems with the old API:

  • It's incompatible with ND-systems.
  • It's not possible to selectively evaluate terms (for example only terms that depend on a particular parameter could be of interest).
  • By default, a dense matrix is returned (#244).
  • It's impossible to act with the Hamiltonian on a vector without creating a sparse matrix in memory.
  • inter_cell_hopping may return non-square matrices.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking