rigetti / quil-rs

Quil Parser & Program Builder
https://rigetti.github.io/quil-rs/
Apache License 2.0
18 stars 9 forks source link

feat: allow using instruction handler when simplifying program #395

Closed Shadow53 closed 1 week ago

Shadow53 commented 1 week ago

Users of quil-rs can use InstructionHandler to override how instructions are associated with frames, but this is not considered by Program::into_simplified. This PR adds a method, InstructionHandler::simplify_program, that uses the frame matching of InstructionHandler to determine which frames to retain in the program.

github-actions[bot] commented 1 week ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-09-04 21:15 UTC