Skip to content

refactor: Move borrow array linearizer helper functions to tket and make them public - #1951

Open
hsemenenko wants to merge 2 commits into
mainfrom
hs/feat/replace-types-array-helper
Open

refactor: Move borrow array linearizer helper functions to tket and make them public#1951
hsemenenko wants to merge 2 commits into
mainfrom
hs/feat/replace-types-array-helper

Conversation

@hsemenenko

Copy link
Copy Markdown
Contributor

Closes #1950.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.66%. Comparing base (b6baef6) to head (9e1df0e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1951      +/-   ##
==========================================
+ Coverage   86.60%   86.66%   +0.05%     
==========================================
  Files         202      202              
  Lines       32644    32449     -195     
  Branches    31158    30963     -195     
==========================================
- Hits        28271    28121     -150     
+ Misses       3089     3045      -44     
+ Partials     1284     1283       -1     
Flag Coverage Δ
python 91.64% <ø> (ø)
qis-compiler 73.60% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@hsemenenko
hsemenenko marked this pull request as ready for review August 27, 2026 11:34
@hsemenenko
hsemenenko requested a review from a team as a code owner August 27, 2026 11:34
@maximilianruesch maximilianruesch changed the title refactor: Move borrow array linearizer helper functions to tket and make public refactor: Move borrow array linearizer helper functions to tket and make them public Aug 27, 2026
// `Futures`. Note we don't need to deal with static arrays as you cannot
// create static arrays of `Measurement`` values in Guppy.
replace_array_ops_requiring_copyable_bounds(lowerer);
register_linear_array_op_replacements(lowerer);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are you renaming the function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The previous name wasn't accurate. The function is not doing the replacement, but registering the replacement with the lowerer.

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.

[Refactor]: Make tket-qsystem borrow array ops helper functions for ReplaceTypes public

2 participants