Skip to content

Flip back to default use_repetition_ids=True in CircuitOperation #7237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Apr 8, 2025

  • Revert "CircuitOperation: change use_repetition_ids default to False (CircuitOperation: change use_repetition_ids default to False #6910)"
    Put back the default use_repetition_ids=True so we do not make
    API change without a warning notification in minor release.

  • Add FutureWarning for upcoming change of use_repetition_ids default.

  • Adjust unit tests to work with default use_repetition_ids=True

Partially resolves #7232

@pavoljuhas pavoljuhas requested review from vtomole and a team as code owners April 8, 2025 04:26
@pavoljuhas pavoljuhas requested review from dstrain115 and maffoo April 8, 2025 04:26
@pavoljuhas
Copy link
Collaborator Author

pavoljuhas commented Apr 8, 2025

@maffoo - here is a temporary roll back of #6910 to get back the
use_repetition_ids=True default for stable release 1.5.0.

cc @Strilanc @dstrain115

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

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.64%. Comparing base (0684419) to head (b769ba5).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7237      +/-   ##
==========================================
- Coverage   98.65%   98.64%   -0.02%     
==========================================
  Files        1106     1106              
  Lines       95992    95990       -2     
==========================================
- Hits        94704    94690      -14     
- Misses       1288     1300      +12     

☔ 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.

@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 8, 2025
Merged via the queue into quantumlib:main with commit 58d9619 Apr 8, 2025
39 checks passed
@pavoljuhas pavoljuhas deleted the flip-back-and-warn-about-use_repetition_ids-change branch April 8, 2025 18:26
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request Apr 9, 2025
…n_ids default to False

Revert "Flip back to default `use_repetition_ids=True` in CircuitOperation (quantumlib#7237)"

This reverts commit 58d9619.

This also finalizes quantumlib#7232
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request Apr 11, 2025
…n_ids default to False

Revert "Flip back to default `use_repetition_ids=True` in CircuitOperation (quantumlib#7237)"

This reverts commit 58d9619.

This also finalizes quantumlib#7232
github-merge-queue bot pushed a commit that referenced this pull request Apr 11, 2025
…ult to False (#7265)

Revert "Flip back to default `use_repetition_ids=True` in CircuitOperation (#7237)"

This reverts commit 58d9619.

This also finalizes #7232
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
…uantumlib#7237)

* Revert "CircuitOperation: change use_repetition_ids default to False (quantumlib#6910)"

Put back the default `use_repetition_ids=True` so we do not make
API change without deprecation warning.

This reverts commit 5ffb3ad.

* Add FutureWarning for upcoming change of use_repetition_ids default

* Adjust unit tests for default `use_repetition_ids=True`
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
…n_ids default to False (quantumlib#7265)

Revert "Flip back to default `use_repetition_ids=True` in CircuitOperation (quantumlib#7237)"

This reverts commit 58d9619.

This also finalizes quantumlib#7232
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.

1.5.0 is making a breaking change to the results returned by simulator
2 participants