Skip to content

Commit

Permalink
Update inverse_confusion_matrix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Misty-W committed Feb 9, 2024
1 parent f686a78 commit 502ebfd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mitiq/rem/inverse_confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ def sample_probability_vector(

# split the binary strings into an array of ints
bitstrings = (
np.apply_along_axis(
np.fromstring, 1, binary_strings[:, None], dtype="U1"
np.apply_along_axis( # type: ignore
func1d=np.fromstring,
axis=1,
arr=binary_strings[:, None],
dtype="U1", # type: ignore
)
.astype(np.uint8)
.tolist()
Expand Down

0 comments on commit 502ebfd

Please sign in to comment.