Adaptive band structure analyzer for Kwant leads
Project description
kwantSpectrum is an extension to Kwant that adaptively analyzes band structures of infinite quasi-1d systems. The bandstructure is approximated to an arbitrary precision by piecewise cubic polynomials. Functionality to deal with special points, intervals, and the periodic nature of the spectrum is provided.
kwantSpectrum is distributed under the 2-clause BSD license
Website: https://kwant-project.org/extensions/kwantspectrum
Source code: https://gitlab.kwant-project.org/kwant/kwantspectrum
Installation
This section covers the installation of kwantSpectrum on a GNU/Linux system as Debian and Ubuntu via the command line.
Requirements
kwantSpectrum has following non-Python dependency:
Kwant can be installed with the following command:
sudo apt-add-repository -s ppa:kwant-project/ppa sudo apt-get update sudo apt-get install python3-kwant
kwantSpectrum requires at least Python 3.5. The following packages must be installed to build kwantSpectrum:
Most packages can be installed from the command line by the standard Python package manager pip via:
sudo pip3 install numpy scipy
Testing requirements
The kwantSpectrum test suite requires the following Python packages:
The packages can be installed by the standard pip command:
sudo pip3 install pytest pytest-cov pytest-flake8
Documentation requirements
Building the documentation requires the following Python packages:
The packages can be installed by the standard pip command:
sudo pip3 install matplotlib sphinx jupyter-sphinx
Building kwantSpectrum
kwantSpectrum can be installed from PyPI with:
sudo pip3 install kwantspectrum
Alternatively, it can be installed directly from the source code repository:
sudo pip3 install git+https://gitlab.kwant-project.org/kwant/kwantspectrum.git
For development, kwantSpectrum can be cloned from the official repository with:
git clone https://gitlab.kwant-project.org/kwant/kwantspectrum.git
Test suite
Unittests can be run directly in the local source repository from the command line:
pytest
Building the documentation
The documentation can be build directly in the /doc folder of the local source repository from the command line:
make html
The generated html documentation can be browsed by opening the file doc/build/html/index.html with a web browser.
Documentation
Full documentation including a tutorial:
Communication
The kwant-discuss mailing list is the main communication channel for questions and discussions around kwantSpectrum. Searching and using the mailing list is explained in section mailing list.
Mailing list: kwant-discuss@kwant-project.org
In addition, the authors can be reached by email, see below.
Contributing
Contributions and feedback are always welcome. Report bugs and follow development through the project repository. Authors can be reached by email or a merge request may be opened on the project’s website. Please make sure that the test suite runs without errors before opening a new merge request.
License
kwantSpectrum is distributed under BSD license, see the file LICENSE.rst in the project repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kwantspectrum-0.1.0.tar.gz
.
File metadata
- Download URL: kwantspectrum-0.1.0.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52281f913f33451de24a2e7d94f5b2eac2becc87f8408485e141fa70b3315c6c |
|
MD5 | a2a82cecc620dddaf8dba5ba052c9749 |
|
BLAKE2b-256 | 698b3e9499e72076b1928015a1a8ac8915ee2ce46d3084b393d8aaddb2ad2764 |
File details
Details for the file kwantspectrum-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: kwantspectrum-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99cfc3548632143c530a5b4c9076d5c69b1dc6e9876fb431adde88650a055986 |
|
MD5 | 1268cbc960e16958f97b17c78329e9a7 |
|
BLAKE2b-256 | 3c19a53cecb5db092a284021e4e78eae6f29549e9355d122d662d7cbb0dad6a6 |