Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit Runtime client and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

ResilienceOptions

class ResilienceOptions(noise_amplifier=None, noise_factors=None, extrapolator=None)

GitHub

Resilience options.

Parameters

  • noise_factors (Optional[Sequence[float]]) – An list of real valued noise factors that determine by what amount the circuits’ noise is amplified. Only applicable for resilience_level=2. Default: None, and (1, 3, 5) if resilience level is 2.
  • noise_amplifier (DEPRECATED) – A noise amplification strategy. Currently only
  • resilience_level=2. ("LocalFoldingAmplifier" is supported Only applicable for) – Default: “LocalFoldingAmplifier”.
  • extrapolator (Optional[Literal[‘LinearExtrapolator’, ‘QuadraticExtrapolator’, ‘CubicExtrapolator’, ‘QuarticExtrapolator’]]) – An extrapolation strategy. One of "LinearExtrapolator", "QuadraticExtrapolator", "CubicExtrapolator", "QuarticExtrapolator". Note that "CubicExtrapolator" and "QuarticExtrapolator" require more noise factors than the default. Only applicable for resilience_level=2. Default: None, and LinearExtrapolator if resilience level is 2.

Attributes

extrapolator

Type: Literal['LinearExtrapolator', 'QuadraticExtrapolator', 'CubicExtrapolator', 'QuarticExtrapolator']

Default value: None

noise_amplifier

Type: Literal['LocalFoldingAmplifier']

Default value: None

noise_factors

Type: Sequence[float]

Default value: None


Methods

validate_resilience_options

static validate_resilience_options(resilience_options)

GitHub

Validate that resilience options are legal. :raises ValueError: if any resilience option is not supported :raises ValueError: if noise_amplifier is not in NoiseAmplifierType. :raises ValueError: if extrapolator is not in ExtrapolatorType. :raises ValueError: if extrapolator == “QuarticExtrapolator” and number of noise_factors < 5. :raises ValueError: if extrapolator == “CubicExtrapolator” and number of noise_factors < 4.

Return type

None

Was this page helpful?
Report a bug or request content on GitHub.