Skip to content

Conversation

@orpuente-MS
Copy link
Contributor

@orpuente-MS orpuente-MS commented Jan 8, 2026

This PR adds a functor-constraints-solver pass to the OpenQASM compiler, to add just the necessary functors to each gate definition, instead of always adding the control and adjoint functors. This allows more flexibility when writing OpenQASM programs, since now we can call intrinsic subroutines inside gate definitions.

Kudos to @idavis for the solution. I just added the unit tests.

@orpuente-MS orpuente-MS added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main with commit 161070c Jan 12, 2026
18 checks passed
@orpuente-MS orpuente-MS deleted the iadavis/functor-solver branch January 12, 2026 20:34
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.

4 participants