Skip to content

🔙 Backport nanobind 3 and drop x86 macOS support - #2325

Merged
denialhaag merged 6 commits into
v3.xfrom
codex/backport-pr-2209-v3
Sep 2, 2026
Merged

🔙 Backport nanobind 3 and drop x86 macOS support#2325
denialhaag merged 6 commits into
v3.xfrom
codex/backport-pr-2209-v3

Conversation

@denialhaag

@denialhaag denialhaag commented Sep 1, 2026

Copy link
Copy Markdown
Member

Description

🤖 AI text below 🤖

Backports #2209, #2259, and #2286 to v3.x.

This adopts nanobind 3 split mode, raises the minimum supported Python version to 3.11, publishes one cp311-abi3 wheel for GIL-enabled CPython and one cp315-abi3t wheel for free-threaded CPython, and adds nanobind-backend as a runtime dependency.

It also drops x86 macOS from CI and release matrices, keeps debug and release C++ coverage on Apple silicon, and raises the minimum macOS deployment target to 13.3.

The backport includes DD ownership fixes and synchronization for shared DD, IR, and QDMI state. It uses nanobind 3.0.1 because 3.0.0 is yanked, keeps the removed MLIR and QIR stacks absent, and preserves the v3.x FoMaC and neutral-atom interfaces.

AI notice

This PR and its contents were created with the assistance of GPT-5.6 Sol via Codex.

Checklist

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

If PR contains AI-assisted content:

  • Any agent that created, edited, or submitted GitHub content was explicitly authorized for that scope, as required by our AI Usage Guidelines.
  • Every agent-authored or agent-edited public text body begins with the visible disclosure 🤖 *AI text below* 🤖 (titles are exempt).
  • I have disclosed AI assistance in the PR description.
  • I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.

Assisted-by: GPT-5.6 Sol via Codex
@denialhaag denialhaag self-assigned this Sep 1, 2026
@denialhaag denialhaag added dependencies Pull requests that update a dependency file minor Minor version update packaging Anything related to Python packaging backport Changes that have been backported to a stable release branch labels Sep 1, 2026
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.28829% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/qdmi/driver/Driver.cpp 88.1% 12 Missing ⚠️
include/mqt-core/ir/Register.hpp 50.0% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
@denialhaag

Copy link
Copy Markdown
Member Author

@burgholzer, to keep them reviewable so that we have a good overview of what goes into 3.10.0, I'm splitting the backports into logical chunks. I hope that makes sense. This one is likely ready, but I want to have a final look before requesting a review tomorrow.

@denialhaag denialhaag changed the title ⬆️🐍 Backport nanobind 3 split-mode wheels 🔙 Backport nanobind 3 and drop x86 macOS support Sep 1, 2026

@burgholzer burgholzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just found two small things, otherwise this looked good while browsing through 👍🏼

And yeah, definitely makes sense to chop up the backports into logical chunks 👍🏼

Comment thread cmake/AddMQTPythonBinding.cmake Outdated
Comment thread pyproject.toml
Assisted-by: GPT-5.6 Sol via Codex
@denialhaag
denialhaag marked this pull request as ready for review September 2, 2026 07:04
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Important

Approval pending

CodeRabbit has no unresolved comments, but it has not reviewed the latest commit.

Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@denialhaag
denialhaag merged commit f051e02 into v3.x Sep 2, 2026
29 of 30 checks passed
@denialhaag
denialhaag deleted the codex/backport-pr-2209-v3 branch September 2, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Changes that have been backported to a stable release branch dependencies Pull requests that update a dependency file minor Minor version update packaging Anything related to Python packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants