Skip to content

Commit

Permalink
Update pennylane/transforms/dynamic_one_shot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
  • Loading branch information
vincentmr and mudit2812 authored Jun 3, 2024
1 parent 9fb8d10 commit 0bd74cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane/transforms/dynamic_one_shot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check notice on line 252 in pennylane/transforms/dynamic_one_shot.py

View check run for this annotation

codefactor.io / CodeFactor

pennylane/transforms/dynamic_one_shot.py#L252

Unused variable 'active_qjit' (unused-variable)

all_mcms = [op for op in aux_tapes[0].operations if is_mcm(op)]
n_mcms = len(all_mcms)
Expand Down

0 comments on commit 0bd74cb

Please sign in to comment.