Merge branch 'feature/vectorization' into 'master'
vectorize systems so that value functions may be called once on a whole vector of sites (for onsite value functions) or a pair of vectors of sites (for hopping value functions). In this way we avoid the Python overhead of calling the value functions many times. For systems with vectorization enabled this can result in a ~100x speedup when evaluating the Hamiltonian. See merge request kwant/kwant!323 Closes kwant/kwant#302
No related branches found
No related tags found
Checking pipeline status
Showing
- doc/source/pre/whatsnew/0.2.rst 1 addition, 1 deletiondoc/source/pre/whatsnew/0.2.rst
- doc/source/pre/whatsnew/1.0.rst 1 addition, 1 deletiondoc/source/pre/whatsnew/1.0.rst
- doc/source/pre/whatsnew/1.5.rst 34 additions, 0 deletionsdoc/source/pre/whatsnew/1.5.rst
- doc/source/reference/kwant.builder.rst 10 additions, 2 deletionsdoc/source/reference/kwant.builder.rst
- doc/source/reference/kwant.system.rst 22 additions, 0 deletionsdoc/source/reference/kwant.system.rst
- doc/source/tutorial/first_steps.rst 2 additions, 2 deletionsdoc/source/tutorial/first_steps.rst
- doc/source/tutorial/operators.rst 3 additions, 3 deletionsdoc/source/tutorial/operators.rst
- doc/source/tutorial/plotting.rst 2 additions, 2 deletionsdoc/source/tutorial/plotting.rst
- doc/source/tutorial/spin_potential_shape.rst 4 additions, 4 deletionsdoc/source/tutorial/spin_potential_shape.rst
- kwant/_system.pyx 385 additions, 1 deletionkwant/_system.pyx
- kwant/builder.py 944 additions, 349 deletionskwant/builder.py
- kwant/continuum/discretizer.py 3 additions, 3 deletionskwant/continuum/discretizer.py
- kwant/continuum/landau_levels.py 1 addition, 1 deletionkwant/continuum/landau_levels.py
- kwant/kpm.py 3 additions, 3 deletionskwant/kpm.py
- kwant/lattice.py 54 additions, 17 deletionskwant/lattice.py
- kwant/operator.pyx 24 additions, 20 deletionskwant/operator.pyx
- kwant/physics/gauge.py 6 additions, 6 deletionskwant/physics/gauge.py
- kwant/plotter.py 11 additions, 11 deletionskwant/plotter.py
- kwant/system.py 401 additions, 30 deletionskwant/system.py
- kwant/tests/test_builder.py 277 additions, 70 deletionskwant/tests/test_builder.py
Loading
Please register or sign in to comment