qiskit-documentation/docs/api/qiskit/0.39/qiskit.providers.ibmq.runti...

53 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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
---
# RuntimeOptions
<Class id="qiskit.providers.ibmq.runtime.RuntimeOptions" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-ibmq-provider/tree/stable/0.19/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
### 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>