Skip to content

Commit

Permalink
fix precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
natestemen committed Jan 9, 2024
1 parent b70faf2 commit ebae19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitiq/shadows/shadows_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def valid_bitstrings(
bitstrings = {
bin(i)[2:].zfill(num_qubits)
for i in range(2**num_qubits)
if bin(i).count("1") <= max_hamming_weight or num_qubits
if bin(i).count("1") <= (max_hamming_weight or num_qubits)
}
return bitstrings

Expand Down

0 comments on commit ebae19d

Please sign in to comment.