Skip to content

Commit

Permalink
fix disable control qubitunitary/blockencode
Browse files Browse the repository at this point in the history
  • Loading branch information
josephleekl committed Oct 21, 2024
1 parent d00db1f commit a1c498f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/lightning_kokkos/_state_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _apply_lightning(
param = operation.parameters
method(wires, invert_param, param)
elif (
isinstance(operation, qml.ops.Controlled) and len(wires) == 1
isinstance(operation, qml.ops.Controlled) and not isinstance(operation.base, (qml.QubitUnitary, qml.BlockEncode))
): # apply n-controlled gate
self._apply_lightning_controlled(operation)
else: # apply gate as a matrix
Expand Down

0 comments on commit a1c498f

Please sign in to comment.