Skip to content

feat: Explicit exports for tket_exts ops and types #1046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 22, 2025
Merged

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Aug 18, 2025

Closes #925

Lists each extension's operations and types, so they appear in the docs and users don't have to guess what ops are available.

  • This is a backwards compatible change. tket_exts.opaque_bool has been deprecated in favour of tket_exts.bool.

TODO:

Copy link

codecov bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 99.45155% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.93%. Comparing base (cd42644) to head (4165508).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tket-py/tket/extensions/__init__.py 50.00% 2 Missing ⚠️
tket-exts/src/tket_exts/__init__.py 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1046      +/-   ##
==========================================
+ Coverage   78.13%   78.93%   +0.79%     
==========================================
  Files         102      115      +13     
  Lines       12886    13389     +503     
  Branches    12607    12607              
==========================================
+ Hits        10069    10569     +500     
- Misses       2162     2165       +3     
  Partials      655      655              
Flag Coverage Δ
python 92.83% <99.45%> (+11.83%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@aborgna-q aborgna-q requested a review from cqc-alec August 18, 2025 13:39
@aborgna-q aborgna-q marked this pull request as ready for review August 18, 2025 13:40
@aborgna-q aborgna-q requested a review from a team as a code owner August 18, 2025 13:40
@aborgna-q aborgna-q force-pushed the ab/tket-exts-exports branch 2 times, most recently from ffc6444 to cd748ec Compare August 18, 2025 13:43
@aborgna-q aborgna-q force-pushed the ab/tket-exts-exports branch from cd748ec to d0f3958 Compare August 19, 2025 13:01
@aborgna-q aborgna-q requested a review from croyzor August 19, 2025 13:06
@aborgna-q
Copy link
Collaborator Author

Currently failing after the changes in #1047

hugrbot and others added 2 commits August 20, 2025 09:31
🤖 I have created a release *beep* *boop*
---


##
[0.12.2](tket-py-v0.12.1...tket-py-v0.12.2)
(2025-08-19)


### Features

* Define a wire tracker for the new pytket decoder
([#1036](#1036))
([2466ee2](2466ee2))
* Support qsystem native operations when loading pytket circuits
([#1041](#1041))
([88c5c79](88c5c79))
* **tket-py:** Create BadgerOptimiser from arbitrary Rewriters
([#1022](#1022))
([a975c1d](a975c1d)),
closes [#1021](#1021)


### Documentation

* Update README badges
([#1004](#1004))
([d609bf5](d609bf5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <agustin.borgna@quantinuum.com>
@croyzor croyzor requested review from ss2165 and doug-q as code owners August 20, 2025 08:31
@aborgna-q aborgna-q enabled auto-merge August 22, 2025 16:04
@aborgna-q aborgna-q added this pull request to the merge queue Aug 22, 2025
Merged via the queue into main with commit a32873e Aug 22, 2025
18 checks passed
@aborgna-q aborgna-q deleted the ab/tket-exts-exports branch August 22, 2025 16:12
github-merge-queue bot pushed a commit that referenced this pull request Aug 22, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.12.3](tket-py-v0.12.2...tket-py-v0.12.3)
(2025-08-22)


### Features

* Explicit exports for tket_exts ops and types
([#1046](#1046))
([a32873e](a32873e))


### Bug Fixes

* Fix erroneous parameters being decoded from pytket for qsystem gates
([#1061](#1061))
([cd42644](cd42644))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
Co-authored-by: Seyon Sivarajah <seyon.sivarajah@cambridgequantum.com>
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.

(tket2-exts): Export ops and types for each extension
4 participants