quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.24k stars 1.01k forks source link

Update NumPy APIs that will be removed in numpy-2.0 #6693

Closed pavoljuhas closed 1 month ago

pavoljuhas commented 1 month ago

Executed ruff check --select NPY201 --fix ./

Incorporate fix from exported cirq sources, cl/658064952.

Ref: https://numpy.org/doc/stable/numpy_2_0_migration_guide.html

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.82%. Comparing base (978b5e3) to head (5eed99f). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6693 +/- ## ======================================= Coverage 97.82% 97.82% ======================================= Files 1074 1074 Lines 92191 92187 -4 ======================================= - Hits 90189 90186 -3 + Misses 2002 2001 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.