Get the tutorials
The easiest way is to download the tutorials. Unzip the archive in the directory of your choice.
The more advanced user may choose to use git
. If you have git
installed, run
git clone https://github.com/QISKit/qiskit-tutorial.git
If you need to install git
follow the instructions here.
The latest release version of QISKit should be the one installed. The latest release can be installed using
pip install qiskit
but we recommend the following:
-
Install conda
-
Create conda environment for QISKit and install packages (with the accompanying
QISKitenv.yml
file)
cd qiskit-tutorial
conda env create -f QISKitenv.yml
Create the Qconfig.py
from the template provided at Qconfig.py.template
. Follow the three steps below.
- 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" > "Advanced" > "API Token"
- You will insert your API token in a file called Qconfig.py in
the
qiskit-tutorial
directory. The contents of the file should look like:
APItoken = 'my token from the Quantum Experience'
config = {'url': 'https://quantumexperience.ng.bluemix.net/api'}
if 'APItoken' not in locals():
raise Exception('Please set up your access token. See Qconfig.py.')
Activate the environment
For MacOS and Linux, run:
source activate QISKitenv
For Windows, run:
activate QISKitenv
Start Jupyter with the index notebook
jupyter notebook index.ipynb