Skip to content
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

chore(py): release tket2-py 0.4.0 #594

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tket2-py": "0.3.0",
"tket2-py": "0.4.0",
"tket2-eccs": "0.1.0"
}
32 changes: 32 additions & 0 deletions tket2-py/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

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


### ⚠ BREAKING CHANGES

* Made all errors `non_exhaustive`, and renamed some fields for clarity.
Copy link
Member

Choose a reason for hiding this comment

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

There a number of rust specific issues here, would be nice to clean them up

* "tket2.angle" extension replaced with "tket2.rotation" extension with rotation type and simplified set of operations.
* TryFrom implementations for extension op structs removed, use `cast`

### 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))
* Support encoding float and sympy ops ([#618](https://github.com/CQCL/tket2/issues/618)) ([74dcbf7](https://github.com/CQCL/tket2/commit/74dcbf757c1c2ae57bf313c61296df270167ee7d))
* **tket2-hseries:** cli extension dumping ([#584](https://github.com/CQCL/tket2/issues/584)) ([abf292f](https://github.com/CQCL/tket2/commit/abf292f82b858840eeb067394105dbc62feb3230))


### Bug Fixes

* remove TryFrom for extension ops use `cast` ([#592](https://github.com/CQCL/tket2/issues/592)) ([5ca29af](https://github.com/CQCL/tket2/commit/5ca29af3a7cc6ce6d8b3261b342015da94f4aab0))
* Support hugr packages, fix the notebooks ([#622](https://github.com/CQCL/tket2/issues/622)) ([1cf9dcb](https://github.com/CQCL/tket2/commit/1cf9dcb7ba80dd236916bcf86a1fa0f5459fd349))


### Documentation

* Add tket2-py module docstring ([#539](https://github.com/CQCL/tket2/issues/539)) ([8ef7a57](https://github.com/CQCL/tket2/commit/8ef7a5736294cf462b0694c235f0d10316c68f68))


### Miscellaneous Chores

* Replace thiserror with derive_more 1.0 ([#624](https://github.com/CQCL/tket2/issues/624)) ([2250ce7](https://github.com/CQCL/tket2/commit/2250ce76f3019deee1d7e1206aa7843a745fe988))

## [0.3.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.2.1...tket2-py-v0.3.0) (2024-09-04)


Expand Down
4 changes: 2 additions & 2 deletions tket2-py/examples/1-Getting-Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"\n",
"# Uncomment one of these lines depending on whether you are using a published\n",
"# version of tket2 or a local build.\n",
"#!uv pip install \"tket2>=0.4.0,<0.5\"\n",
"!cd ../../ && maturin develop --quiet --uv"
"!uv pip install \"tket2>=0.4.0,<0.5\"\n",
"#!cd ../../ && maturin develop --quiet --uv"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tket2-py/examples/2-Rewriting-Circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"source": [
"!uv pip install \\\n",
" \"pytket>=1.30.0,<2\" \\\n",
" \"tket2>=0.3.0,<0.4\" \\\n",
" \"tket2>=0.4.0,<0.5\" \\\n",
" \"guppylang>=0.10.0,<0.11\" \\\n",
" \"hugr>=0.8.1,<0.9\""
]
Expand Down
2 changes: 1 addition & 1 deletion tket2-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tket2"
version = "0.3.0"
version = "0.4.0"
requires-python = ">=3.10,<3.13"
description = "Quantinuum's TKET2 Quantum Compiler"
license = { file = "LICENCE" }
Expand Down
2 changes: 1 addition & 1 deletion tket2-py/tket2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

# This is updated by our release-please workflow, triggered by this
# annotation: x-release-please-version
__version__ = "0.3.0"
__version__ = "0.4.0"
4 changes: 1 addition & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading