Skip to content

Getting started

Nanotrappy can be directly used from GitHub by cloning the repository on your device.

git clone https://github.com/jrmbr/nanotrappy.git

Compatibility has been tested for python 3.7, 3.8 and 3.9 on Windows and Linux. We recommend setting up a new virtual environment for installing nanotrappy, preferably with Anaconda, with Python version specified. Numpy has to be installed before building the package. As follows :

First install a python distribution on you computer. Here we use the Miniconda3 distribution (can be found easily using your favorite search engine).

Then, if you want to be safe, create a new environment and install numpy and the package inside, in this order.

conda create --name yourenvname python=3.8
conda activate yourenvname
conda install numpy

If you don't have Anaconda, and using Windows, this also works.

python -m venv yourenvname
.\yourenvname\Scripts\activate
pip install numpy

Once the package is cloned you simply need to install it on your local device. For this, navigate into the package folder (while still in your virtual environment) and run:

pip install .

This will automatically install compatible versions of all dependencies, which most importantly contain Legume and ARC-Alkali-Rydberg-Calculator.

When you are finished working, you can leave the environment using:

conda deactivate

When you want to use the package, juste activate this environment again and you are good to go !

conda activate yourenvname

First install a python distribution on you computer. Here we use the Miniconda3 distribution (can be found easily using your favorite search engine).

Download the .sh file corresponding to your system configuration and install it.

Then, if you want to be safe, create a new environment and install numpy and the package inside, in this order.

conda create --name yourenvname python=3.8
conda activate yourenvname
conda install numpy

Once the package is cloned you simply need to install it on your local device. For this, navigate into the package folder (while still in your virtual environment) and run:

pip install .

This will automatically install compatible versions of all dependencies, which most importantly contain Legume and ARC-Alkali-Rydberg-Calculator.

When you are finished working, you can leave the environment using:

conda deactivate

When you want to use the package, juste activate this environment again and you are good to go !

conda activate yourenvname