Installation

Using PyPI

You can download the latest version from pypi using pip :

pip install qmat

Using conda

Currently, no version is distributed on conda-forge. However using pip from conda will install qmat in your conda environment.

If you are using a environment.yml file with conda, then you can add it as a dependency like this :

name: yourEnv
channels:
  - conda-forge
  - defaults
dependencies:
  ...
  - pip
  - pip:
    - qmat

Install from source

In case you want the latest revision (or a specific branch), you can directly clone the sources from github :

git clone https://github.com/Parallel-in-Time/qmat.git

If you want to use the package only, simply use the pip local installer directly :

cd qmat     # go into the local git repo
pip install .

For developers who want to contribute, recommended approach is to install the package in editable mode :

cd qmat     # go into the local git repo (if not already there)
pip install -e .[test]    # on MAC-OS : pip install -e ".[test]" 

This will link your python installation to your local qmat folder, hence all your modifications will be taken into account at each new import of qmat.

🔔 Some IDEs also modify the PYTHONPATH to include the qmat root folder, which you can also do manually if you prefer.