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

Allow using protobuf version 5 and later #6683

Closed maffoo closed 1 month ago

maffoo commented 1 month ago

Fixes #6651

I've updated arg_func_lang_test.py to pass the new or old kwarg to json_format.MessageToDict based on inspecting the function signature, so it works with old and new versions of protobuf. This will unblock upgrades that we need to do internally to work with python 3.12.

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 (c58a05c) to head (db7f9c2). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6683 +/- ## ========================================== - Coverage 97.82% 97.82% -0.01% ========================================== Files 1074 1074 Lines 92118 92126 +8 ========================================== + Hits 90116 90120 +4 - Misses 2002 2006 +4 ```

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