From 30d176a1f9faa9c0568bfaad4d435733a248cac2 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Tue, 9 May 2023 15:43:53 -0400 Subject: [PATCH 1/2] map qubit props correctly --- qiskit_ibm_provider/utils/json_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit_ibm_provider/utils/json_decoder.py b/qiskit_ibm_provider/utils/json_decoder.py index 29993b7c6..970aa065b 100644 --- a/qiskit_ibm_provider/utils/json_decoder.py +++ b/qiskit_ibm_provider/utils/json_decoder.py @@ -365,7 +365,7 @@ def _decode_qubit_property(qubit_specs: List[Dict]) -> IBMQubitProperties: """ in_data = {} for spec in qubit_specs: - name = spec["name"] + name = (spec["name"]).lower() if name == "operational": in_data[name] = bool(spec["value"]) elif name in IBMQubitProperties.__slots__: From dd203c7876500c5edcfb2b11bb9f546eee3fe8c5 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Tue, 9 May 2023 15:49:24 -0400 Subject: [PATCH 2/2] add reno --- releasenotes/notes/map-qubit-props-7d565bbe16afc64b.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 releasenotes/notes/map-qubit-props-7d565bbe16afc64b.yaml diff --git a/releasenotes/notes/map-qubit-props-7d565bbe16afc64b.yaml b/releasenotes/notes/map-qubit-props-7d565bbe16afc64b.yaml new file mode 100644 index 000000000..68c528f73 --- /dev/null +++ b/releasenotes/notes/map-qubit-props-7d565bbe16afc64b.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed a bug where the backend target ``qubit_properties`` were not + being decoded correctly.