Skip to content

Make QVM notebooks use development version of cirq_google #7439

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

Merged

Conversation

pavoljuhas
Copy link
Collaborator

Problem: QVM notebooks would use the last stable cirq_google
if imported before package upgrade.

Solution: Import cirq_google only after its possible upgrade.

Fixes b/425769714

Problem: QVM notebooks would use the last stable cirq_google
if imported before package upgrade.

Solution: Import cirq_google only after its possible upgrade.

Fixes b/425769714
@pavoljuhas pavoljuhas requested review from vtomole and a team as code owners June 26, 2025 21:44
@pavoljuhas pavoljuhas requested a review from senecameeks June 26, 2025 21:44
@github-actions github-actions bot added the size: S 10< lines changed <50 label Jun 26, 2025
@pavoljuhas pavoljuhas requested a review from mhucka June 26, 2025 21:45
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.70%. Comparing base (5c96d02) to head (fa111aa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7439      +/-   ##
==========================================
- Coverage   98.70%   98.70%   -0.01%     
==========================================
  Files        1119     1119              
  Lines       98438    98438              
==========================================
- Hits        97161    97160       -1     
- Misses       1277     1278       +1     

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

Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

Minor typo fix.

" from cirq_google.engine import load_device_noise_properties as _\n",
" # raise ImportError when cirq is not new enough\n",
" if cirq.__version__ == \"1.5.0\":\n",
" raise ImportError(\"This notebook requires development version of Cirq\")\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

"requires development" → "requires the development".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done in fa111aa, thanks for flagging this.

@pavoljuhas pavoljuhas requested a review from mhucka June 26, 2025 23:42
@pavoljuhas pavoljuhas enabled auto-merge June 27, 2025 01:23
@pavoljuhas pavoljuhas added this pull request to the merge queue Jun 27, 2025
Merged via the queue into quantumlib:main with commit 4c7e393 Jun 27, 2025
65 of 66 checks passed
@pavoljuhas pavoljuhas deleted the import-dev-cirq-google-in-qvm-notebooks branch June 27, 2025 02:49
ddddddanni pushed a commit to ddddddanni/Cirq that referenced this pull request Jul 15, 2025
…#7439)

Problem: QVM notebooks would use the last stable cirq_google
if imported before package upgrade.

Solution: Import cirq_google only after its possible upgrade.

Fixes b/425769714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants