---
title: DynamicalDecouplingOptions (latest version)
description: API reference for qiskit_ibm_runtime.options.DynamicalDecouplingOptions in the latest version of qiskit-ibm-runtime
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/options-dynamical-decoupling-options
---

# DynamicalDecouplingOptions

*class* `DynamicalDecouplingOptions(enable=Unset, sequence_type=Unset, extra_slack_distribution=Unset, scheduling_method=Unset, skip_reset_qubits=Unset)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/options/dynamical_decoupling_options.py#L20-L67)

Bases: `object`

Options for dynamical decoupling (DD).

## Attributes

**Parameters**

- **enable** (*UnsetType | bool*)
- **sequence\_type** (*UnsetType | Literal\['XX', 'XpXm', 'XY4']*)
- **extra\_slack\_distribution** (*UnsetType | Literal\['middle', 'edges']*)
- **scheduling\_method** (*UnsetType | Literal\['alap', 'asap']*)
- **skip\_reset\_qubits** (*UnsetType | bool*)

### enable

Type: `UnsetType | bool`

Default value: `Unset`

Whether to enable DD as specified by the other options in this class.

Default: `False`.

### extra\_slack\_distribution

Type: `UnsetType | Literal['middle', 'edges']`

Default value: `Unset`

Where to put extra timing delays due to rounding issues.

Rounding issues arise because the discrete time step `dt` of the system cannot be divided. This option takes following values.

Default: `"middle"`.

- `"middle"`: Put the extra slack to the interval at the middle of the sequence.

- **`"edges"`: Divide the extra slack as evenly as possible into intervals at**

  beginning and end of the sequence.

### scheduling\_method

Type: `UnsetType | Literal['alap', 'asap']`

Default value: `Unset`

Whether to schedule gates as soon as (“asap”) or as late as (“alap”) possible.

Default: `"alap"`.

### sequence\_type

Type: `UnsetType | Literal['XX', 'XpXm', 'XY4']`

Default value: `Unset`

Which dynamical decoupling sequence to use.

Default: `"XX"`.

- `"XX"`: use the sequence `tau/2 - (+X) - tau - (+X) - tau/2`
- `"XpXm"`: use the sequence `tau/2 - (+X) - tau - (-X) - tau/2`
- `"XY4"`: use the sequence `tau/2 - (+X) - tau - (+Y) - tau (-X) - tau - (-Y) - tau/2`

### skip\_reset\_qubits

Type: `UnsetType | bool`

Default value: `Unset`

Whether to insert DD on idle periods that immediately follow initialized/reset qubits.

Since qubits in the ground state are less susceptible to decoherence, it can be beneficial to let them be while they are known to be in this state.

Default: `False`.

## Methods
