Skip to content

feat!: Avoid eagerly cloning SerialCircuits when decoding from pytket #1048

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

Merged
merged 1 commit into from
Aug 18, 2025

Conversation

aborgna-q
Copy link
Collaborator

BREAKING CHANGE: TKETDecode now decodes SerialCircuits by reference instead of by value

@aborgna-q aborgna-q requested a review from ss2165 August 18, 2025 16:43
@aborgna-q aborgna-q requested a review from a team as a code owner August 18, 2025 16:43
@aborgna-q aborgna-q force-pushed the ab/decoder-trait-ref branch from 2138568 to 457095d Compare August 18, 2025 16:45
@aborgna-q aborgna-q force-pushed the ab/decoder-trait-ref branch from 457095d to b47fe7b Compare August 18, 2025 16:48
@@ -124,11 +124,6 @@ impl PytketDecoder for PreludeEmitter {
opgroup: Option<&str>,
decoder: &mut PytketDecoderContext<'h>,
) -> Result<DecodeStatus, PytketDecodeError> {
// Qubits, bits and parameters that will be used to register the node outputs.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by: Leftover comment

Copy link

codecov bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.32%. Comparing base (88c5c79) to head (b47fe7b).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
tket/src/serialize/pytket/decoder.rs 40.00% 0 Missing and 3 partials ⚠️
tket/src/serialize/pytket.rs 50.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1048      +/-   ##
==========================================
- Coverage   78.50%   78.32%   -0.19%     
==========================================
  Files         102      102              
  Lines       12615    12664      +49     
  Branches    12336    12385      +49     
==========================================
+ Hits         9904     9919      +15     
- Misses       2061     2094      +33     
- Partials      650      651       +1     
Flag Coverage Δ
python 81.00% <ø> (ø)
rust 78.26% <58.33%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aborgna-q aborgna-q enabled auto-merge August 18, 2025 16:52
@aborgna-q aborgna-q added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit 052ae9d Aug 18, 2025
19 of 20 checks passed
@aborgna-q aborgna-q deleted the ab/decoder-trait-ref branch August 18, 2025 17:00
@hugrbot hugrbot mentioned this pull request Aug 18, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 18, 2025
## 🤖 New release

* `tket`: 0.13.2 -> 0.14.0 (✓ API compatible changes)
* `tket-qsystem`: 0.18.1 -> 0.19.0 (✓ API compatible changes)

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

## `tket`

<blockquote>

##
[0.14.0](tket-v0.13.2...tket-v0.14.0)
- 2025-08-18

### New Features

- [**breaking**] Allow PytketTypeTranslators to translate nested types
([#1038](#1038))
- Define a wire tracker for the new pytket decoder
([#1036](#1036))
- [**breaking**] Reworked pytket decoder framework
([#1030](#1030))
- [**breaking**] Use qsystem encoder/decoders in tket-py
([#1041](#1041))
- [**breaking**] Avoid eagerly cloning SerialCircuits when decoding from
pytket ([#1048](#1048))

### Refactor

- [**breaking**] Rename tk2 encoder names to tket
([#1037](#1037))
</blockquote>

## `tket-qsystem`

<blockquote>

##
[0.19.0](tket-qsystem-v0.18.1...tket-qsystem-v0.19.0)
- 2025-08-18

### New Features

- Add emitters for tket-qsystem
([#1039](#1039))
- [**breaking**] Avoid eagerly cloning SerialCircuits when decoding from
pytket ([#1048](#1048))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
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