Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump openfermion from 1.6.0 to 1.6.1 #2182

Merged
merged 3 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ nbsphinx==0.9.1
matplotlib==3.8.1
pandas==2.1.3
pyscf==2.5.0; sys_platform != 'win32'
openfermion==1.6.0; sys_platform != 'win32'
openfermion==1.6.1; sys_platform != 'win32'
openfermionpyscf==0.5; sys_platform != 'win32'
bqskit[ext]==1.0.4
seaborn==0.13.0
Expand Down
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, # type: ignore
axis=1,
arr=binary_strings[:, None],
dtype="U1", # type: ignore
)
.astype(np.uint8)
.tolist()
Expand Down
Loading