Skip to content

Commit

Permalink
Update src/braket/circuits/result_type.py
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 authored Aug 28, 2024
1 parent 135422f commit e575e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/circuits/result_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __init__(
super().__init__(ascii_symbols)
self._observable = observable
self._target = QubitSet(target)
if target is not None:
if self._target:
if isinstance(observable, Sum): # nested target
if len(target) != len(observable.summands):
raise ValueError(
Expand Down

0 comments on commit e575e83

Please sign in to comment.