Latest Results
fix: bug in hugr building when `control` modifiers are nested (#1550)
close #1537
The bug was
in [`modify_signature`](https://github.com/Quantinuum/tket2/blob/07a0fdbed9454b17faf60707fb7623e0b71eb5a6/tket/src/modifier/modifier_resolver.rs#L703):
it prepended each accumulated control array with repeated insert(0,
...), which reversed nested control groups. For accumulated controls
like [2, 1], the function signature became [array(1), array(2),
...] while the caller and generated unpack nodes expected [array(2),
array(1), ...].
I changed it to build the full control prefix once and splice it at the
front, preserving accumulation order.
Deleted old `ctrl_on_call` test outputs (.hugr, .npy)
---------
Co-authored-by: Agustín Borgna <agustin.borgna@quantinuum.com>
Co-authored-by: Copilot <copilot@github.com> Latest Branches
0%
na/1551-feature-cleanup-the-modifier-pass-code 0%
release-plz-2026-04-07T10-20-26Z 0%
na/fix-multiple-controller-bug © 2026 CodSpeed Technology