QiskitWindowslogo

📍 What is QIWI ?

QIWI, the Qiskit Installer for WIndows, will set up Qiskit and a local copy of Visual Studio Code (VS Code) on your computer, with a ready-to-use Python virtual environment for Jupyter notebooks. After the installation, a Jupyter notebook walks the user through the initial setup on the IBM Quantum Platform.


⚠️ Important Notices Before Using QIWI

💥 Installation

🏃 Running the Installer

🚶 Step-by-step Guide Through the Installation Process:

Step 1️⃣: License Agreements and Qiskit Version Selection

A configuration window will present you with the license agreements of all software packages that will be installed on your computer.

Depending on pre-installed software, the installation will include at the maximum

  1. the Qiskit SDK,
  2. a version of Python that matches the Qiskit SDK,
  3. Pyenv-win (link), for the local management of multiple Python installations,
  4. the VS Code editor (link), and
  5. the Microsoft Visual C++ Redistributable (MVCR, (link)), a set of DLLs that Qiskit modules such as Symengine depend upon.

You are asked to review and accept each license agreement. You need to select the version of Qiskit that you want to install.

GIF aceppting licenses

Step 2️⃣: Software Download and Installation

Step 3️⃣: IBM Quantum Platform Access Setup.

Once the installation is complete, VS Code will automatically open with a Jupyter notebook that walks you throught the setup of your API token for the IBM Quantum Platform. This Jupyter notebok includes:

You can also download the setup notebook manually. Click on the ``download raw file’’ button next to the pen (top-right)

✏️ Use of the Installed Qiskit SDK

With Jupyter Notebooks

For every new Jupyter notebook that uses Qiskit, you will have to select the fitting Python interpreter to use:

  1. In the top-right corner of the Jupyter notebook window, click on “Select Kernel”

  2. Click on “Python Environments…”

  3. In the drop-down list, select the Python environment name that starts with qiskit_, followed by the Qiskit version you chose during installation.

    • Example: If during installation you chose version 1.4.2, your Python environment name will be qiskit_1_4_2.

    • Note: It is essential to select the correct Python environment. VS Code may offer several alternative Python environments to you, but only the one starting with qiskit_ contains your Qiskit installation.

GIF aceppting licenses

With Python Source Code

Python source code in the form of *.py files that use Qiskit require you to select the fitting Python interpreter.

In VS Code,

  1. open the command palette (Ctrl + Shift + P)
  2. select “Python : select interpreter”,
  3. select our Qiskit environment “Python 3.* (Qiskit 1.*)”

You can now run Qiskit on Windows.

🔌 Technical information

Location of Installed Software

The installer itself does not stay resident on your computer system. Rather, it keeps files isolated in your user account’s ${env:LOCALAPPDATA} folder to minimize possible interference with existing system-wide and/or user-level software installations you your computer.

The installer will create a Python virtual environment (venv) in ${env:USERPROFILE}/.virtualenvs.

Troubleshooting

The installer has to step through many hoops to accomplish its task and may encounter network conditions or an environment on your local computer that constitute unforseen and unsurmountable problems. In the following, we provide general trouble-shooting guidelines as well as remedies for a few specific issues.

General Guidelines

Specific Issues

Microsoft Visual C++ Redistributable refuses to download (Error 28)
This error may occur when you are connected to a network with a proxy or a network with specific network settings.
Solution: Download and install the Microsoft Visual C++ Redistributable manually from here and rerun the QIWI installer.

Visual studio code refuses to download (Error 28)
This error may occur when you are connected to a network with a proxy or a network with specific network settings.
Solution: Download and install VS Code manually from here and re-run the QIWI installer.

FAQ

Why does QIWI only provide specific Qiskit versions, such as version 1.3.2, 1.4.2 and 2.0.0?

QIWI only supports Qiskit configurations and Python versions which have been tested by the QIWI developers. The configurations are curated to make sure that no missed dependencies or incompatibilites arise with an installed SDK.

📜 Licenses

Please find the license of the Qiskit Windows Installer here.

In addition, you will be asked to accept (a subset of) the following licences during installation: