Skip to content

Commit

Permalink
test: Let PennyLane handle SProd and Sum
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 committed May 6, 2024
1 parent eac46c0 commit f4b789b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/pennylane_plugin/braket_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def operations(self) -> frozenset[str]:

@property
def observables(self) -> frozenset[str]:
base_observables = frozenset(super().observables)
base_observables = frozenset(super().observables - {"SProd", "Sum"})
# This needs to be here bc expectation(ax+by)== a*expectation(x)+b*expectation(y)
# is only true when shots=0
if not self.shots:
Expand Down

0 comments on commit f4b789b

Please sign in to comment.