From e575e8340058adb115c5fe48956afbd0ab9c2cc2 Mon Sep 17 00:00:00 2001 From: Cody Wang Date: Wed, 28 Aug 2024 10:26:20 -0700 Subject: [PATCH] Update src/braket/circuits/result_type.py --- src/braket/circuits/result_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/braket/circuits/result_type.py b/src/braket/circuits/result_type.py index ee6e5176e..a7ce2436c 100644 --- a/src/braket/circuits/result_type.py +++ b/src/braket/circuits/result_type.py @@ -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(