Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: non-locking python conversion calls #25

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

aborgna-q
Copy link
Collaborator

from_tket1 and to_tket1 now receive the Global Interpreter Lock (GIL) as a parameter rather than adquiring it internally.
This is more composable in cases where we want to reuse the GIL.

The locking methods are kept as utility functions.

BREAKING CHANGE: Renamed SerialCircuit::to_tket1 to to_tket1_with_gil, and _from_tket1 to from_tket1_with_gil.

`from_tket1` and `to_tket1` now receive the Global Interpreter Lock (GIL)
as a parameter rather than adquiring it internally.

The locking methods are kept as utility functions.

BREAKING CHANGE: Renamed `SerialCircuit::to_tket1` to `to_tket1_with_gil`, and `_from_tket1` to `from_tket1_with_gil`.
@aborgna-q aborgna-q requested a review from ss2165 November 9, 2023 17:00
@aborgna-q aborgna-q added this pull request to the merge queue Nov 9, 2023
Merged via the queue into main with commit 494f0c5 Nov 9, 2023
5 checks passed
@aborgna-q aborgna-q deleted the feat/serial-conversion-gil branch November 9, 2023 17:07
@github-actions github-actions bot mentioned this pull request Nov 9, 2023
github-merge-queue bot pushed a commit that referenced this pull request Nov 10, 2023
## 🤖 New release
* `tket-json-rs`: 0.2.0 -> 0.3.0 (⚠️ API breaking changes)

### ⚠️ `tket-json-rs` breaking changes

```
--- failure inherent_method_missing: pub method removed or renamed ---

Description:
A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/inherent_method_missing.ron

Failed in:
  SerialCircuit::_from_tket1, previously in file /tmp/.tmpCcfyh4/tket-json-rs/src/pytket.rs:10

--- failure method_parameter_count_changed: pub method parameter count changed ---

Description:
A publicly-visible method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#fn-change-arity
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/method_parameter_count_changed.ron

Failed in:
  tket_json_rs::circuit_json::SerialCircuit::to_tket1 now takes 2 parameters instead of 1, in /tmp/.tmpvYRSl5/tket-json-rs/src/pytket.rs:22
```

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## 0.3.0 (2023-11-09)

### Features

- [**breaking**] Non-locking python conversion calls
([#25](#25))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants