Skip to content

Commit

Permalink
Fix np.int -> int in newer numpy versions
Browse files Browse the repository at this point in the history
np.int was obsolete and caused error.
  • Loading branch information
pablolh committed Jan 6, 2023
1 parent a73f829 commit cd3f9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_typecast(self):

qubit = 1

k.identity(np.int(qubit))
k.identity(int(qubit))
k.identity(np.int32(qubit))
k.identity(np.int64(qubit))

Expand Down

0 comments on commit cd3f9cf

Please sign in to comment.