IBM Quantum Provider (qiskit.providers.ibmq
)¶
Modules representing the IBM Quantum Provider.
Logging¶
The IBM Quantum Provider uses the qiskit.providers.ibmq
logger.
Two environment variables can be used to control the logging:
QISKIT_IBMQ_PROVIDER_LOG_LEVEL
: Specifies the log level to use, for the ibmq-provider modules. If an invalid level is set, the log level defaults toWARNING
. The valid log levels areDEBUG
,INFO
,WARNING
,ERROR
, andCRITICAL
(case-insensitive). If the environment variable is not set, then the parent logger’s level is used, which also defaults toWARNING
.
QISKIT_IBMQ_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.providers.ibmq').setLevel(logging.WARNING)
Functions¶
|
Return the least busy backend from a list. |
Classes¶
|
Provider for a single IBM Quantum Experience account. |
|
Job limit for a backend. |
|
Backend class interfacing with an IBM Quantum Experience device. |
|
Backend namespace for an IBM Quantum Experience account provider. |
Factory and account manager for IBM Quantum Experience. |
Exceptions¶
|
Base class for errors raised by the provider modules. |
|
Base class for errors raised by account management. |
|
Errors raised when credentials are not found. |
|
Errors raised when the credentials format is invalid. |
|
Errors raised when an IBM Quantum Experience token is invalid. |
|
Errors raised when an IBM Quantum Experience URL is invalid. |
|
Errors raised when multiple credentials are found. |
|
Base class for errors raised by the backend modules. |
|
Errors that occur unexpectedly when querying the server. |
|
Errors raised when an unexpected value is received from the server. |
|
Value errors raised by the backend modules. |
|
Errors related to provider handling. |