Skip to content

Commit 22c044e

Browse files
committed
Fix fom tests
1 parent c40c0bd commit 22c044e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compilation/test_predictor_rl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_fom_aware_compile_fallback(monkeypatch: MonkeyPatch) -> None:
147147
monkeypatch.setattr(
148148
predictor.env, "calculate_reward", lambda _circ: (_ for _ in ()).throw(RuntimeError("fake error"))
149149
)
150-
compiled_qc, prop_set = predictor.env.fom_aware_compile(dummy_action, None, qc, max_iteration=1)
150+
compiled_qc, prop_set = predictor.env.fom_aware_compile(dummy_action, predictor.env.device, qc, max_iteration=1)
151151

152152
assert isinstance(compiled_qc, QuantumCircuit)
153153
assert isinstance(prop_set, dict)

0 commit comments

Comments
 (0)