Skip to content

feat: upgrade to hugr v0.27.1#1568

Merged
acl-cqc merged 13 commits into
mainfrom
acl/hugr-0.27.1plus
May 11, 2026
Merged

feat: upgrade to hugr v0.27.1#1568
acl-cqc merged 13 commits into
mainfrom
acl/hugr-0.27.1plus

Conversation

@acl-cqc
Copy link
Copy Markdown
Contributor

@acl-cqc acl-cqc commented May 5, 2026

Mostly this was straightforward, with only scope.rs requiring a switch from portgraph algorithms to petgraph.

That is, until command.rs and CommandIterator, which raise many problems with SchedulingGraph. I tried a few other approaches simulating API changes to Hugr but these only worked if Hugr were to expose many more details of the internals of SchedulingGraph than desired. However, Circuit and CommandIterator are planned for removal anyway, so instead I've left CommandIterator using the deprecated region_portgraph with a comment about the various things we can do when region_portgraph is removed (if CommandIterator hasn't been removed first).

@acl-cqc acl-cqc requested a review from a team as a code owner May 5, 2026 21:50
@acl-cqc acl-cqc requested a review from cqc-alec May 5, 2026 21:50
@acl-cqc acl-cqc marked this pull request as draft May 5, 2026 21:50
@acl-cqc acl-cqc removed the request for review from cqc-alec May 5, 2026 21:50
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

❌ Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.04%. Comparing base (4fc5a25) to head (7b1a257).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
tket/src/portmatching/matcher.rs 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1568      +/-   ##
==========================================
+ Coverage   83.70%   84.04%   +0.34%     
==========================================
  Files         188      188              
  Lines       29036    29121      +85     
  Branches    27932    27995      +63     
==========================================
+ Hits        24304    24475     +171     
+ Misses       3569     3473      -96     
- Partials     1163     1173      +10     
Flag Coverage Δ
python 92.39% <ø> (-0.04%) ⬇️
qis-compiler 91.66% <ø> (ø)
rust 83.71% <95.65%> (+0.35%) ⬆️

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.

@acl-cqc acl-cqc marked this pull request as ready for review May 6, 2026 14:59
@acl-cqc acl-cqc changed the title feat: upgrade to hugr v0.27.1...plus a bit feat: upgrade to hugr v0.27.1 May 6, 2026
@acl-cqc acl-cqc requested a review from cqc-alec May 6, 2026 15:03
@acl-cqc acl-cqc enabled auto-merge May 11, 2026 10:25
@acl-cqc acl-cqc added this pull request to the merge queue May 11, 2026
Merged via the queue into main with commit 274c4bc May 11, 2026
26 checks passed
@acl-cqc acl-cqc deleted the acl/hugr-0.27.1plus branch May 11, 2026 10:31
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