Install with git
Installing the QuTIpy package directly from the official git repository (from source).
If you’d like to be able to update your QuTIpy code occasionally with the latest bug fixes and improvements, follow these instructions:
- 1.Make sure that you have Git installed and that you can run its commands from a shell. (Enter
git helpat a shell prompt to test this.)
- 2.Check out QuTIpy’s main development branch like so:$ git clone https://github.com/sumeetkhatri/QuTIpy.gitThis will create a directory
QuTIpyin your current directory.
- 3.Make sure that the Python interpreter can load QuTIpy’s code. The most convenient way to do this is to use a virtual environment and pip. The contributing tutorial walks through how to create a virtual environment.
- 4.After setting up and activating the virtual environment, run the following command:$ python -m pip install -e QuTIpy/This will make QuTIpy’s code importable. In other words, you’re all set!
$ python -m pip install https://github.com/sumeetkhatri/QuTIpy.git
When you want to update your copy of the QuTIpy source code, run the command
git pullfrom within the
QuTIpydirectory. When you do this, Git will download any changes.