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.

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.

3 participants