Installing Qiskit

A short guide on getting Qiskit Installed on your local machine

What is Qiskit

Qiskit is a python library prepared for people who would like to work on quantum systems. It's a great way to integrate quantum solutions into your own work. You can use other python libraries along side it to enhance the work you do with it. Some recommended libraries would be:

  • MatPlotLib - Great for visualizing results and making graphs

  • Numpy - A math library that includes all kinds of useful functions for preforming complex equations and operations

  • Pandas - A data structure library designed to make importing and handling data (especially large sets) easier

All of these, along with a bunch of other useful libraries for doing science, are included in the Anaconda package, which IBM recommends you install along with qiskit.

What You Need

Python

Since this is a python library, you'll need python installed on your computer. If you already have it set-up you're good to go - just be sure that you're using python 3.5 or later. If not, you can find information about installing python in the resources section.

We mentioned at the beginning of this guide, I'll assume you know a little python already. Python is super easy to learn and is very intuitive, especially if you already know another object oriented language like Java. You can find more information about learning python in the resources section.

Anaconda

IBM recommends that you have the Anaconda suite installed - Anaconda includes a whole bunch of useful tools and it's a great option if you plan to use python for more scientific type stuff. Be careful - Anaconda will install it's own version of python along with the rest of the tools. This won't be a problem and long as you carefully follow the installation instructions. You can find some more information about Anaconda in the resources section.

Environment

I'll be using jupyter notebooks for this tutorials. This is so that I can quickly and easily display output and show the result of the code I've written for you. You may also choose to do the same - it's a good way to learn. Jupyter will be installed with Anaconda, and you can find more information about jupyter notebooks in the resources section.

You may also want to use an IDE, like Visual Studio Code, or something similar. That's up to you - technically all this work can be done in a simple text editor, but an IDE makes for a nice experience. If you prefer simple text editors, I highly recommend Notepad++ - it's an excellent option.

Install Qiskit

Once you're all set, you can find and follow the installation guide on the Qiskit website. They have several; great resources to help you out:

Both these resources are very comprehensive and should provide all the information you need to get ready to use qiskit on your local machine.

Last updated