Skip to content

Commit

Permalink
Using _pauli_rep
Browse files Browse the repository at this point in the history
  • Loading branch information
PietropaoloFrisoni committed May 14, 2024
1 parent 73d0b18 commit e68de6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pennylane/pauli/pauli_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ def operation(self, wire_order=None):
return qml.ops.LinearCombination(
list(self.values()),
[pw.operation(wire_order=wire_order, get_as_tensor=True) for pw in self],
_pauli_rep=self,
)

def hamiltonian(self, wire_order=None):
Expand Down

0 comments on commit e68de6f

Please sign in to comment.