Skip to content

chore: Update hugr dependency to 0.28#1580

Draft
maximilianruesch wants to merge 24 commits into
mainfrom
mr/chore/update-hugr-0.28
Draft

chore: Update hugr dependency to 0.28#1580
maximilianruesch wants to merge 24 commits into
mainfrom
mr/chore/update-hugr-0.28

Conversation

@maximilianruesch
Copy link
Copy Markdown
Collaborator

Prepares an update to the latest (unreleased) version of hugr, most importantly with the type-term unification.

@acl-cqc acl-cqc force-pushed the mr/chore/update-hugr-0.28 branch from 282ca52 to 7b1b875 Compare May 11, 2026 14:06
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 81.62544% with 52 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.50%. Comparing base (f5952d4) to head (966c46f).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tket-qsystem/src/extension/classical_compute.rs 49.05% 24 Missing and 3 partials ⚠️
tket/src/serialize/pytket/decoder/wires.rs 20.00% 11 Missing and 1 partial ⚠️
tket/src/passes/monomorphize.rs 77.77% 2 Missing ⚠️
tket/src/passes/replace_types/handlers.rs 77.77% 0 Missing and 2 partials ⚠️
tket/src/passes/replace_types/linearize.rs 77.77% 1 Missing and 1 partial ⚠️
tket-qsystem/src/extension/futures.rs 75.00% 1 Missing ⚠️
tket-qsystem/src/lower_drops.rs 66.66% 0 Missing and 1 partial ⚠️
tket-qsystem/src/replace_bools.rs 80.00% 1 Missing ⚠️
tket/src/circuit/extract_dfg.rs 0.00% 1 Missing ⚠️
tket/src/passes/replace_types.rs 95.83% 0 Missing and 1 partial ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1580      +/-   ##
==========================================
+ Coverage   85.44%   85.50%   +0.05%     
==========================================
  Files         184      184              
  Lines       28768    29065     +297     
  Branches    27567    27864     +297     
==========================================
+ Hits        24582    24851     +269     
- Misses       3055     3078      +23     
- Partials     1131     1136       +5     
Flag Coverage Δ
python 90.45% <ø> (ø)
qis-compiler 91.66% <ø> (ø)
rust 85.28% <81.62%> (+0.05%) ⬆️

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.

@cgh-qtnm
Copy link
Copy Markdown
Contributor

cgh-qtnm commented May 14, 2026

I believe I will need to merge #1521 into this PR to cleanly upgrade everything to the next HUGR version (due to breaking changes in Quantinuum/hugr#3026). Let me know when this PR is updated to 6742c53 and then I will retarget the debug info PR and get it ready to merge.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 20, 2026

Merging this PR will degrade performance by 19.82%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 3 regressed benchmarks
⏩ 3 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
hash_simple[1000] 8.4 ms 10.5 ms -19.42%
hash_simple[100] 871.4 µs 1,082.1 µs -19.47%
hash_simple[10] 109.1 µs 137.3 µs -20.57%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing mr/chore/update-hugr-0.28 (966c46f) with main (084c9de)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

jpacold pushed a commit to jpacold/tket2 that referenced this pull request May 23, 2026
…tor (Quantinuum#1608)

Replaces the deprecated `hugr.region_portgraph` call by using
`hugr.scheduling_graph` and eagerly collecting the toposorted node list.

This is necessary for Quantinuum#1580 since `region_portgraph` has been removed in
the update.

I'll follow up this PR with another deprecating `CommandsIterator`.
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