0.14.0 (2024-12-19)
⚠ BREAKING CHANGES
- Lists in
py(...)
expressions are now turned into Guppy arrays instead of lists. dirty_qubit
function removed- measure_return renamed to
project_z
Features
- add
maybe_qubit
stdlib function (#705) (a49f70e), closes #627 - add measure_array and discard_array quantum function (#710) (3ad49ff)
- Add method to load pytket circuit without function stub (#712) (ee1e3de)
- Add Option type to standard library (#696) (45ea6b7)
- Allow generic nat args in statically sized ranges (#706) (f441bb8), closes #663
- Array comprehension (#613) (fdc0526), closes #614 #616 #612
- Implicit coercion of numeric types (#702) (df4745b), closes #701
- Load
pytket
circuit as a function definition (#672) (b21b7e1) - Make arrays iterable (#632) (07b9871)
- qsystem std functions with updated primitives (#679) (b0f041f)
- remove dirty_qubit (#698) (78e366b)
- Turn py expression lists into arrays (#697) (d52a00a)
- Unpacking assignment of iterable types with static size (#688) (602e243)
- update to hugr 0.10 and tket2 0.6 (#725) (63ea7a7)
Bug Fixes
- Accept non-negative int literals and py expressions as nats (#708) (a93d4fe), closes #704
- Allow borrowing inside comprehensions (#723) (02b6ab0), closes #719
- Detect unsupported default arguments (#659) (94ac7e3), closes #658
- docs build command (#729) (471b74c)
- Ensure
int
s can be treated as booleans (#709) (6ef6d60), closes #681 - Fix array execution bugs (#731) (0f6ceaa)
- Fix implicit modules in IPython shells (#662) (4ecb5f2), closes #661
- Properly report error for unsupported constants (#724) (d0c2da4), closes #721
- Properly report errors for unsupported expressions (#692) (7f24264), closes #691
- remove use of deprecated Ellipsis (#699) (b819a84)