Tket2

Latest version: v0.8.1

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.8.0

New Features

- [**breaking**] Use hugr envelopes to store/load circuits ([813](https://github.com/CQCL/tket2/pull/813))

tket2-py-v0.8.1
[0.8.1](https://github.com/CQCL/tket2/compare/tket2-py-v0.8.0...tket2-py-v0.8.1) (2025-03-18)


Features

* Update `tket2-exts` extension to `0.6.0` ([e358bb1](https://github.com/CQCL/tket2/commit/e358bb1a1641153cd718995da09888f98f0ffe35))

tket2-py-v0.8.0
[0.8.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.7.0...tket2-py-v0.8.0) (2025-03-17)


⚠ BREAKING CHANGES

* pre-envelope `Circuit` serialisation functions are deprecated.
* `Node` is now an associated type of `HugrView` `Circuit::load_function_reader` takes a `BufRead` rather than `Read`
* **tket2-hseries:** Make `UtilsOp` enum `non_exhaustive` so that future additions are not considered API-breaking.

Features

* Add methods to en/decode from bytes ([807](https://github.com/CQCL/tket2/issues/807)) ([3e76fd2](https://github.com/CQCL/tket2/commit/3e76fd2fb981889542b06cd218dfce9ad925cf29))
* Use hugr envelopes to store/load circuits ([813](https://github.com/CQCL/tket2/issues/813)) ([2940b2e](https://github.com/CQCL/tket2/commit/2940b2e0c9b270259259690b83dbdf261543d26d))


Bug Fixes

* **tket2-hseries:** rm unneeded ext, make `UtilsOp` enum `non_exhaustive` ([797](https://github.com/CQCL/tket2/issues/797)) ([8c3ee89](https://github.com/CQCL/tket2/commit/8c3ee8971b9f095ccdb0522cf0751a2ff20b89a5))


Miscellaneous Chores

* bump to hugr-rs 0.15 and hugr-py 0.11 ([806](https://github.com/CQCL/tket2/issues/806)) ([f3bfaae](https://github.com/CQCL/tket2/commit/f3bfaae0b6e4b8fd934a62343317b85ccb8f96ee))

tket2-hseries-v0.11.0
Bug Fixes

- [**breaking**] Remove `OrderInZones` operation. Make `UtilsOp` enum `non_exhaustive` ([797](https://github.com/CQCL/tket2/pull/797))

New Features

- Lower tk2 ops using function calls ([812](https://github.com/CQCL/tket2/pull/812))

tket2-exts-v0.6.0
[0.6.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.5.1...tket2-exts-v0.6.0) (2025-03-18)


⚠ BREAKING CHANGES

* pre-envelope `Circuit` serialisation functions are deprecated.
* `Node` is now an associated type of `HugrView` `Circuit::load_function_reader` takes a `BufRead` rather than `Read`
* **tket2-hseries:** Make `UtilsOp` enum `non_exhaustive` so that future additions are not considered API-breaking.

Features

* Use hugr envelopes to store/load circuits ([813](https://github.com/CQCL/tket2/issues/813)) ([2940b2e](https://github.com/CQCL/tket2/commit/2940b2e0c9b270259259690b83dbdf261543d26d))


Bug Fixes

* **tket2-hseries:** rm unneeded ext, make `UtilsOp` enum `non_exhaustive` ([797](https://github.com/CQCL/tket2/issues/797)) ([8c3ee89](https://github.com/CQCL/tket2/commit/8c3ee8971b9f095ccdb0522cf0751a2ff20b89a5))


Miscellaneous Chores

* bump to hugr-rs 0.15 and hugr-py 0.11 ([806](https://github.com/CQCL/tket2/issues/806)) ([f3bfaae](https://github.com/CQCL/tket2/commit/f3bfaae0b6e4b8fd934a62343317b85ccb8f96ee))

tket2-py-v0.7.0
[0.7.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.6.1...tket2-py-v0.7.0) (2025-03-06)


⚠ BREAKING CHANGES

* **tket2-py:** Adds `OrderInZones` to `tket2.qsystem.utils`

Features

* **tket2-py:** bump tket2_exts constraint ([794](https://github.com/CQCL/tket2/issues/794)) ([520e950](https://github.com/CQCL/tket2/commit/520e9505630d1bc166472fb1af1095bb39e8b414))

tket2-hseries-v0.10.0
Bug Fixes

- [**breaking**] remove type argument from `RNGContext` type, swap returns ([786](https://github.com/CQCL/tket2/pull/786))

New Features

- *(tket2-hseries)* [**breaking**] Add order_in_zones extension op ([792](https://github.com/CQCL/tket2/pull/792))

tket2-exts-v0.5.1
[0.5.1](https://github.com/CQCL/tket2/compare/tket2-exts-v0.5.0...tket2-exts-v0.5.1) (2025-03-06)


Features

* Add order_in_zones extension op ([3ec7f5d](https://github.com/CQCL/tket2/commit/3ec7f5d5e0a7d07254e1b09976cddea98cd83702))

tket2-exts-v0.5.0
[0.5.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.4.0...tket2-exts-v0.5.0) (2025-03-04)


⚠ BREAKING CHANGES

* To be compatible with Guppy's convention of implicitly returning `self` as the second value of the tuple, the following signatures are updated:
diff
- /// `fn random_int(RNGContext) -> (RNGContext, u32)`
+ /// `fn random_int(RNGContext) -> (u32, RNGContext)`

- /// `fn random_float(RNGContext) -> (RNGContext, f32)`
+ /// `fn random_float(RNGContext) -> (f32, RNGContext)`

- /// `fn random_int_bounded(RNGContext, bound: u32) -> (RNGContext, u32)`
+ /// `fn random_int_bounded(RNGContext, bound: u32) -> (u32, RNGContext)`


Bug Fixes

* remove type argument from `RNGContext` type, swap returns ([786](https://github.com/CQCL/tket2/issues/786)) ([633ebd7](https://github.com/CQCL/tket2/commit/633ebd74d71ba81f5b71d6db757b08ea3c959a5d))

0.7.3

Bug Fixes

- remove unicode pi symbols in rotation extension (743)

tket2-hseries-v0.9.1
New Features

- add a `tket2.qsystem.utils` extension with `GetCurrentShot` (772)
- add "tket2.qsystem.random" extension (779)

tket2-py-v0.6.1
[0.6.1](https://github.com/CQCL/tket2/compare/tket2-py-v0.6.0...tket2-py-v0.6.1) (2025-02-21)


Features

* add a `tket2.qsystem.utils` extension with `GetCurrentShot` ([772](https://github.com/CQCL/tket2/issues/772)) ([175a02d](https://github.com/CQCL/tket2/commit/175a02da2ce8a0065c265cdae7518c1b5284cff3)), closes [#767](https://github.com/CQCL/tket2/issues/767)


Bug Fixes

* include RNG extension in tket2-py, bump tket2-exts constraint ([781](https://github.com/CQCL/tket2/issues/781)) ([9eb8897](https://github.com/CQCL/tket2/commit/9eb8897fe5eed96070700b2f43461da1fd1346ee))

tket2-exts-v0.4.0
[0.4.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.3.0...tket2-exts-v0.4.0) (2025-02-20)


⚠ BREAKING CHANGES

* **tket2-hseries:** The signature of `QSystemOp::LazyMeasure` is changed to consume its qubit.
* Updated `hugr` rust dependency to `0.14.0` Extension are now defined in `hugr 0.14` style. Replaced the `ROTATION_TYPE` with a method call, and dropped the per-extension registry definitions.
* all references to "hseries" including extension, modules and structs renamed to "qsystem"
* hseries qalloc op replaced with fallible TryQalloc

Features

* add "tket2.qsystem.random" extension ([779](https://github.com/CQCL/tket2/issues/779)) ([f4901ee](https://github.com/CQCL/tket2/commit/f4901eed22f8e66ca5ea3ccb8d72ead134ff8001))
* add a `tket2.qsystem.utils` extension with `GetCurrentShot` ([772](https://github.com/CQCL/tket2/issues/772)) ([175a02d](https://github.com/CQCL/tket2/commit/175a02da2ce8a0065c265cdae7518c1b5284cff3)), closes [#767](https://github.com/CQCL/tket2/issues/767)
* move extensions to auxillary package ([682](https://github.com/CQCL/tket2/issues/682)) ([dd78f9a](https://github.com/CQCL/tket2/commit/dd78f9a571905407bcf74131a54f4aefbca740c4))
* **tket2-hseries:** Add `tket2.wasm` extension ([737](https://github.com/CQCL/tket2/issues/737)) ([34bdc21](https://github.com/CQCL/tket2/commit/34bdc218b5e9bf334830873e847935dea0053242))
* **tket2-hseries:** Redefine `QSystemOp::LazyMeasure` and introduce `QSystemOp::LazyMeasureReset` ([741](https://github.com/CQCL/tket2/issues/741)) ([1f126c0](https://github.com/CQCL/tket2/commit/1f126c0a4f7686fa6941a05aa28228786baac6d1))
* update measurement and alloc operations ([702](https://github.com/CQCL/tket2/issues/702)) ([a7a0201](https://github.com/CQCL/tket2/commit/a7a020116f42bfeb89c356d08816a2f3ce1b5226))


Bug Fixes

* remove unicode pi symbols in rotation extension ([743](https://github.com/CQCL/tket2/issues/743)) ([b3ed351](https://github.com/CQCL/tket2/commit/b3ed35108d5fe93c3aa8101084b695470c488a30))


Documentation

* docstring capitalisation ([686](https://github.com/CQCL/tket2/issues/686)) ([e18f921](https://github.com/CQCL/tket2/commit/e18f921903953dc6a033ef697092f80a99a142b0))


Miscellaneous Chores

* Update to next version of hugr ([720](https://github.com/CQCL/tket2/issues/720)) ([4a3a5a5](https://github.com/CQCL/tket2/commit/4a3a5a5e38252d4ee709e7e97bb5a1e90bd9fff4))


Code Refactoring

* rename hseries to qsystem ([703](https://github.com/CQCL/tket2/issues/703)) ([1e90173](https://github.com/CQCL/tket2/commit/1e90173872e73c44a6321fe400ae6f2e4e115220))

0.7.2

Bug Fixes

- remove unicode pi symbols in rotation extension (743)

tket2-hseries-v0.9.0
Bug Fixes

- Use `RemoveDeadFuncsPass` instead of deprecated `remove_polyfuncs()` (759)
- nondeterminism in lazify-measure (766)

New Features

- *(tket2-hseries)* Add `tket2.wasm` extension (737)
- force-order qfree early and qalloc late. (762)

0.7.1

Bug Fixes

- remove unicode pi symbols in rotation extension (743)

tket2-hseries-v0.8.0
New Features

- *(tket2-hseries)* [**breaking**] Redefine `QSystemOp::LazyMeasure` and introduce `QSystemOp::LazyMeasureReset` (741)
- *(tket2-hseries)* Lazify more flavours of measure ops (742)

tket2-hseries-v0.7.1
New Features

- Add monomorphization and constant folding to QSystemPass (730)

0.7.0

⚠ BREAKING CHANGES

- Removed `load_guppy_*` methods. Use `Circuit::load_function_reader` instead.
- Extension definitions and registries now use `Arc`s for sharing

New Features

- [**breaking**] Track circuit extensions and read/write packages (680)
- [**breaking**] update measurement and alloc operations (702)

Refactor

- [**breaking**] update to hugr 0.14 (700)

tket2-py-v0.6.0
[0.6.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.5.1...tket2-py-v0.6.0) (2024-12-16)


⚠ BREAKING CHANGES

* Updated `hugr` rust dependency to `0.14.0` Extension are now defined in `hugr 0.14` style. Replaced the `ROTATION_TYPE` with a method call, and dropped the per-extension registry definitions.
* all references to "hseries" including extension, modules and structs renamed to "qsystem"
* hseries qalloc op replaced with fallible TryQalloc

Features

* update measurement and alloc operations ([702](https://github.com/CQCL/tket2/issues/702)) ([a7a0201](https://github.com/CQCL/tket2/commit/a7a020116f42bfeb89c356d08816a2f3ce1b5226))


Miscellaneous Chores

* Update to next version of hugr ([720](https://github.com/CQCL/tket2/issues/720)) ([4a3a5a5](https://github.com/CQCL/tket2/commit/4a3a5a5e38252d4ee709e7e97bb5a1e90bd9fff4))


Code Refactoring

* rename hseries to qsystem ([703](https://github.com/CQCL/tket2/issues/703)) ([1e90173](https://github.com/CQCL/tket2/commit/1e90173872e73c44a6321fe400ae6f2e4e115220))

tket2-hseries-v0.7.0
⚠ BREAKING CHANGES

- Replaced the hseries `qalloc` op with a fallible `TryQalloc`
- Extension definitions and registries now use `Arc`s for sharing

New Features

- [**breaking**] update measurement and alloc operations (702)

Refactor

- [**breaking**] update to hugr 0.14 (700)
- [**breaking**] rename hseries to qsystem (703)

tket2-exts-v0.3.0
[0.3.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.2.0...tket2-exts-v0.3.0) (2024-12-16)


⚠ BREAKING CHANGES

* Updated `hugr` rust dependency to `0.14.0` Extension are now defined in `hugr 0.14` style. Replaced the `ROTATION_TYPE` with a method call, and dropped the per-extension registry definitions.

Miscellaneous Chores

* Update to next version of hugr ([720](https://github.com/CQCL/tket2/issues/720)) ([4a3a5a5](https://github.com/CQCL/tket2/commit/4a3a5a5e38252d4ee709e7e97bb5a1e90bd9fff4))

tket2-eccs-v0.3.0
[0.3.0](https://github.com/CQCL/tket2/compare/tket2-eccs-v0.2.0...tket2-eccs-v0.3.0) (2024-12-16)


⚠ BREAKING CHANGES

* Updated `hugr` rust dependency to `0.14.0` Extension are now defined in `hugr 0.14` style. Replaced the `ROTATION_TYPE` with a method call, and dropped the per-extension registry definitions.

Features

* move extensions to auxillary package ([682](https://github.com/CQCL/tket2/issues/682)) ([dd78f9a](https://github.com/CQCL/tket2/commit/dd78f9a571905407bcf74131a54f4aefbca740c4))


Reverts

* "Support python 3.13 ([653](https://github.com/CQCL/tket2/issues/653))" ([#657](https://github.com/CQCL/tket2/issues/657)) ([3fb67ac](https://github.com/CQCL/tket2/commit/3fb67acf5e860fba8f8e1b9e6c5836846a0fcb7d))


Miscellaneous Chores

* Update to next version of hugr ([720](https://github.com/CQCL/tket2/issues/720)) ([4a3a5a5](https://github.com/CQCL/tket2/commit/4a3a5a5e38252d4ee709e7e97bb5a1e90bd9fff4))

tket2-exts-v0.2.0
[0.2.0](https://github.com/CQCL/tket2/compare/tket2-exts-v0.1.1...tket2-exts-v0.2.0) (2024-12-02)


⚠ BREAKING CHANGES

* all references to "hseries" including extension, modules and structs renamed to "qsystem"
* hseries qalloc op replaced with fallible TryQalloc

Features

* update measurement and alloc operations ([702](https://github.com/CQCL/tket2/issues/702)) ([a7a0201](https://github.com/CQCL/tket2/commit/a7a020116f42bfeb89c356d08816a2f3ce1b5226))


Code Refactoring

* rename hseries to qsystem ([703](https://github.com/CQCL/tket2/issues/703)) ([1e90173](https://github.com/CQCL/tket2/commit/1e90173872e73c44a6321fe400ae6f2e4e115220))

tket2-py-v0.5.1
[0.5.1](https://github.com/CQCL/tket2/compare/tket2-py-v0.5.0...tket2-py-v0.5.1) (2024-11-29)


Bug Fixes

* Remove use of removed auto_rebase_pass ([708](https://github.com/CQCL/tket2/issues/708)) ([ea122a7](https://github.com/CQCL/tket2/commit/ea122a76444da0e94d745b02e2b475719cfd7bf7))

tket2-py-v0.5.0
[0.5.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.4.1...tket2-py-v0.5.0) (2024-11-11)


⚠ BREAKING CHANGES

* Removed `load_guppy_*` methods. Use Circuit::load_function_reader instead.

Features

* move extensions to auxillary package ([682](https://github.com/CQCL/tket2/issues/682)) ([dd78f9a](https://github.com/CQCL/tket2/commit/dd78f9a571905407bcf74131a54f4aefbca740c4))
* Track circuit extensions and read/write packages ([680](https://github.com/CQCL/tket2/issues/680)) ([5e87dd9](https://github.com/CQCL/tket2/commit/5e87dd94f216a87f4d27dee44d178578d40e7ace))


tket2-exts-v0.1.1
[0.1.1](https://github.com/CQCL/tket2/compare/tket2-exts-v0.1.0...tket2-exts-v0.1.1) (2024-11-05)


Documentation

* docstring capitalisation ([686](https://github.com/CQCL/tket2/issues/686)) ([e18f921](https://github.com/CQCL/tket2/commit/e18f921903953dc6a033ef697092f80a99a142b0))

tket2-exts-v0.1.0
Package for holding and versioning tket2 HUGR extensions

0.6.0

New Features

- *(badger)* `cx` and `rz` const functions and strategies for `LexicographicCostFunction` ([625](https://github.com/CQCL/tket2/pull/625))
- Add `tket2.rotation.from_halfturns_unchecked` op ([640](https://github.com/CQCL/tket2/pull/640))
- [**breaking**] update to hugr 0.13.0 ([645](https://github.com/CQCL/tket2/pull/645))
- Decode pytket op parameters ([644](https://github.com/CQCL/tket2/pull/644))
- re-export hugr crate ([652](https://github.com/CQCL/tket2/pull/652))
- Extract pytket parameters to input wires ([661](https://github.com/CQCL/tket2/pull/661))

Refactor

- [**breaking**] Remove deprecated exports ([662](https://github.com/CQCL/tket2/pull/662))

tket2-hseries-v0.6.0
New Features

- [**breaking**] `HSeriesPass` lowers `Tk2Op`s into `HSeriesOp`s ([602](https://github.com/CQCL/tket2/pull/602))
- [**breaking**] simplify angle extension in to a half turns rotation type ([611](https://github.com/CQCL/tket2/pull/611))

tket2-py-v0.4.1
[0.4.1](https://github.com/CQCL/tket2/compare/tket2-py-v0.4.0...tket2-py-v0.4.1) (2024-10-10)


Features

* Add `tket2.rotation.from_halfturns_unchecked` op ([640](https://github.com/CQCL/tket2/issues/640)) ([86ffe64](https://github.com/CQCL/tket2/commit/86ffe64fa455fc19a60999a7edb71803d615d77b))

tket2-eccs-v0.2.0
[0.2.0](https://github.com/CQCL/tket2/compare/tket2-eccs-v0.1.0...tket2-eccs-v0.2.0) (2024-10-10)


⚠ BREAKING CHANGES

* Recompiled eccs with `hugr 0.13.0`

tket2-py-v0.4.0
[0.4.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.3.0...tket2-py-v0.4.0) (2024-10-01)


⚠ BREAKING CHANGES

* "tket2.angle" extension replaced with "tket2.rotation" extension with rotation type and simplified set of operations.

Features

* `BadgerOptimiser.load_precompiled`, `BadgerOptimiser.compile_eccs` and `passes.badger_pass` now take an optional `cost_fn` parameter to specify the cost function to minimise. Supported values are `'cx'` (default behaviour) and `'rz'`. ([83ebfcb](https://github.com/CQCL/tket2/commit/83ebfcb9156fb5516f877155939062d11c7196d5))
* simplify angle extension in to a half turns rotation type ([611](https://github.com/CQCL/tket2/issues/611)) ([0723937](https://github.com/CQCL/tket2/commit/0723937a8aed69302359fbd2383a01a77adc6b36))


Bug Fixes

* Support hugr packages, fix the notebooks ([622](https://github.com/CQCL/tket2/issues/622)) ([1cf9dcb](https://github.com/CQCL/tket2/commit/1cf9dcb7ba80dd236916bcf86a1fa0f5459fd349))

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.