Description
Description of the issue
Numpy 1.24 was released recently (see release notes) and it breaks master branch.
Using alias for built-in types was deprecated in Numpy 1.20 (See https://numpy.org/doc/stable/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated) and was finally removed in the 1.24 release. As a result, all cirq code that uses aliases for built-in types like np.bool
breaks.
Specifically, we'd need to fix the the proper_repr
function to use bool
instead of np.bool
, which would end up changing the repr
of a bunch a Cirq classes.
Cirq/cirq-core/cirq/_compat.py
Line 143 in db33aad
Other occurrences of np.bool
are in repr
and repr_inward
files, which can be updated directly to use bool
instead of np.bool
. Specifically, the following two files:
Cirq version
1.1.0.dev