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.