Getting Started with IQM Resonance

In just a few minutes, you’ll have a functional development environment and the ability to run your first quantum circuit on IQM Resonance.

Here’s what we’ll cover in the video:

  • Getting started with IQM Resonance using a starter notebook.
  • Connecting to IQM Resonance with an API token.
  • Running an example quantum circuit using the starter notebook.
YouTube video player

🍪 Cookie Consent Required

This video is hosted by YouTube and may collect data through cookies. By clicking “Load Video”, you consent to YouTube’s privacy policy.

Learn more about YouTube’s privacy policy

After watching the video, you can explore more tutorials and guides in our tutorials section.

Details on Setting Up Your Environment

1. Create a Python environment with Python 3.11

Please note that IQM Client-side package such as iqm-client currently only support Python 3.11.

We recommend to work with a virtual environment when interacting with IQM Resonance. You can use venv, conda or any other tool of your choice to create a virtual environment either use the command line or an IDE such as Visual Studio Code.

Run the following command to create the virtual environment. You can replace myenv with any name you'd like for the virtual environment directory.

# Install Python 3.11 (if not already installed)
python3.11 -m venv myenv

# Activate the virtual environment
# Mac OS / Linux
source myenv/bin/activate
# Windows
myenv\Scripts\activate
# Windows PowerShell
.myenv\Scripts\Activate.ps1

In Visual Studio Code, you can create and manage your virtual environments using the integrated environment management features.

You can manage these by clicking on when having a Jupyter Notebook opened in Visual Studio Code.

Visual Studio Code virtual environment creation

2. Running your first notebook

In order to run your first notebook, make sure your version of iqm-clientor iqm-pulla matches the requirement mentioned in the quantum computing details under COMPATIBLE CLIENT LIBRARY VERSIONS on IQM Resonance.

IQM Resonance versions

For the example visible above, you can use the following command to install the Qiskit connector:

# Install the required version of iqm-client
pip install iqm-client[qiskit]>=32.1.1,<33.0

If you are using a shell such as zsh (typical on Mac OS), you might need to put the package dependencies in quotes:

pip install "iqm-client[qiskit]>=32.1.1,<33.0"

Booking a timeslot on IQM Resonance

Sometimes you might want to book a dedicated timeslot on IQM Resonance for your experiments. This is especially useful for larger experiments or when you need guaranteed access to the quantum hardware.

To book a timeslot, follow the steps shown in the video below:

YouTube video player

🍪 Cookie Consent Required

This video is hosted by YouTube and may collect data through cookies. By clicking “Load Video”, you consent to YouTube’s privacy policy.

Learn more about YouTube’s privacy policy