Skip to content

Commit a613068

Browse files
hugrbotss2165
andauthored
chore(main): release 0.17.0 (#812)
🤖 I have created a release *beep* *boop* --- ## [0.17.0](v0.16.0...v0.17.0) (2025-03-18) ### ⚠ BREAKING CHANGES * `load_pytket` takes arrays by default (pass `use_arrays=False` for qubit arguments) * `Option` is now a builtin type. * `angle.{__mul__, __rmul__, __truediv__, __rtruediv__` now take a `float` instead of an `int`. ### Features * add `get_current_shot()` to qsystem module ([#806](#806)) ([3632ec6](3632ec6)) * add `Option.unwrap_nothing()` method ([#829](#829)) ([abb1aa1](abb1aa1)), closes [#810](#810) * add barrier operation to builtins ([#849](#849)) ([cf0bcfb](cf0bcfb)) * Allow array arguments to `load_pytket` ([#858](#858)) ([37b8b80](37b8b80)) * Allow explicit application of type arguments ([#821](#821)) ([8f90c04](8f90c04)), closes [#770](#770) * Generalise scalar angle operations to float ([#824](#824)) ([d3f5c7f](d3f5c7f)) * Implement `float` to `int` and `nat` casts ([#831](#831)) ([b56d66c](b56d66c)), closes [#794](#794) * **qsystem:** add Random number generation module ([08fbf47](08fbf47)) * Switch to improved iterator protocol ([#833](#833)) ([348dfdc](348dfdc)) ### Bug Fixes * Correctly handle assignments of arrays in control-flow ([#845](#845)) ([32ded02](32ded02)), closes [#844](#844) * Define `len` of arrays using Guppy ([#863](#863)) ([6868ff6](6868ff6)), closes [#804](#804) * Fix array comprehensions with generic element type ([#865](#865)) ([50df0db](50df0db)), closes [#864](#864) * Fix compiler diagnostics when calling `check` instead of `compile` ([#854](#854)) ([9993338](9993338)) * Fix diagnostic spans for indented code ([#856](#856)) ([d9fc9fd](d9fc9fd)), closes [#852](#852) * Fix error message for conditional shadowing of global variables ([#815](#815)) ([bdaae11](bdaae11)), closes [#772](#772) * Fix linearity checking for array copies ([#841](#841)) ([d9b085f](d9b085f)), closes [#838](#838) * Fix mutation of nested arrays ([#839](#839)) ([ffb64f9](ffb64f9)) * Fix rendering of line breaks in diagnostics ([#819](#819)) ([75efd22](75efd22)), closes [#818](#818) * Prevent reordering of operations with side-effects ([#855](#855)) ([75eb441](75eb441)) ### Documentation * Fix API docs build ([#843](#843)) ([cc1e90c](cc1e90c)) --- 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: Seyon Sivarajah <[email protected]>
1 parent 37b8b80 commit a613068

File tree

5 files changed

+44
-4
lines changed

5 files changed

+44
-4
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.16.0"
2+
".": "0.17.0"
33
}

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## [0.17.0](https://github.com/CQCL/guppylang/compare/v0.16.0...v0.17.0) (2025-03-18)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* `load_pytket` takes arrays by default (pass `use_arrays=False` for qubit arguments)
9+
* `Option` is now a builtin type.
10+
* `angle.{__mul__, __rmul__, __truediv__, __rtruediv__` now take a `float` instead of an `int`.
11+
12+
### Features
13+
14+
* add `get_current_shot()` to qsystem module ([#806](https://github.com/CQCL/guppylang/issues/806)) ([3632ec6](https://github.com/CQCL/guppylang/commit/3632ec606f44ee57d5ce484ca019cc683570156f))
15+
* add `Option.unwrap_nothing()` method ([#829](https://github.com/CQCL/guppylang/issues/829)) ([abb1aa1](https://github.com/CQCL/guppylang/commit/abb1aa1707e94cbbce82a74b3d0c388c252483ef)), closes [#810](https://github.com/CQCL/guppylang/issues/810)
16+
* add barrier operation to builtins ([#849](https://github.com/CQCL/guppylang/issues/849)) ([cf0bcfb](https://github.com/CQCL/guppylang/commit/cf0bcfb761cf0a4ff0bab931c49c6d06fb9f4778))
17+
* Allow array arguments to `load_pytket` ([#858](https://github.com/CQCL/guppylang/issues/858)) ([37b8b80](https://github.com/CQCL/guppylang/commit/37b8b80db373b87809a0303af24b7dade7161396))
18+
* Allow explicit application of type arguments ([#821](https://github.com/CQCL/guppylang/issues/821)) ([8f90c04](https://github.com/CQCL/guppylang/commit/8f90c046ac41597b4b0bfdf118648553f1bd7dae)), closes [#770](https://github.com/CQCL/guppylang/issues/770)
19+
* Generalise scalar angle operations to float ([#824](https://github.com/CQCL/guppylang/issues/824)) ([d3f5c7f](https://github.com/CQCL/guppylang/commit/d3f5c7fa8514537c69293b9b422400f71f9e73b7))
20+
* Implement `float` to `int` and `nat` casts ([#831](https://github.com/CQCL/guppylang/issues/831)) ([b56d66c](https://github.com/CQCL/guppylang/commit/b56d66c25ec6889619def8cf4f417fc3bdf19054)), closes [#794](https://github.com/CQCL/guppylang/issues/794)
21+
* **qsystem:** add Random number generation module ([08fbf47](https://github.com/CQCL/guppylang/commit/08fbf47230e7484795c7ed284d586170c3b6fa79))
22+
* Switch to improved iterator protocol ([#833](https://github.com/CQCL/guppylang/issues/833)) ([348dfdc](https://github.com/CQCL/guppylang/commit/348dfdc38ffd3aed6d0423b7fa0d28e340d95cfd))
23+
24+
25+
### Bug Fixes
26+
27+
* Correctly handle assignments of arrays in control-flow ([#845](https://github.com/CQCL/guppylang/issues/845)) ([32ded02](https://github.com/CQCL/guppylang/commit/32ded02c216b3fcad1c0da964f4d15e78c887e62)), closes [#844](https://github.com/CQCL/guppylang/issues/844)
28+
* Define `len` of arrays using Guppy ([#863](https://github.com/CQCL/guppylang/issues/863)) ([6868ff6](https://github.com/CQCL/guppylang/commit/6868ff6b9cc7c7783356bc80aeb5715063b2060a)), closes [#804](https://github.com/CQCL/guppylang/issues/804)
29+
* Fix array comprehensions with generic element type ([#865](https://github.com/CQCL/guppylang/issues/865)) ([50df0db](https://github.com/CQCL/guppylang/commit/50df0db09883326cf077c8fbffbea42a7f6231a8)), closes [#864](https://github.com/CQCL/guppylang/issues/864)
30+
* Fix compiler diagnostics when calling `check` instead of `compile` ([#854](https://github.com/CQCL/guppylang/issues/854)) ([9993338](https://github.com/CQCL/guppylang/commit/9993338f8f14474c91f8dcb3cf9479f6652db00b))
31+
* Fix diagnostic spans for indented code ([#856](https://github.com/CQCL/guppylang/issues/856)) ([d9fc9fd](https://github.com/CQCL/guppylang/commit/d9fc9fd01125be2da20d2c622f402b2f41a5dfb5)), closes [#852](https://github.com/CQCL/guppylang/issues/852)
32+
* Fix error message for conditional shadowing of global variables ([#815](https://github.com/CQCL/guppylang/issues/815)) ([bdaae11](https://github.com/CQCL/guppylang/commit/bdaae11c3035d7691a1e2ed2e731f2d8764be49d)), closes [#772](https://github.com/CQCL/guppylang/issues/772)
33+
* Fix linearity checking for array copies ([#841](https://github.com/CQCL/guppylang/issues/841)) ([d9b085f](https://github.com/CQCL/guppylang/commit/d9b085f5dd08e9bc3514b18ede5ecfdb065c760e)), closes [#838](https://github.com/CQCL/guppylang/issues/838)
34+
* Fix mutation of nested arrays ([#839](https://github.com/CQCL/guppylang/issues/839)) ([ffb64f9](https://github.com/CQCL/guppylang/commit/ffb64f95b0fdb3b118c444a90184120eb7864230))
35+
* Fix rendering of line breaks in diagnostics ([#819](https://github.com/CQCL/guppylang/issues/819)) ([75efd22](https://github.com/CQCL/guppylang/commit/75efd229fcb11514815bfa971d58e323eaaf68eb)), closes [#818](https://github.com/CQCL/guppylang/issues/818)
36+
* Prevent reordering of operations with side-effects ([#855](https://github.com/CQCL/guppylang/issues/855)) ([75eb441](https://github.com/CQCL/guppylang/commit/75eb4416f8cd19be0cfa7e820e9ee7bdd28571bb))
37+
38+
39+
### Documentation
40+
41+
* Fix API docs build ([#843](https://github.com/CQCL/guppylang/issues/843)) ([cc1e90c](https://github.com/CQCL/guppylang/commit/cc1e90c271cc014e7e7fa7392e1a67025753f162))
42+
343
## [0.16.0](https://github.com/CQCL/guppylang/compare/v0.15.0...v0.16.0) (2025-02-19)
444

545

guppylang/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
# This is updated by our release-please workflow, triggered by this
99
# annotation: x-release-please-version
10-
__version__ = "0.16.0"
10+
__version__ = "0.17.0"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "guppylang"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
requires-python = ">=3.10,<4"
55
description = "Pythonic quantum-classical programming language"
66
license = { file = "LICENCE" }

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)