Skip to content

Execution on IBM Hardware

The executor supports execution on IBM simulators and hardware. For detailed information please visit: https://quantum-computing.ibm.com/

Usage

Execution on IBM simulators

{
    "backend_preferences": {
        "backend_service_provider": "IBM Quantum",
        "backend_name": "Name of requsted simulator",
    }
}
from classiq.interface.backend.backend_preferences import IBMBackendPreferences

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

Supported simulators

  • Any Aer simulator, including: "aer_simulator", "aer_simulator_statevector", "aer_simulator_density_matrix", "aer_simulator_matrix_product_state"
  • Fake hardware simulators

Execution on IBM hardware

Execution on IBM hardware requires a valid IBM Quantum API access token, and access to the requested hardware with an IBM Quantum's hub, group and project name.

{
    "backend_preferences": {
        "backend_service_provider": "IBM Quantum",
        "backend_name": "Name of requsted quantum hardware",
        "access_token": "A Valid API access token to IBM Quantum",
        "provider": {
            "hub": "Hub name",
            "group": "Group name",
            "project": "Project name",
        }
    }
}
from classiq.interface.backend.backend_preferences import (
    IBMBackendPreferences,
    IBMBackendProvider,
)

ibm_provider = IBMBackendProvider(
    hub="Hub name", group="Group name", Project="Project name"
)
preferences = IBMBackendPreferences(
    backend_name="Name of requsted quantum hardware",
    access_token="A Valid API access token to IBM Quantum",
    provider=ibm_provider,
)