From 0bd74cbd6a646f05b375b5a8dc3924135dbefc3b Mon Sep 17 00:00:00 2001 From: Vincent Michaud-Rioux Date: Mon, 3 Jun 2024 16:30:33 -0400 Subject: [PATCH] Update pennylane/transforms/dynamic_one_shot.py Co-authored-by: Mudit Pandey --- pennylane/transforms/dynamic_one_shot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/transforms/dynamic_one_shot.py b/pennylane/transforms/dynamic_one_shot.py index 58b1d784ec4..f927c9a0d2b 100644 --- a/pennylane/transforms/dynamic_one_shot.py +++ b/pennylane/transforms/dynamic_one_shot.py @@ -249,7 +249,7 @@ def measurement_with_no_shots(measurement): interface = qml.math.get_deep_interface(circuit.data) interface = "numpy" if interface == "builtins" else interface - active_jit = qml.compiler.active_compiler() + active_qjit = qml.compiler.active() all_mcms = [op for op in aux_tapes[0].operations if is_mcm(op)] n_mcms = len(all_mcms)