quantumlib / Cirq

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

Update exception in preparation of numpy 2.0.0 #6696

Closed dstrain115 closed 3 months ago

dstrain115 commented 3 months ago

"Warnings and exceptions present in numpy.exceptions (e.g, ComplexWarning, VisibleDeprecationWarning) are no longer exposed in the main namespace."

pavoljuhas commented 3 months ago

@dstrain115 - Should we perhaps merge #6693 instead?

That one was generated using the ruff tool per https://numpy.org/doc/stable/numpy_2_0_migration_guide.html.

codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 97.82%. Comparing base (c25678e) to head (d610945). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6696 +/- ## ======================================= Coverage 97.82% 97.82% ======================================= Files 1074 1074 Lines 92126 92126 ======================================= Hits 90124 90124 Misses 2002 2002 ```

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

dstrain115 commented 3 months ago

@dstrain115 - Should we perhaps merge #6693 instead?

Sounds good to me. I will close this one.

pavoljuhas commented 3 months ago

Sounds good to me. I will close this one.

Thanks. Can you PTAL at #6693?