-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircBox option to prevent compiler modifications inside the box #1082
Comments
This seems a nice thing to be able to do. But it would need special-casing in the predicates system; e.g. a rebase pass would no longer guarantee that the circuit was in a specific gate set afterwards. |
To avoid that problem, would it be enough to just have the rebase pass check that the "untouchable" box only contains allowed gates. If it doesn't, fail compilation? |
Yes that would work. |
Actually, isn't the description here the wrong way round? Because right now, compilation passes don't go inside boxes: if you want to run a pass on the contents of a |
This issue has been automatically marked as stale. |
Often users want to write precise target-aware circuits and want the compiler to not modify them, it would be useful to offer this functionality in a composable way.
Inspired by braket's "verbatim box" I propose adding an option to circbox which signals to passes to skip the internals.
The text was updated successfully, but these errors were encountered: