About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
ResilienceOptions
class ResilienceOptions(noise_amplifier=None, noise_factors=None, extrapolator=None)
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 forresilience_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 forresilience_level=2
. Default:None
, andLinearExtrapolator
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)
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.