⚛️
QuTIpy : Quantum Theory of Information for Python
  • QuTIpy
  • Getting Started
    • Overview
    • Installation
      • Install with pip
      • Install with git
  • Modules
    • Pauli
    • General Functions
    • States
Powered by GitBook
On this page
  • Manual Installation
  • PIP Installation
  1. Getting Started
  2. Installation

Install with git

Installing the QuTIpy package directly from the official git repository (from source).

PreviousInstall with pipNextModules

Last updated 3 years ago

If you’d like to be able to update your QuTIpy code occasionally with the latest bug fixes and improvements, follow these instructions:

Manual Installation

  1. Make sure that you have installed and that you can run its commands from a shell. (Enter git help at a shell prompt to test this.)

  2. Check out QuTIpy’s main development branch like so:

    $ git clone https://github.com/sumeetkhatri/QuTIpy.git

    This will create a directory QuTIpy in 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 . The 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!

PIP Installation

  1. Install the package directly from using pip, like so:

$ python -m pip install https://github.com/sumeetkhatri/QuTIpy.git

Check if the installation is successfull :

Run the shell command ,

$ echo "import qutipy; print(qutipy.version);" | python

This should output the version of qutipy installed in your system like this ,

$ 0.1.0

When you want to update your copy of the QuTIpy source code, run the command git pull from within the QuTIpy directory. When you do this, Git will download any changes.

Git
pip
contributing tutorial
GitHub