Skip to content

Setting up D-Wave Access

D-Wave provides access to quantum annealing systems is currently through the D-Wave Leap platform. This guide will walk you through setting up access to D-Wave's quantum annealing computers on JUNIQ Cloud.

Prerequisites

Before setting up D-Wave access, you need:

  1. JuDoor account: Create an account if you don't have one
  2. Project membership: Join a project with D-Wave access

D-Wave Leap Account Setup

After joining a project with D-Wave access, you'll receive an email with instructions to:

  1. Register on D-Wave Leap: Visit the registration link in your email
  2. Complete registration: Follow the account setup process
  3. Obtain API token: Navigate to your dashboard at https://cloud.dwavesys.com/leap/ and copy your API token

Wait for the registration email and check your Spam folder

Addition of users to D-Wave is currently a manual process, please wait up to 2 business days to receive your invitation to join DWave-Leap. Also check your Spam and Junk folder for the email.

Multi-Project API Token

If you have multiple D-Wave projects (not the JuDoor Projects), ensure you copy the right API token for the specific project you are working on.DWave Project API Token Selection

Keep Your Token Secure

Your D-Wave API token provides access to quantum computing resources. Keep it secure and do not share it with others.

Environment Setup

We will now set up the Python environment for D-Wave Ocean SDK. This step and the following is done on a terminal, either in JUNIQ Cloud or your local environment.

Navigate to the terminal in JUNIQ Cloud. Load the D-Wave module:

# Load the D-Wave module
ml DWave

For local Python environments, create a virtual environment and install the D-Wave Ocean SDK if you dont have one already:

# Create virtual environment
python -m venv <path_to_venv>
source <path_to_venv>/bin/activate

# Install D-Wave Ocean SDK
pip install dwave-ocean-sdk

Configuration Setup

Step 1: Create D-Wave Configuration

Open the terminal used in the previous step and run the configuration setup in the command line:

# Create D-Wave configuration
dwave config create

Step 2: Enter API Token

When prompted, paste your D-Wave Leap API token:

  • Use Ctrl+Shift+V to paste in the terminal
  • The token will be securely stored in your configuration Dwave Paste API

Step 3: Test Your Connection

Verify your setup by testing the connection:

dwave ping --client qpu

Expected output should show successful connection to D-Wave quantum processing units with timing information and available solvers. For eg:

$ dwave ping --client qpu
Using endpoint: https://cloud.dwavesys.com/sapi
Using solver: DW_2000Q_6
Submitted problem ID: 34f773f7-77dc-7fa5-a7d5-7e397d90fc4a

Wall clock time:
 * Solver definition fetch: 1888.499 ms
 * Problem submit and results fetch: 1038.042 ms
 * Total: 2926.541 ms

QPU timing:
 * post_processing_overhead_time = 307.0 us
 * qpu_access_overhead_time = 1185.96 us
 * qpu_access_time = 10995.04 us
 * qpu_anneal_time_per_sample = 20.0 us
 * qpu_delay_time_per_sample = 20.54 us
 * qpu_programming_time = 10756.1 us
 * qpu_readout_time_per_sample = 198.4 us
 * qpu_sampling_time = 238.94 us
 * total_post_processing_time = 307.0 us

Setup Complete

🎉 Congratulations! You have successfully set up your D-Wave environment and can now start working with quantum annealing algorithms.

Documentation Resources

Example Applications

Optimization problems

Machine learning (feature selection, clustering)

Support Contacts

  • General questions: JUNIQ Support
  • D-Wave specific issues: D-Wave Leap support portal
  • Technical problems: Include solver information and error messages