Skip to content

Commit d60d17e

Browse files
committed
Minor Fixes
1 parent 756d777 commit d60d17e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mqt/predictor/rl/predictorenv.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,12 @@ def _ensure_device_averages_cached(self) -> None:
647647

648648
def _get_props(name: str, qargs: tuple[int, ...]) -> InstructionProperties | None:
649649
"""Return calibration properties for (name, qargs) or None if unavailable."""
650-
return target.instruction_properties(name, qargs)
650+
try:
651+
props_map = target[name]
652+
except KeyError:
653+
return None
654+
655+
return props_map.get(qargs, None)
651656

652657
# --- Aggregate error and duration statistics over all 1q/2q gates --------
653658
for name in op_names:

0 commit comments

Comments
 (0)