Skip to content

Commit

Permalink
fix disable multiRZ
Browse files Browse the repository at this point in the history
  • Loading branch information
josephleekl committed Oct 21, 2024
1 parent de04631 commit 5497be5
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 not isinstance(

Check warning on line 287 in pennylane_lightning/lightning_kokkos/_state_vector.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/_state_vector.py#L287

Added line #L287 was not covered by tests
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
Expand Down

0 comments on commit 5497be5

Please sign in to comment.