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 87fd9bc commit b757043
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 @@ -66,7 +66,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 b757043

Please sign in to comment.