Skip to content

Commit

Permalink
Use decomposition instead of Operator.expand
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai committed Aug 12, 2024
1 parent 27813be commit 72c2584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def get_wires(operation, single_op):
uses_stateprep = True
continue
if isinstance(operation, Rot):
op_list = operation.expand().operations
op_list = operation.decomposition()
else:
op_list = [operation]

Expand Down

0 comments on commit 72c2584

Please sign in to comment.