Skip to main contentIBM Quantum Documentation

IBM Quantum Provider

qiskit_ibm_provider

Modules representing the Qiskit IBM Quantum Provider.


Logging

The qiskit-ibm-provider uses the qiskit_ibm_provider logger.

Two environment variables can be used to control the logging:

  • QISKIT_IBM_PROVIDER_LOG_LEVEL: Specifies the log level to use, for the Qiskit IBM provider modules. If an invalid level is set, the log level defaults to WARNING. The valid log levels are DEBUG, INFO, WARNING, ERROR, and CRITICAL (case-insensitive). If the environment variable is not set, then the parent logger’s level is used, which also defaults to WARNING.
  • QISKIT_IBM_PROVIDER_LOG_FILE: Specifies the name of the log file to use. If specified, messages will be logged to the file only. Otherwise messages will be logged to the standard error (usually the screen).

For more advanced use, you can modify the logger itself. For example, to manually set the level to WARNING:

import logging
logging.getLogger('qiskit_ibm_provider').setLevel(logging.WARNING)

Functions

least_busy(backends)Return the least busy backend from a list.

Classes

IBMProvider([token, url, name, instance, ...])Provides access to the IBM Quantum services available to an account.
IBMBackend(configuration, provider, api_client)Backend class interfacing with an IBM Quantum device.
IBMBackendService(provider, hgp)Backend namespace for an IBM Quantum account.
Session([max_time, session_id])Class for creating a flexible Qiskit Runtime session.

Exceptions

IBMError(*message)Base class for errors raised by the provider modules.
IBMProviderError(*message)Base class for errors raise by IBMProvider.
IBMProviderValueError(*message)Value errors raised by IBMProvider.
IBMBackendError(*message)Base class for errors raised by the backend modules.
IBMBackendApiError(*message)Errors that occur unexpectedly when querying the server.
IBMBackendApiProtocolError(*message)Errors raised when an unexpected value is received from the server.
IBMBackendValueError(*message)Value errors raised by the backend modules.
IBMProviderError(*message)Base class for errors raise by IBMProvider.
Was this page helpful?