Installation and setup


1. Dependencies

To use QISKit you’ll need to have installed at least Python 3.5 or later. Jupyter Notebooks is also recommended for interacting with tutorials.

For this reason we recommend installing Anaconda 3 python distribution, which already comes with all these dependencies pre-installed.

2. Installation

The recommended way to install QISKit is by using the PIP tool (Python package manager):

pip install qiskit

This will install the latest stable release along with all the dependencies.

3. Configure your API token and QE credentials

  • Create an IBM Q experience account if you haven’t already done so
  • Get an API token from the IBM Q experience website under “My Account” > “Personal Access Token”
  • The API token needs to be placed in a file called For convenience, we provide a default version of this file that you can use as a reference: After downloading that file, copy it into the folder where you will be invoking the SDK (on Windows, replace cp with copy):
  • Open your, remove the # from the beginning of the API token line, and copy/paste your API token into the space between the quotation marks on that line. Save and close the file.

For example, a valid and fully configured file would look like:

APItoken = '123456789abc...'

config = {
    'url': ''
  • If you have access to the IBM Q features, you also need to setup the values for your hub, group, and project. You can do so by filling the config variable with the values you can find on your IBM Q account page.

For example, a valid and fully configured file for IBM Q users would look like:

APItoken = '123456789abc...'

config = {
    'url': '',
    # The following should only be needed for IBM Q users.
    'hub': 'MY_HUB',
    'group': 'MY_GROUP',
    'project': 'MY_PROJECT'

Install Jupyter-based tutorials

The QISKit project provides you a collection of tutorials in the form of Jupyter notebooks, which are essentially web pages that contain “cells” of embedded Python code. Please refer to the tutorials repository for detailed instructions.


The installation steps described on this document assume familiarity with the Python environment on your setup (for example, standard Python, virtualenv or Anaconda). Please consult the relevant documentation for instructions tailored to your environment.

Depending on the system and setup, appending “sudo -H” before the pip install command could be needed:

pip install -U --no-cache-dir qiskit

For additional troubleshooting tips, see the QISKit troubleshooting page on the project’s GitHub wiki.