Skip to content

Make QVM notebooks use development version of cirq_google#7439

Merged
pavoljuhas merged 2 commits intoquantumlib:mainfrom
pavoljuhas:import-dev-cirq-google-in-qvm-notebooks
Jun 27, 2025
Merged

Make QVM notebooks use development version of cirq_google#7439
pavoljuhas merged 2 commits intoquantumlib:mainfrom
pavoljuhas:import-dev-cirq-google-in-qvm-notebooks

Conversation

@pavoljuhas
Copy link
Copy Markdown
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 a team and vtomole 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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread docs/hardware/qubit_picking.ipynb Outdated
" 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
Copy Markdown
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
Copy Markdown
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