Skip to content

Execution on IBM Quantum Cloud

The Classiq executor supports execution on IBM simulators and hardware.

Usage

Execution on IBM Simulators

from classiq import IBMBackendPreferences

preferences = IBMBackendPreferences(backend_name="Name of requsted quantum simulator")

Opening info tab

The supported simulators are fake hardware simulators.

Execution on IBM Hardware

Execution on IBM hardware requires a valid IBM Quantum Cloud API access token, and access to the requested hardware with an IBM Quantum hub, group, and project name. The access token is the API token that appears at the top of the IBM Quantum Cloud page, when you are logged in. You must create an account with IBM quantum if you do not have one already.

IBM Backend Preferences configuration options:

  • emulate: bool (default False)
    • If True, run on Classiq AerSimulator with a noise model derived from the IBM backend name. You do not pass a noise model; it is inferred from the backend name (e.g. ibm_pittsburgh, ibm_boston). Only valid for real IBM hardware backends (not fake backends). When emulate=True, the executor uses Classiq's AerSimulator and applies the corresponding IBM device noise model.
from classiq import (
    IBMBackendPreferences,
)

preferences = IBMBackendPreferences(
    backend_name="Name of requsted quantum hardware",
    access_token="A Valid API access token to IBM Quantum",
    channel="IBM Cloud Channel",
    instance_crn="IBM Cloud Instance CRN",
    emulate=False,
)

Opening info tab

Supported Backends

Included hardware:

  • "ibm_kingston"
  • "ibm_boston"
  • "ibm_marrakesh"
  • "ibm_torino"
  • "ibm_fez"
  • "ibm_pittsburg"