diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d8e626ad..69ea3514 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,4 +1,4 @@ { - "tket2-py": "0.3.0", + "tket2-py": "0.4.0", "tket2-eccs": "0.1.0" } \ No newline at end of file diff --git a/tket2-py/CHANGELOG.md b/tket2-py/CHANGELOG.md index 4d36bc06..83972ebd 100644 --- a/tket2-py/CHANGELOG.md +++ b/tket2-py/CHANGELOG.md @@ -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) diff --git a/tket2-py/examples/1-Getting-Started.ipynb b/tket2-py/examples/1-Getting-Started.ipynb index 5a540ed8..63be3482 100644 --- a/tket2-py/examples/1-Getting-Started.ipynb +++ b/tket2-py/examples/1-Getting-Started.ipynb @@ -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" ] }, { diff --git a/tket2-py/examples/2-Rewriting-Circuits.ipynb b/tket2-py/examples/2-Rewriting-Circuits.ipynb index 512b1f63..b1367ccd 100644 --- a/tket2-py/examples/2-Rewriting-Circuits.ipynb +++ b/tket2-py/examples/2-Rewriting-Circuits.ipynb @@ -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\"" ] diff --git a/tket2-py/pyproject.toml b/tket2-py/pyproject.toml index 6e5af4ff..f4219037 100644 --- a/tket2-py/pyproject.toml +++ b/tket2-py/pyproject.toml @@ -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" } diff --git a/tket2-py/tket2/__init__.py b/tket2-py/tket2/__init__.py index ca065ce8..2a2d55a7 100644 --- a/tket2-py/tket2/__init__.py +++ b/tket2-py/tket2/__init__.py @@ -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" diff --git a/uv.lock b/uv.lock index db059f7f..45f6243c 100644 --- a/uv.lock +++ b/uv.lock @@ -1,7 +1,5 @@ version = 1 requires-python = ">=3.10, <3.13" -resolution-markers = [ -] [manifest] members = [ @@ -782,7 +780,7 @@ wheels = [ [[package]] name = "tket2" -version = "0.3.0" +version = "0.4.0" source = { editable = "tket2-py" } dependencies = [ { name = "hugr" },