diff --git a/qiskit_ibm_runtime/options/resilience_options.py b/qiskit_ibm_runtime/options/resilience_options.py index 017a0b07d..c15638c1a 100644 --- a/qiskit_ibm_runtime/options/resilience_options.py +++ b/qiskit_ibm_runtime/options/resilience_options.py @@ -16,7 +16,6 @@ from dataclasses import dataclass from .utils import _flexible -from ..utils.deprecation import issue_deprecation_msg ResilienceSupportedOptions = Literal[ "noise_amplifier", @@ -24,10 +23,7 @@ "extrapolator", ] NoiseAmplifierType = Literal[ - "TwoQubitAmplifier", - "GlobalFoldingAmplifier", "LocalFoldingAmplifier", - "CxAmplifier", ] ExtrapolatorType = Literal[ "LinearExtrapolator", @@ -48,10 +44,9 @@ class ResilienceOptions: Only applicable for ``resilience_level=2``. Default: ``None``, and (1, 3, 5) if resilience level is 2. - noise_amplifier (DEPRECATED): A noise amplification strategy. One of ``"TwoQubitAmplifier"``, - ``"GlobalFoldingAmplifier"``, ``"LocalFoldingAmplifier"``, ``"CxAmplifier"``. - Only applicable for ``resilience_level=2``. - Default: "TwoQubitAmplifier". + noise_amplifier (DEPRECATED): A noise amplification strategy. Currently only + ``"LocalFoldingAmplifier"`` is supported Only applicable for ``resilience_level=2``. + Default: "LocalFoldingAmplifier". extrapolator: An extrapolation strategy. One of ``"LinearExtrapolator"``, ``"QuadraticExtrapolator"``, ``"CubicExtrapolator"``, ``"QuarticExtrapolator"``. @@ -75,21 +70,10 @@ def validate_resilience_options(resilience_options: dict) -> None: ValueError: if extrapolator == "QuarticExtrapolator" and number of noise_factors < 5. ValueError: if extrapolator == "CubicExtrapolator" and number of noise_factors < 4. """ - if resilience_options.get("noise_amplifier", None) is not None: - issue_deprecation_msg( - msg="The 'noise_amplifier' resilience option is deprecated", - version="0.12.0", - period="1 month", - remedy="After the deprecation period, only local folding amplification " - "will be supported. " - "Refer to https://github.com/qiskit-community/prototype-zne " - "for global folding amplification in ZNE.", - ) - for opt in resilience_options: if not opt in get_args(ResilienceSupportedOptions): raise ValueError(f"Unsupported value '{opt}' for resilience.") - noise_amplifier = resilience_options.get("noise_amplifier") or "TwoQubitAmplifier" + noise_amplifier = resilience_options.get("noise_amplifier") or "LocalFoldingAmplifier" if noise_amplifier not in get_args(NoiseAmplifierType): raise ValueError( f"Unsupported value {noise_amplifier} for noise_amplifier. "