Skip to content

Add a qpdk extra and use it in the docs build and notebooks - #553

Open
Alisama20 wants to merge 1 commit into
gdsfactory:mainfrom
Alisama20:ali/fix-533
Open

Alisama20 wants to merge 1 commit into
gdsfactory:mainfrom
Alisama20:ali/fix-533

Conversation

@Alisama20

Copy link
Copy Markdown
Collaborator

The QPDK notebooks need qpdk, but gsim had no extra for it. The notebooks said uv pip install qpdk (unpinned), while the docs workflow installed qpdk==0.4.0. So the published output and what a user installs could come from different versions.

  • Added qpdk = ["qpdk>=0.4,<0.5"] to the optional dependencies. It resolves with all the other extras (qpdk 0.4.3 today).
  • The docs workflow installs the extra for nbs/palace_qpdk_*.ipynb instead of the hard-coded version.
  • The install line in palace_qpdk_resonator, palace_qpdk_filled_qubit_test_chip, palace_transmon and _palace_qpdk_eigenmode is now uv pip install "gsim[qpdk]". Outputs untouched.
  • Listed the extra in the installation section of docs/index.md.

Checked: uv sync --dev --all-extras installs qpdk 0.4.3 and every import of the resonator notebook works with it. I have not rerun the resonator on the cloud. The docs build on this PR runs it.

Closes #533

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T20:13:51.222676Z 09552d3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.67%. Comparing base (55aad85) to head (09552d3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage   91.66%   91.67%           
=======================================
  Files         216      216           
  Lines       30533    30533           
  Branches     5672     5672           
=======================================
+ Hits        27989    27990    +1     
  Misses       1458     1458           
+ Partials     1086     1085    -1     

☔ View full report in Codecov by Harness.
📢 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.

The QPDK notebooks need qpdk but gsim had no extra for it; the docs
workflow pinned its own version. Closes gdsfactory#533.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qpdk notebooks: no extra for qpdk, and the docs build pins a different version than the notebook tells users to install

1 participant