Skip to content

🔥 Remove dead typing compatibility module - #2059

Merged
burgholzer merged 1 commit into
mainfrom
remove-assert-never
Aug 12, 2026
Merged

🔥 Remove dead typing compatibility module#2059
burgholzer merged 1 commit into
mainfrom
remove-assert-never

Conversation

@denialhaag

Copy link
Copy Markdown
Member

Description

This PR removes the dead typing compatibility module. This change was originally part of #2009.

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.

@denialhaag
denialhaag requested a review from burgholzer August 12, 2026 00:03
@denialhaag denialhaag self-assigned this Aug 12, 2026
@denialhaag denialhaag added the python Anything related to Python code label Aug 12, 2026
@denialhaag
denialhaag force-pushed the remove-assert-never branch from 28cda58 to 9b0e517 Compare August 12, 2026 00:08

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

Nice 👍🏼

@burgholzer burgholzer added the code quality Code quality improvements label Aug 12, 2026
@burgholzer
burgholzer merged commit cb1ece1 into main Aug 12, 2026
44 of 47 checks passed
@burgholzer
burgholzer deleted the remove-assert-never branch August 12, 2026 08:31
burgholzer added a commit that referenced this pull request Aug 15, 2026
* 📝 Plan the remaining MQT Core v3 QDMI backports

Record the compatible scope, architecture exclusions, validation boundaries, and combined publication strategy for the remaining QDMI and Slurm functionality.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport QDMI queue telemetry

Expose optional device queue length and job queue position through the v3 driver, C++ wrappers, and QDMI Python namespace. Update the bundled QDMI revision and retain optional low-level job retrieval for provider compatibility.

Backports #2010.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport existing QDMI job retrieval

Expose provider job retrieval by stable job ID through the v3 C++ wrappers and QDMI Python namespace. Keep the built-in devices explicit about their unsupported retrieval contract.

Backports #2008.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport custom QDMI operation lists

Expose provider-specific operation-handle arrays through the v3 C++ wrappers and QDMI Python namespace. Preserve unsupported, empty, malformed-payload, shared-handle, and lifetime semantics.

Backports #2042.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport the QDMI Slurm license selector

Add the mechanism-specific C++ and Python adapters that open the registered device named by one local Slurm license environment value. Preserve the selection-only trust boundary and provider-owned authorization.

Backports #2025.

Assisted-by: GPT-5.6 via Codex

* 🧪 Backport the QDMI Slurm integration fixture

Add the modern two-node Slurm admission workflow and trust-boundary tutorial for the v3 QDMI namespace. Build the test wheel with the v3 LLVM and MLIR 21 toolchain.

Backports #2043.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport runtime-configurable neutral-atom devices

Replace generated neutral-atom provider state with strict session-owned JSON configuration. Preserve the v3 QDMI namespace, typed registry transport, job retrieval contract, and embedded-build device options.

Backports #1974.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport runtime-configurable superconducting devices

Replace generated superconducting provider state with strict session-owned JSON configuration. Preserve job retrieval, custom-operation support, the v3 QDMI namespace, and independent per-session models.

Backports #1980.

Assisted-by: GPT-5.6 via Codex

* ✨ Backport reusable IQM device models

Bundle strict runtime descriptions for IQM Garnet and Emerald with stable QDMI registry IDs. Reuse the superconducting provider library without loading it during registry discovery.

Backports #1992.

Assisted-by: GPT-5.6 via Codex

* 🐍 Backport CPython 3.15 wheel preparation

Advertise CPython 3.15, build its wheels without running dependency-limited tests, include the complete JSON device catalog in wheel tests, and update the reusable workflow revision while preserving the v3 MLIR presets.

Backports #2011.

Assisted-by: GPT-5.6 via Codex

* ⬆️ Backport the rumdl pre-commit update

Update the Markdown linter and formatter hook to v0.2.49.

Backports #2027.

Assisted-by: GPT-5.6 via Codex

* 🔧 Backport standard dynamic package metadata

Adopt scikit-build-core's standard dynamic-metadata table for setuptools-scm version discovery.

Backports #2065.

Assisted-by: GPT-5.6 via Codex

* ⬆️ Backport nanobind 2.14

Update the build, stub-generation, lock, and clang-tidy environments to nanobind 2.14.0.

Backports #2073.

Assisted-by: GPT-5.6 via Codex

* ⚡ Backport faster QDMI stub generation

Build only the extension modules required by recursive stub generation using a small non-optimized unity build and reuse the worktree-local environment. Keep the v3 documentation session unchanged.

Backports #2075.

Assisted-by: GPT-5.6 via Codex

* ⚡ Backport build and CI time reductions

Enable unity builds for ordinary v3 builds, keep lint non-unity with interface-header verification, and reduce the routine C++ matrix to one Debug and one Release job per operating system while retaining LLVM/MLIR 21.

Backports #2083.

Assisted-by: GPT-5.6 via Codex

* ♻️ Backport simplified optional-dependency handling

Inline the Qiskit and PennyLane import checks while preserving the public availability flags, and remove the now-unused private compatibility helper and its tests.

Backports #2108.

Signed-off-by: simon1hofmann <119581649+simon1hofmann@users.noreply.github.com>

Assisted-by: GPT-5.6 via Codex

* 📝 Backport Sphinx-LLM documentation indexes

Enable the Sphinx-LLM text builder and require the first release that generates the llms.txt sitemap. Refresh the v3 dependency lock for the feature.

Backports the Sphinx-LLM changes from #1989 and #2046.

Assisted-by: GPT-5.6 via Codex

* 🧪 Backport stronger ZX equivalence tests

Verify multi-controlled X, Z, and RZ constructions against independent exact-unitary references before checking their ZX representations.

Backports #2029.

Assisted-by: GPT-5.6 via Codex

* 🔥 Backport removal of dead typing compatibility code

Remove the unused private typing compatibility module and its Ruff configuration. No v3 production code imports the module.

Backports #2059.

Assisted-by: GPT-5.6 via Codex

* ⬆️ Backport CI and hook patch updates

Update the release publishing actions, release drafter, uv lock hook, project-schema validator, Ruff, and ty to the compatible patch revisions already used on main.

Backports the compatible updates from #2019, #2020, #2021, and #2023. The newer rumdl update from #2027 is already present in this series.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Assisted-by: GPT-5.6 via Codex

* ♻️ Backport native unity-build compatibility fixes

Keep the v3 DD bindings and neutral-atom operation sources compatible with the unity builds enabled by the CI optimization. Main-only LLVM/MLIR documentation-build changes are intentionally not included.

Backports the applicable native fixes from #2047.

Assisted-by: GPT-5.6 via Codex

* 📝 Backport compatible maintenance cleanups

Correct the Markdown hook indentation, simplify two documentation links, and keep the QDMI installation snippet independent of a particular virtual-environment prompt.

Backports the remaining compatible maintenance changes from #1989.

Assisted-by: GPT-5.6 via Codex

* 🔧 Backport the optional-component wheel target

Build Python packages through one aggregate target whose dependencies follow the enabled QDMI devices. This preserves the existing v3 wheel contents and lets stub and documentation builds disable unused providers without requesting absent targets.

Backports the applicable packaging target from #2074 and completes the #2075 optimization on v3.

Assisted-by: GPT-5.6 via Codex

* 📝 Finalize the combined v3 backport

Record the complete compatibility sweep and exact validation results. Adapt the Slurm workflow and runtime-configuration documentation to the v3 branch and documentation toolchain, and use current QDMI terminology throughout.

Assisted-by: GPT-5.6 via Codex

* 🔇 Resolve v3 backport lint diagnostics

Use the neutral-atom lattice scalar type for the determinant threshold and construct complete device session configurations in the backported tests. This avoids double-promotion and partial-aggregate diagnostics without changing runtime behavior.

Assisted-by: GPT-5.6 via Codex

* ✅ Cover optional plugin import failures

Exercise the compatibility paths that disable a plugin only when its top-level dependency is absent and propagate missing nested dependencies. Apply the same contract tests to the Qiskit and PennyLane plugins.

Assisted-by: GPT-5.6 via Codex

* 🧰 Backport typed QDMI adapter configuration

Add public session and job parameter TypedDicts and typed stable-ID keyword overrides while preserving the v3 session_parameters mapping. Keep PennyLane session and job mappings separate and retain runtime validation.

Backports the compatible configuration typing from #2084.

Assisted-by: GPT-5.6 via Codex

* 🪪 Backport stable QDMI IDs in Qiskit backends

Record the registry ID when a backend opens a registered device. Allow already-open and specialized devices to supply an ID explicitly while keeping direct construction and the v3 session-parameter mapping valid.

Backports the compatible stable-ID behavior from #2084.

Assisted-by: GPT-5.6 via Codex

* 🔎 Backport lazy QDMI backend discovery

Read the live QDMI registry for each discovery call and open fresh backends only when requested. Add exact stable-ID lookup and sanitized warnings that skip unavailable devices without exposing configuration.

Backports the provider discovery behavior from #2084.

Assisted-by: GPT-5.6 via Codex

* 💥 Backport explicit QDMI primitive defaults

Add sampler and estimator factories to each QDMI backend and match #2084 by replacing the generic primitive options mapping with explicit shot and precision defaults.

Assisted-by: GPT-5.6 via Codex

* 📝 Record the combined v3 backport boundary

Document the selected QDMI, Slurm, device, Qiskit, maintenance, build, and documentation changes. Record the explicit primitive-default migration and the main-only compiler, QCO, QIR, OpenQASM, and ZX boundaries.

Assisted-by: GPT-5.6 via Codex

* 💥 Backport removal of dead pybind11 CMake support

Remove the unused pybind11 binding helper and make add_mqt_python_binding the sole nanobind helper. Update all v3 binding targets and document the downstream CMake migration.

Backports #2106.

Assisted-by: GPT-5.6 via Codex

* 💥 Backport removal of pyproject QDMI configuration

Stop discovering QDMI device definitions from [tool.qdmi], remove the vendored toml++ dependency, and retain qdmi.json as the project-level configuration format.

Backports #2116 with v3-compatible tests and documentation.

Assisted-by: GPT-5.6 via Codex

* 📝 Backport final-design and writing guidance

Backport the final-design, concise writing, terminology, and contract-test guidance from #2072 to the v3 maintenance branch.

Assisted-by: GPT-5.6 via Codex

* ⚡ Backport documentation build optimizations

Remove the unused SVG conversion dependency and favor a fast debug build without IPO for the short-lived documentation environment. Preserve v3's optional MLIR architecture.

Assisted-by: GPT-5.6 via Codex

---------

Co-authored-by: Daniel Haag <121057143+denialhaag@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: simon1hofmann <119581649+simon1hofmann@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Code quality improvements python Anything related to Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants