Required prerequisites
Describe the bug
The PySynthCallableBlockArgs pass (and subsequent support in the runtime) requires that all quake.ApplyOp instructions are eliminated during compilation. However, the substitution fails when the indirectly invoked kernel is an argument to a device kernel.
Steps to reproduce the bug
A set of failing tests are added in #3489. After that merge, search for the link to this issue in the code base to find them.
Expected behavior
It should be possible to compile and run the examples in the tests.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response