Add support for using Expr
values in the control-flow builder interface
#10228
Labels
type: feature request
New feature or request
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 thecondition
ortarget
as appropriate being anExpr
value. This involves modifying the internal trackers and classical-resource resolvers inQuantumCircuit
and the builder blocks to understand how to visitExpr
types to find all used resources within them.Depends on #10224.
The text was updated successfully, but these errors were encountered: