About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
RuntimeOptions
class RuntimeOptions(backend_name=None, image=None, log_level=None)
Bases: object
Class for representing runtime execution options.
Parameters
- backend_name (
Optional
[str
]) – target backend to run on. This is required. - image (
Optional
[str
]) – the runtime image used to execute the program, specified in the form ofimage_name:tag
. Not all accounts are authorized to select a different image. - log_level (
Optional
[str
]) – logging level to set in the execution environment. The valid log levels are:DEBUG
,INFO
,WARNING
,ERROR
, andCRITICAL
. The default level isWARNING
.
Methods
validate
RuntimeOptions.validate()
Validate options.
Raises
IBMQInputValueError – If one or more option is invalid.
Return type
None
Attributes
backend_name
Type: str
Default value: None
image
Type: Optional[str]
Default value: None
log_level
Type: Optional[str]
Default value: None
Was this page helpful?
Report a bug or request content on GitHub.