Skip to content

Commit

Permalink
chore(py): release tket2-py 0.4.0 (#594)
Browse files Browse the repository at this point in the history
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](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.
* "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](83ebfcb))
* simplify angle extension in to a half turns rotation type
([#611](#611))
([0723937](0723937))
* Support encoding float and sympy ops
([#618](#618))
([74dcbf7](74dcbf7))
* **tket2-hseries:** cli extension dumping
([#584](#584))
([abf292f](abf292f))


### Bug Fixes

* remove TryFrom for extension ops use `cast`
([#592](#592))
([5ca29af](5ca29af))
* Support hugr packages, fix the notebooks
([#622](#622))
([1cf9dcb](1cf9dcb))


### Documentation

* Add tket2-py module docstring
([#539](#539))
([8ef7a57](8ef7a57))


### Miscellaneous Chores

* Replace thiserror with derive_more 1.0
([#624](#624))
([2250ce7](2250ce7))

---
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 <[email protected]>
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2024
1 parent 83ebfcb commit ed18752
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
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"
}
18 changes: 18 additions & 0 deletions tket2-py/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# 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

* "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))


## [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.

0 comments on commit ed18752

Please sign in to comment.