From 4de0ac3f388c9e76318de217eaeb935a62734835 Mon Sep 17 00:00:00 2001 From: Guillermo Alonso-Linaje <65235481+KetpuntoG@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:42:53 -0400 Subject: [PATCH] Update controlled.py --- pennylane/ops/op_math/controlled.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/ops/op_math/controlled.py b/pennylane/ops/op_math/controlled.py index 441d54e7b36..2b26cc96715 100644 --- a/pennylane/ops/op_math/controlled.py +++ b/pennylane/ops/op_math/controlled.py @@ -207,7 +207,7 @@ def remove_from_queue_args_and_kwargs(item): elif isinstance(item, dict): for key, value in item.items(): remove_from_queue_args_and_kwargs(value) - elif isinstance(item, qml.Operator): + elif isinstance(item, Operator): qml.queuing.QueuingManager.remove(item)