---
title: PecOptions (v0.26)
description: API reference for qiskit_ibm_runtime.options.PecOptions in qiskit-ibm-runtime v0.26
source: https://quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/0.26/options-pec-options
---

# PecOptions

*class* `PecOptions(*args, **kwargs)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.26/qiskit_ibm_runtime/options/pec_options.py#L20-L44)

Probabalistic error cancellation mitigation options. This is only used by V2 Estimator.

**Parameters**

- **max\_overhead** – The maximum circuit sampling overhead allowed, or `None` for no maximum. Default: 100.

- **noise\_gain** –

  The amount by which to scale the noise, where:

  - A value of 0 corresponds to removing the full learned noise.
  - A value of 1 corresponds to no removal of the learned noise.
  - A value between 0 and 1 corresponds to partially removing the learned noise.
  - A value greater than one corresponds to amplifying the learned noise.

  If “auto”, the value in the range `[0, 1]` will be chosen automatically for each input PUB based on the learned noise strength, `max_overhead`, and the depth of the PUB. Default: “auto”.

## Attributes

### max\_overhead

Type: `UnsetType | float | None`

Default value: `Unset`

### noise\_gain

Type: `UnsetType | float | Literal['auto']`

Default value: `Unset`

## Methods
