forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning on array creation from ragged sequences (quantumlib#4801)
Avoid conversion of ragged nested sequences to numpy array. Use simple equality check to compare lists of tuples. Use RandomState.choice to get item index instead of the item itself which implies conversion to numpy.array. Fixes check/pytest -Werror:'Creating an ndarray from ragged'
- Loading branch information
1 parent
4934b11
commit 2fc9dc8
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters