Skip to content

Commit

Permalink
fix: move to use measurementprocess.obs.name (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
math411 committed Feb 28, 2024
1 parent 66f1699 commit 3738cfa
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 @@ -262,7 +262,7 @@ def statistics(
for mp in measurements:
if mp.return_type not in RETURN_TYPES:
raise QuantumFunctionError(
"Unsupported return type specified for observable {}".format(mp.name)
"Unsupported return type specified for observable {}".format(mp.obs.name)
)
results.append(self._get_statistic(braket_result, mp))
return results
Expand Down

0 comments on commit 3738cfa

Please sign in to comment.