From 59a4e02a4050f1ccd2921f7e9068ad8b652e39be Mon Sep 17 00:00:00 2001 From: Ian Hincks Date: Fri, 8 Nov 2024 15:57:23 -0500 Subject: [PATCH] Add a private alias to decode_backend_configuration() (#2028) --- qiskit_ibm_runtime/utils/backend_decoder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qiskit_ibm_runtime/utils/backend_decoder.py b/qiskit_ibm_runtime/utils/backend_decoder.py index 229e2920c..fcb61cd4b 100644 --- a/qiskit_ibm_runtime/utils/backend_decoder.py +++ b/qiskit_ibm_runtime/utils/backend_decoder.py @@ -125,6 +125,10 @@ def decode_backend_configuration(config: Dict) -> None: u_channel_lo["scale"] = _to_complex(u_channel_lo["scale"]) +# TODO: remove this when no longer needed server-side +_decode_backend_configuration = decode_backend_configuration + + def _to_complex(value: Union[List[float], complex]) -> complex: """Convert the input value to type ``complex``.