Add support to QuantumCircuit
and DAGCircuit
methods involving Expr
expressions
#10233
Labels
Milestone
QuantumCircuit
and DAGCircuit
methods involving Expr
expressions
#10233
What should we add?
This forms a lot of the work needed for actual use of the initial classical-expression design document.
Depends on #10223 and #10224.
Contained issues
Expr
values in DAG/QC converters qiskit-terra#10226Expr
values toQuantumCircuit.compose
qiskit-terra#10227Expr
values toDAGCircuit.compose
qiskit-terra#10230Expr
values toDAGCircuit.replace_block_with_op
qiskit-terra#10231Expr
values toDAGCircuit.__eq__
qiskit-terra#10359Expr
toDAGCircuit.substitute_node_with_dag
qiskit-terra#10379Expr
toDAGCircuit.substitute_node
qiskit-terra#10380In addition to theDAGCircuit
methods that are explicitly called out above, Isubstitute_node_with_block
andsubstitute_node
both technically need updating with support forExpr
values. However, I think in practice that these operations do not make sense in the same way with control flow, and since we need to rework how theDAGCircuit
data structure works with control flow anyway, I don't think they will actually need touching.edit: in having done this, I think it's actually simple enough and meaningful to define the behaviour for
substitute_node_with_dag
andsubstitute_node
, and likely will be useful for PRs in the vein of #9580.The text was updated successfully, but these errors were encountered: