Skip to content

Commit ed18752

Browse files
hugrbotaborgna-q
hugrbot
andauthored
chore(py): release tket2-py 0.4.0 (#594)
🤖 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]>
1 parent 83ebfcb commit ed18752

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"tket2-py": "0.3.0",
2+
"tket2-py": "0.4.0",
33
"tket2-eccs": "0.1.0"
44
}

tket2-py/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## [0.4.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.3.0...tket2-py-v0.4.0) (2024-10-01)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* "tket2.angle" extension replaced with "tket2.rotation" extension with rotation type and simplified set of operations.
9+
10+
### Features
11+
12+
* `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))
13+
* 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))
14+
15+
16+
### Bug Fixes
17+
18+
* Support hugr packages, fix the notebooks ([#622](https://github.com/CQCL/tket2/issues/622)) ([1cf9dcb](https://github.com/CQCL/tket2/commit/1cf9dcb7ba80dd236916bcf86a1fa0f5459fd349))
19+
20+
321
## [0.3.0](https://github.com/CQCL/tket2/compare/tket2-py-v0.2.1...tket2-py-v0.3.0) (2024-09-04)
422

523

tket2-py/examples/1-Getting-Started.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"\n",
5656
"# Uncomment one of these lines depending on whether you are using a published\n",
5757
"# version of tket2 or a local build.\n",
58-
"#!uv pip install \"tket2>=0.4.0,<0.5\"\n",
59-
"!cd ../../ && maturin develop --quiet --uv"
58+
"!uv pip install \"tket2>=0.4.0,<0.5\"\n",
59+
"#!cd ../../ && maturin develop --quiet --uv"
6060
]
6161
},
6262
{

tket2-py/examples/2-Rewriting-Circuits.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"source": [
3030
"!uv pip install \\\n",
3131
" \"pytket>=1.30.0,<2\" \\\n",
32-
" \"tket2>=0.3.0,<0.4\" \\\n",
32+
" \"tket2>=0.4.0,<0.5\" \\\n",
3333
" \"guppylang>=0.10.0,<0.11\" \\\n",
3434
" \"hugr>=0.8.1,<0.9\""
3535
]

tket2-py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tket2"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
requires-python = ">=3.10,<3.13"
55
description = "Quantinuum's TKET2 Quantum Compiler"
66
license = { file = "LICENCE" }

tket2-py/tket2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
# This is updated by our release-please workflow, triggered by this
1818
# annotation: x-release-please-version
19-
__version__ = "0.3.0"
19+
__version__ = "0.4.0"

uv.lock

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)