Skip to content

Conversation

@ss2165
Copy link
Member

@ss2165 ss2165 commented May 6, 2025

No description provided.

@ss2165 ss2165 requested a review from a team as a code owner May 6, 2025 14:16
@ss2165 ss2165 requested review from jake-arkinstall and zrho and removed request for jake-arkinstall and zrho May 6, 2025 14:16
@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

Attention: Patch coverage is 81.96721% with 11 lines in your changes missing coverage. Please review.

Project coverage is 82.17%. Comparing base (8e2c0dd) to head (2e8ffb8).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
hugr-core/src/hugr/patch/insert_cut.rs 81.96% 10 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2153      +/-   ##
==========================================
- Coverage   82.17%   82.17%   -0.01%     
==========================================
  Files         227      228       +1     
  Lines       39904    39965      +61     
  Branches    36003    36064      +61     
==========================================
+ Hits        32790    32840      +50     
- Misses       5284     5294      +10     
- Partials     1830     1831       +1     
Flag Coverage Δ
python 85.64% <ø> (ø)
rust 81.79% <81.96%> (+<0.01%) ⬆️

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.

@ss2165 ss2165 force-pushed the ss/insert-cut branch 2 times, most recently from 0c9390f to ec16c63 Compare May 6, 2025 14:45
@aborgna-q aborgna-q force-pushed the release-rs-v0.16.0 branch from 56c110c to 9cd24ff Compare May 7, 2025 10:54
Base automatically changed from release-rs-v0.16.0 to main May 7, 2025 11:02
@ss2165 ss2165 added this to the hugr-rs 0̶.̶1̶6̶ 0.20 milestone May 7, 2025
pub parent: N,
/// The targets of the existing edges.
pub targets: Vec<(N, IncomingPort)>,
/// The HUGR to insert, must have DFG parent.
Copy link
Contributor

Choose a reason for hiding this comment

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

must have DFG root

@ss2165 ss2165 enabled auto-merge May 8, 2025 07:27
@ss2165 ss2165 added this pull request to the merge queue May 8, 2025
Merged via the queue into main with commit 1234cef May 8, 2025
27 checks passed
@ss2165 ss2165 deleted the ss/insert-cut branch May 8, 2025 07:36
This was referenced May 8, 2025
github-merge-queue bot pushed a commit to CQCL/tket2 that referenced this pull request May 19, 2025
#866)

Closes #853
Closes #865



~Blocked by hugr release including
[InsertCut](CQCL/hugr#2153

Barriers exist across arbitrary types.
To make sure scheduling respects this at runtime, when lowering we
follow it with a `RuntimeBarrier` across a generically sized array of
qubits.


To do this the lowering unpacks qubits from the barrier type row,
applies the runtime barrier, then repacks them in to the original types.

Arrays and tuples containing qubits are recursively unpacked.

Sums of qubits are ignored except in the special case of arrays of
option of qubits, wherein it is assumed all qubits are present (when
generated by guppy this is guaranteed).


For each concrete container type a temporary extension is used to add
unpacking and re-packing operations. These are later lowered to calls to
functions that implement the operations.


BREAKING CHANGE: `QSystemOpBuilder` gained supertrait `ArrayOpBuilder`

---------

Co-authored-by: Douglas Wilson <[email protected]>
Co-authored-by: Mark Koch <[email protected]>
Co-authored-by: Agustín Borgna <[email protected]>
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.

3 participants