Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
josephleekl committed Nov 14, 2024
1 parent 89fe923 commit 90ba867
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pennylane_lightning/core/_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,13 @@ def get_wires(operation, single_op):
if isinstance(single_op, qml.QubitUnitary):
params.append([0.0])
mats.append(matrix(single_op))
elif inverse and not hasattr(self.sv_type, single_op.base.name):
params.append([])
mats.append(matrix(single_op))
elif not inverse and not hasattr(self.sv_type, name):
params.append([])
mats.append(matrix(single_op))
else:
params.append(single_op.parameters)
mats.append([])
if hasattr(self.sv_type, single_op.base.name if inverse else name):
params.append(single_op.parameters)
mats.append([])
else:
params.append([])
mats.append(matrix(single_op))

controlled_values.append(controlled_values_list)
controlled_wires.append(
Expand Down

0 comments on commit 90ba867

Please sign in to comment.