# IbmRunOptions

Source: https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions

```python
class fireopal.run_options.IbmRunOptions(session_id=None, job_tags=None, reduce_approximation=False, execution_mode=None, batch_id=None)
```

Options for configuring circuit execution on IBM Quantum devices through Fire Opal.

Use this dataclass to specify IBM-specific execution options when submitting
quantum circuits via Fire Opal.

### Parameters
* **session_id** (*str* *or* *None* *,* *optional*) – The ID of an existing IBM Runtime session to use for circuit execution.
  When provided, the submitted jobs will run within the specified session,
  enabling grouped execution and resource sharing across multiple calls.
  Defaults to None, in which case Fire Opal will create a new session
  for iterative workloads, such as [`solve_qaoa()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.solve_qaoa.md#fireopal.solve_qaoa) or [`iterate()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.iterate.md#fireopal.iterate).
  Cannot be combined with `batch_id`, or with an `execution_mode` of
  “BATCH” or “JOB”.
* **job_tags** (*list* *of* *str* *or* *None* *,* *optional*) – A list of tags to append to the jobs submitted to IBM Quantum. Tags are
  useful for filtering and identifying jobs in the IBM Quantum dashboard.
  Defaults to None, meaning no additional tags are applied.
* **reduce_approximation** (*bool* *,* *optional*) – A flag indicating whether to run circuit optimization with lower approximation
  tolerance. This may be desirable to turn on if the impact of trivial unitary
  rotations or near-identity gates must be preserved rather than simplified away.
  Defaults to False.
* **execution_mode** ( *{"SESSION"* *,*  *"BATCH"* *,*  *"JOB"}* *or* *None* *,* *optional*) – The IBM execution mode for the submitted jobs: within a session, as a
  batch, or as standalone jobs. Currently supported by
  [`integrate_monte_carlo()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.integrate_monte_carlo.md#fireopal.integrate_monte_carlo). Defaults to None, in which case
  the mode follows the IDs given: “SESSION” with a `session_id`, “BATCH”
  with a `batch_id`, and otherwise each function’s default execution mode.
* **batch_id** (*str* *or* *None* *,* *optional*) – The ID of an existing IBM Runtime batch to submit the jobs into. The batch
  is left open for other jobs. Currently supported by
  [`integrate_monte_carlo()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.integrate_monte_carlo.md#fireopal.integrate_monte_carlo). Defaults to None. Cannot be
  combined with `session_id`, or with an `execution_mode` of “SESSION”
  or “JOB”.

## Examples

Execute circuits within an existing IBM Runtime session with custom tags:

```pycon
>>> options = IbmRunOptions(
...     session_id="<your_session_id>",
...     job_tags=["experiment-1", "calibration"],
... )
```

Submit the jobs as a batch instead of in a session:

```pycon
>>> options = IbmRunOptions(execution_mode="BATCH")
```

Submit the jobs into an existing IBM Runtime batch:

```pycon
>>> options = IbmRunOptions(batch_id="<your_batch_id>")
```

Use default options (no session, no tags):

```pycon
>>> options = IbmRunOptions()
```

## Methods

## Attributes

|||
|----------------------------------------------------------------------------------------------------------------------------------------------|----|
| [batch_id](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions.batch_id.md#fireopal.run_options.IbmRunOptions.batch_id)                                     |    |
| [execution_mode](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions.execution_mode.md#fireopal.run_options.IbmRunOptions.execution_mode)                   |    |
| [job_tags](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions.job_tags.md#fireopal.run_options.IbmRunOptions.job_tags)                                     |    |
| [reduce_approximation](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions.reduce_approximation.md#fireopal.run_options.IbmRunOptions.reduce_approximation) |    |
| [session_id](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.run_options.IbmRunOptions.session_id.md#fireopal.run_options.IbmRunOptions.session_id)                               |    |
