diff --git a/pennylane_lightning/lightning_qubit.py b/pennylane_lightning/lightning_qubit.py index c7b3fa3610..04f69d2b45 100644 --- a/pennylane_lightning/lightning_qubit.py +++ b/pennylane_lightning/lightning_qubit.py @@ -201,7 +201,7 @@ def accepts_obj(obj): return True if obj.name == "GroverOperator" and len(obj.wires) < 13: return True - return not isinstance(obj, qml.tape.QuantumTape) and getattr( + return (not isinstance(obj, qml.tape.QuantumTape)) and getattr( self, "supports_operation", lambda name: False )(obj.name)