Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeach-aws committed Apr 16, 2024
1 parent 9154e4e commit df47d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_counts(self) -> dict[str, int]:
0 if pre_i == 0 else 1 if post_i == 0 else 2 for pre_i, post_i in zip(pre, post)
]
state = "".join(states[s_idx] for s_idx in state_idx)
state_counts |= (state,)
state_counts.update([state])

return dict(state_counts)

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/braket/registers/test_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ def test_new_with_int():
qubit = 0
qubit_new = Qubit.new(qubit)
assert qubit_new == qubit
assert qubit_new != qubit
assert qubit_new is not qubit

0 comments on commit df47d03

Please sign in to comment.