Skip to content
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

Add support for using Expr values in the control-flow builder interface #10228

Closed
Tracked by #10239
jakelishman opened this issue Jun 7, 2023 · 0 comments · Fixed by #10400
Closed
Tracked by #10239

Add support for using Expr values in the control-flow builder interface #10228

jakelishman opened this issue Jun 7, 2023 · 0 comments · Fixed by #10400
Assignees
Labels
type: feature request New feature or request

Comments

@jakelishman
Copy link
Member

What should we add?

While #10224 is satisfied by opening up the typing of the manual-construction forms of the relevant control-flow operations, this is not the preferred manner for users to construct these.

The control-flow builder interface (with qc.if_test(...), etc) should have support for the condition or target as appropriate being an Expr value. This involves modifying the internal trackers and classical-resource resolvers in QuantumCircuit and the builder blocks to understand how to visit Expr types to find all used resources within them.

Depends on #10224.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant