Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Nov 27, 2023
1 parent efbf288 commit 1e6c1a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions qlasskit/algorithms/deutschjozsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ def output_qubits(self) -> List[int]:
# @override
def decode_output(
self, istr: Union[str, int, List[bool]]
) -> Union[bool, Tuple, Qtype]:
) -> Union[bool, Tuple, Qtype, str]:
iq = interpret_as_qtype(istr, self.f.args[0].ttype, len(self.f.args[0]))
if iq == 0:
return "Constant"
else:
return "Balanced"
return "Constant" if iq == 0 else "Balanced"

0 comments on commit 1e6c1a7

Please sign in to comment.