Skip to content

Conversation

@maximilianruesch
Copy link

@maximilianruesch maximilianruesch commented Dec 19, 2025

Migrates all metadata keys (that I know of) in tket to use the new metadata traits introduced in HUGR, and unifies them to be in one file. This includes some debugging metadata, unitary flags, etc. Finally, some trivial fixes / simplifications are added that come as a convenience of the new metadata system.

BREAKING CHANGE: Renamed the "unitary" key to contain the TKET prefix as is standard with all other metadata keys.

I would still argue that this is a refactor, even though a breaking refactor seems contradictional.

Related to Quantinuum/guppylang#1378

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.75%. Comparing base (31e2338) to head (2d3fe8e).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           ab/bump-hugr-0.25    #1328      +/-   ##
=====================================================
- Coverage              79.76%   79.75%   -0.01%     
=====================================================
  Files                    160      160              
  Lines                  20611    20607       -4     
  Branches               19645    19641       -4     
=====================================================
- Hits                   16440    16436       -4     
  Misses                  3191     3191              
  Partials                 980      980              
Flag Coverage Δ
python 92.92% <ø> (ø)
qis-compiler 100.00% <ø> (ø)
rust 79.09% <100.00%> (-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.

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