Skip to content

Conversation

dstrain115
Copy link
Collaborator

  • Removes schedule (not used in 5+ years)
  • Removes gate and args (not used since v2.5, 3+ years)
  • Removes checks on gate set and language.
  • Removes tests that use the above.

- Removes schedule (not used in 5+ years)
- Removes gate and args (not used since v2.5, 3+ years)
- Removes checks on gate set and language.
- Removes tests that use the above.
@dstrain115 dstrain115 requested review from wcourtney, vtomole, verult and a team as code owners March 25, 2025 12:42
Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.65%. Comparing base (2ad1b70) to head (7d41858).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7183      +/-   ##
==========================================
- Coverage   98.66%   98.65%   -0.01%     
==========================================
  Files        1106     1106              
  Lines       95914    95870      -44     
==========================================
- Hits        94630    94583      -47     
- Misses       1284     1287       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wcourtney
Copy link
Collaborator

These fields are still used by Quantum Engine. Please see b/406240865 for more details and to track cleanup work.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for Cirq, please hold this for a green light from wcourtney.

PS: protofmt found some nits -

diff --git a/cirq-google/cirq_google/api/v2/program.proto b/cirq-google/cirq_google/api/v2/program.proto
index 7bc27788..d90ec97c 100644
--- a/cirq-google/cirq_google/api/v2/program.proto
+++ b/cirq-google/cirq_google/api/v2/program.proto
@@ -206,3 +206,3 @@ message Operation {
   // Previously deprecated fields.  Do not use.
-  reserved 1,2;
+  reserved 1, 2;
 
@@ -235,3 +235,3 @@ message Operation {
   // will only be populated in v2.5+
-  repeated Qubit qubits = 3 [deprecated=true];
+  repeated Qubit qubits = 3 [deprecated = true];
   repeated int32 qubit_constant_index = 6;

@dstrain115
Copy link
Collaborator Author

@wcourtney Are we good to submit this now?

@pavoljuhas pavoljuhas added the priority/before-1.5 Finish before the Cirq 1.5 release label Apr 4, 2025
@wcourtney
Copy link
Collaborator

Are we good to submit this now?

Yes, the uses of these protos have been removed and pushed to prod.

@pavoljuhas pavoljuhas enabled auto-merge April 4, 2025 22:01
@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 4, 2025
Merged via the queue into quantumlib:main with commit 5a81b3d Apr 4, 2025
39 checks passed
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
…7183)

* Remove previously deprecated fields in cirq_google proto

- Removes schedule (not used in 5+ years)
- Removes gate and args (not used since v2.5, 3+ years)
- Removes checks on gate set and language.
- Removes tests that use the above.

* Take care of deprecated usage in test.

* Another broken test.

* Remove another test

* Remove engine test with bad gateset

* Put back test.

* Add back lint issue.

---------

Co-authored-by: Pavol Juhas <juhas@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/before-1.5 Finish before the Cirq 1.5 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants