61 lines
2.4 KiB
Plaintext
61 lines
2.4 KiB
Plaintext
---
|
||
title: RuntimeOptions
|
||
description: API reference for qiskit.providers.ibmq.runtime.RuntimeOptions
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.providers.ibmq.runtime.RuntimeOptions
|
||
---
|
||
|
||
<Admonition title="Warning" type="caution">
|
||
The package `qiskit-ibmq-provider` is being deprecated and its repo is going to be archived soon. Please transition to the new packages. More information in [https://ibm.biz/provider\_migration\_guide](https://ibm.biz/provider_migration_guide)
|
||
</Admonition>
|
||
|
||
# RuntimeOptions
|
||
|
||
<Class id="qiskit.providers.ibmq.runtime.RuntimeOptions" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-ibmq-provider/tree/stable/0.20/qiskit/providers/ibmq/runtime/runtime_options.py" signature="RuntimeOptions(backend_name=None, image=None, log_level=None)" modifiers="class">
|
||
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 of `image_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`, and `CRITICAL`. The default level is `WARNING`.
|
||
|
||
## Methods
|
||
|
||
<Admonition title="Warning" type="caution">
|
||
The package `qiskit-ibmq-provider` is being deprecated and its repo is going to be archived soon. Please transition to the new packages. More information in [https://ibm.biz/provider\_migration\_guide](https://ibm.biz/provider_migration_guide)
|
||
</Admonition>
|
||
|
||
### validate
|
||
|
||
<Function id="qiskit.providers.ibmq.runtime.RuntimeOptions.validate" signature="RuntimeOptions.validate()">
|
||
Validate options.
|
||
|
||
**Raises**
|
||
|
||
**IBMQInputValueError** – If one or more option is invalid.
|
||
|
||
**Return type**
|
||
|
||
`None`
|
||
</Function>
|
||
|
||
## Attributes
|
||
|
||
### backend\_name
|
||
|
||
<Attribute id="qiskit.providers.ibmq.runtime.RuntimeOptions.backend_name" attributeTypeHint="str" attributeValue="None" />
|
||
|
||
### image
|
||
|
||
<Attribute id="qiskit.providers.ibmq.runtime.RuntimeOptions.image" attributeTypeHint="Optional[str]" attributeValue="None" />
|
||
|
||
### log\_level
|
||
|
||
<Attribute id="qiskit.providers.ibmq.runtime.RuntimeOptions.log_level" attributeTypeHint="Optional[str]" attributeValue="None" />
|
||
</Class>
|
||
|