Skip to main contentIBM Quantum Documentation

ResilienceOptions

ResilienceOptions(noise_amplifier=None, noise_factors=None, extrapolator=None)GitHub(opens in a new tab)

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

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

= None

noise_amplifier

Literal['LocalFoldingAmplifier']

= None

noise_factors

Sequence[float]

= None


Methods

validate_resilience_options

static validate_resilience_options(resilience_options)

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?