feat!: Remove deprecated definitions - #1970
Conversation
| #[expect(deprecated)] | ||
| let phase = match hugr.get_metadata::<metadata::PytketPhaseExpr>(region) { | ||
| Some(p) => p.to_string(), | ||
| None => "0".to_string(), | ||
| }; |
There was a problem hiding this comment.
Since this is encoded into the Python package, is removing the read for this metadata not breaking to the Python package in a bad way?
There was a problem hiding this comment.
We haven't been writing to this this metadata entry in a while.
We moved to exporting standalone GlobalPhase ops, but left the metadata read path in case someone had a pytket circuit encoded as a Hugr flying around that needed to be re-exported.
Those hugrs are are unlikely to be be stored, so we should be fine removing this now.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1970 +/- ##
==========================================
+ Coverage 86.71% 87.04% +0.32%
==========================================
Files 203 201 -2
Lines 33116 32682 -434
Branches 31599 31165 -434
==========================================
- Hits 28717 28447 -270
+ Misses 3081 2930 -151
+ Partials 1318 1305 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary |
## 🤖 New release * `tket`: 0.21.2 -> 0.22.0 (✓ API compatible changes) * `tket-qsystem`: 0.27.2 -> 0.28.0 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> ## `tket` <blockquote> ## [0.22.0](Quantinuum/tket2@tket-v0.21.2...tket-v0.22.0) - 2026-09-03 ### Bug Fixes - `wire_inout` port mapping with interleaved classical and quantum wires under `dagger` modifier ([Quantinuum#1911](Quantinuum#1911)) - Wrong decomposition of `CnZ` gate ([Quantinuum#1948](Quantinuum#1948)) ### New Features - Extract multiple pytket circuits from a hugr region ([Quantinuum#1894](Quantinuum#1894)) - Preserving order edges during (non-dagger) modifier resolution ([Quantinuum#1840](Quantinuum#1840)) - Avoid panicking on badger optimization error ([Quantinuum#1940](Quantinuum#1940)) - Update Modifier pass to handle custom modifier and introduce new metadata for custom implementation ([Quantinuum#1962](Quantinuum#1962)) - *(rs)* [**breaking**] Update hugr to 0.30.1 ([Quantinuum#1965](Quantinuum#1965)) - [**breaking**] Remove deprecated definitions ([Quantinuum#1970](Quantinuum#1970)) ### Refactor - Move borrow array linearizer helper functions to `tket` and make them public ([Quantinuum#1951](Quantinuum#1951)) ### Testing - Disable failing miri check ([Quantinuum#1922](Quantinuum#1922)) </blockquote> ## `tket-qsystem` <blockquote> ## [0.28.0](Quantinuum/tket2@tket-qsystem-v0.27.2...tket-qsystem-v0.28.0) - 2026-09-03 ### New Features - Extract multiple pytket circuits from a hugr region ([Quantinuum#1894](Quantinuum#1894)) - Add missing tket1 extension to tket_exts ([Quantinuum#1961](Quantinuum#1961)) - *(rs)* [**breaking**] Update hugr to 0.30.1 ([Quantinuum#1965](Quantinuum#1965)) - [**breaking**] Remove deprecated definitions ([Quantinuum#1970](Quantinuum#1970)) ### Refactor - Move borrow array linearizer helper functions to `tket` and make them public ([Quantinuum#1951](Quantinuum#1951)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/).
Remove some deprecated definitions in preparation for
tket-rs 0.22.0BREAKING CHANGE: Removed
NormalizeGuppyalias forNormalizepass.BREAKING CHANGE: Removed legacy
QSystemOpre-exports in tket-qsystem.BREAKING CHANGE: Removed
CommandsIteratorNot a breaking python change:
BEGIN_COMMIT_OVERRIDE
chore: Remove deprecated definitions in rust library (#1970)
END_COMMIT_OVERRIDE