Skip to content

Switch notebooks from dev to stable cirq where possible#7247

Merged
pavoljuhas merged 6 commits intoquantumlib:mainfrom
pavoljuhas:stabilize-notebooks
Apr 9, 2025
Merged

Switch notebooks from dev to stable cirq where possible#7247
pavoljuhas merged 6 commits intoquantumlib:mainfrom
pavoljuhas:stabilize-notebooks

Conversation

@pavoljuhas
Copy link
Copy Markdown
Collaborator

  • Convert notebooks which already work with stable cirq to
    install stable cirq

  • Delete outdated notes about notebooks needing dev cirq

  • Delete unused tst files that have no corresponding notebooks

  • Exclude untested xeb_calibration_example.ipynb notebook from
    isolated_notebook_test.py as well

  • And fix one odd typo

The notebook actually installs and tests with stable cirq.
…_test.py

This notebook is also excluded in notebook_test.py which tests with head cirq.
- calibration_api.ipynb was removed in quantumlib#6580
- operators_and_observables.ipynb was renamed to operators.ipynb and
  it does not match the operators.txt replacement anymore
@pavoljuhas pavoljuhas requested review from a team and vtomole as code owners April 8, 2025 21:14
@pavoljuhas pavoljuhas requested a review from dabacon April 8, 2025 21:14
@pavoljuhas pavoljuhas added the priority/before-1.5 Finish before the Cirq 1.5 release label Apr 8, 2025
@pavoljuhas pavoljuhas requested a review from mhucka April 8, 2025 21:15
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.

With the caveat that I didn't try running the notebooks, this LGTM.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.64%. Comparing base (4a7f810) to head (c0ba22a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7247      +/-   ##
==========================================
- Coverage   98.64%   98.64%   -0.01%     
==========================================
  Files        1106     1106              
  Lines       95990    95990              
==========================================
- Hits        94691    94690       -1     
- Misses       1299     1300       +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.

@pavoljuhas pavoljuhas enabled auto-merge April 8, 2025 23:46
@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 9, 2025
Merged via the queue into quantumlib:main with commit 9b367de Apr 9, 2025
38 checks passed
@pavoljuhas pavoljuhas deleted the stabilize-notebooks branch April 9, 2025 00:19
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
)

* Remove obsolete note about installing cirq-dev

The notebook actually installs and tests with stable cirq.

* Switch from dev to stable cirq in notebooks where it works

Ref: https://github.com/quantumlib/Cirq/blob/main/docs/dev/notebooks.md#lifecycle

* Exclude xeb_calibration_example.ipynb notebook from isolated_notebook_test.py

This notebook is also excluded in notebook_test.py which tests with head cirq.

* Delete unused tst files

- calibration_api.ipynb was removed in quantumlib#6580
- operators_and_observables.ipynb was renamed to operators.ipynb and
  it does not match the operators.txt replacement anymore

* Typo `mehod` -> `method`
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.

2 participants