From 692c2cf097d74ac2e797ab41b514694c622eef66 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Mon, 21 Oct 2024 15:48:25 +0000 Subject: [PATCH] fix disable multiRZ --- pennylane_lightning/lightning_kokkos/_state_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane_lightning/lightning_kokkos/_state_vector.py b/pennylane_lightning/lightning_kokkos/_state_vector.py index 3888fc972..3f6ee8a79 100644 --- a/pennylane_lightning/lightning_kokkos/_state_vector.py +++ b/pennylane_lightning/lightning_kokkos/_state_vector.py @@ -285,7 +285,7 @@ def _apply_lightning( param = operation.parameters method(wires, invert_param, param) elif isinstance(operation, qml.ops.Controlled) and not isinstance( - operation.base, (qml.QubitUnitary, qml.BlockEncode) + operation.base, (qml.QubitUnitary, qml.BlockEncode, qml.MultiRZ) ): # apply n-controlled gate self._apply_lightning_controlled(operation) else: # apply gate as a matrix