Qiskit Experiment Service (qiskit_ibm_experiment)#

Logging#

Qiskit IBM Experiment Service uses the qiskit_ibm_experiment logger.

Two environment variables can be used to control the logging:

  • QISKIT_IBM_EXPERIMENT_LOG_LEVEL: Specifies the log level to use. 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_EXPERIMENT_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_experiment').setLevel(logging.WARNING)

Classes#

Exceptions#

IBMExperimentError(*message)

Base class for errors raised by the experiment service modules.

IBMExperimentEntryExists(*message)

Errors raised when an experiment entry already exists.

IBMExperimentEntryNotFound(*message)

Errors raised when an experiment entry cannot be found.