- Nov 13, 2019
-
-
Joseph Weston authored
Add the 'subgraphs', 'terms', and 'site_arrays' attributes, and 'hamiltonian_term' method and implement 'hamiltonian_submatrix', 'cell_hamiltonian' and 'inter_cell_hopping' in a vectorized way.
-
Joseph Weston authored
We remove the ABC metaclass as now 'normalize_tag' and 'normalize_tags' are cyclically defined, and subclasses must redefine at least 1.
-
Joseph Weston authored
Later these will become part of the official System interface
-
- Feb 15, 2019
-
-
Joseph Weston authored
Additionally update all associated docstrings to say that 'args' is deprecated in favor of 'params'.
-
Joseph Weston authored
This means we don't need to create a dummy class that implements __get__ just so we can use hamiltonian_submatrix as a method.
-
- Feb 14, 2019
-
-
Joseph Weston authored
Closes #270.
-
Joseph Weston authored
Also require that 'leads' of FiniteSystems have a 'parameters' property.
-
Joseph Weston authored
Specifically: finalized Builder, PrecalculatedLead, ModesLead and SelfEnergyLead This can be used to inspect the parameters on which a system depends, and can be later used to give more informative error messages. Adding 'parameters' to ModesLead and SelfEnergyLead is strictly a backwards-incompatible change, however this is an advanced feature of Kwant and we don't want to let this block adding 'parameters' to the system API.
-
- Jan 07, 2019
-
-
Anton Akhmerov authored
There is nothing that consumes lead_paddings right now, but it will be useful for plotting and gauge fixing. Closes #266.
-
- Nov 26, 2018
-
-
- Dec 08, 2017
-
-
Joseph Weston authored
Previously it was never explicitly stated that the wavefunctions returned by modes() are only defined over the unit cell of the infinite system. This was confusing, as syst.sites contains not only the unit cell sites, but also the connected sites in neighboring cells. Closes #178.
-
- Feb 21, 2017
-
-
Joseph Weston authored
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'
-
- Jan 24, 2017
-
-
Anton Akhmerov authored
-
- Aug 30, 2016
-
-
Anton Akhmerov authored
Summary of changes: * Add a test for trailing whitespace, remove all trailling whitespace * Add a test for broken URLs in docs, fix all broken URLs and permanent redirects * Switch sphinx doc build to strict (warnings to errors) and nitpicky (broken links to warnings). Fix all sphinx warnings. * Deploy docs from any commit to [kwant/kwant](https://gitlab.kwant-project.org/kwant/kwant) to https://test.kwant-project.org/doc/dev * Deploy docs from any commit to master at kwant/kwant to https://kwant-project.org/doc/dev * Deploy docs from any tag release tag (so anything that is vX.Y.Z) at kwant/kwant to https://kwant-project.org/doc/X.Y
-
- Jun 28, 2016
-
-
Joseph Weston authored
-
- Jun 14, 2016
-
-
Anton Akhmerov authored
-
- May 30, 2016
-
-
Joseph Weston authored
-
- May 05, 2016
-
-
Joseph Weston authored
this fixes #35
-
- Nov 26, 2015
-
-
Christoph Groth authored
-
- Nov 10, 2015
-
-
Christoph Groth authored
-
- Nov 05, 2015
-
-
Joseph Weston authored
Unbound methods are not longer a thing in Python 3 [1]. Instead, functions use the descriptor protocol [2] to properly bind the `self` argument if they are being called as a method. Cython functions do not have a `__get__` attribute and so don't satisfy the descriptor protocol. They therefore can't be used as methods. As a workaround we create a wrapper class with the proper __get__ method. The advantage of this over creating a Python wrapper is that the function signature is preserved. [1]: https://docs.python.org/3.0/whatsnew/3.0.html [2]: https://docs.python.org/3/howto/descriptor.html
-
Joseph Weston authored
-
- Oct 20, 2015
-
-
Christoph Groth authored
-
- Mar 02, 2015
-
-
Christoph Groth authored
-
- Nov 14, 2014
-
-
Christoph Groth authored
Duck typing generally works well, but it can lead to very confusing error messages.
-
- Jul 07, 2014
-
-
- May 26, 2014
-
-
Anton Akhmerov authored
-
- Apr 02, 2014
-
-
- Sep 03, 2013
-
-
- Aug 27, 2013
-
-
- Aug 26, 2013
-
-
Christoph Groth authored
-
Christoph Groth authored
-
- Jul 31, 2013
-
-
Christoph Groth authored
-
- Jul 20, 2013
-
-
- Jun 24, 2013
-
-
Christoph Groth authored
-
- May 24, 2013
-
-