-
- Downloads
There was a problem fetching the pipeline summary.
allow systems to accept named parameters
Hamiltonian value functions may now have signatures that depend on different parameters. On finalization, Builders now inspect all of their value functions and store the names of the parameters on which the value function depends. Then, when evaluating the Hamiltonian, a particular value function is only passed the parameters on which it depends. 'System.hamiltonian' has been updated to accept an extra keyword-only parameter, 'params', which is a dictionary mapping parameter names to values. This is mutually exclusive with the existing '*args'. All top-level API that takes an 'args' parameter now also takes a keyword-only parameter, 'params'
parent
ad3ccb0e
No related branches found
No related tags found
Pipeline #
Showing
- kwant/_common.py 24 additions, 0 deletionskwant/_common.py
- kwant/_system.pyx 21 additions, 16 deletionskwant/_system.pyx
- kwant/builder.py 119 additions, 48 deletionskwant/builder.py
- kwant/operator.pyx 85 additions, 49 deletionskwant/operator.pyx
- kwant/physics/dispersion.py 7 additions, 3 deletionskwant/physics/dispersion.py
- kwant/plotter.py 6 additions, 2 deletionskwant/plotter.py
- kwant/solvers/common.py 46 additions, 16 deletionskwant/solvers/common.py
- kwant/solvers/tests/_test_sparse.py 40 additions, 1 deletionkwant/solvers/tests/_test_sparse.py
- kwant/solvers/tests/test_mumps.py 4 additions, 0 deletionskwant/solvers/tests/test_mumps.py
- kwant/solvers/tests/test_sparse.py 3 additions, 0 deletionskwant/solvers/tests/test_sparse.py
- kwant/system.py 29 additions, 22 deletionskwant/system.py
- kwant/tests/test_builder.py 76 additions, 0 deletionskwant/tests/test_builder.py
- kwant/tests/test_operator.py 80 additions, 0 deletionskwant/tests/test_operator.py
- kwant/tests/test_system.py 0 additions, 21 deletionskwant/tests/test_system.py
Please register or sign in to comment