We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756d777 commit d60d17eCopy full SHA for d60d17e
src/mqt/predictor/rl/predictorenv.py
@@ -647,7 +647,12 @@ def _ensure_device_averages_cached(self) -> None:
647
648
def _get_props(name: str, qargs: tuple[int, ...]) -> InstructionProperties | None:
649
"""Return calibration properties for (name, qargs) or None if unavailable."""
650
- return target.instruction_properties(name, qargs)
+ try:
651
+ props_map = target[name]
652
+ except KeyError:
653
+ return None
654
+
655
+ return props_map.get(qargs, None)
656
657
# --- Aggregate error and duration statistics over all 1q/2q gates --------
658
for name in op_names:
0 commit comments