-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Expr
support to DAGCircuit.substitute_node_with_dag
Most of this was automatically upgraded during the switchover of `DAGCircuit.compose` to use the same general variable-remapping forms that `QuantumCircuit.compose` does. The remaining piece is to skip attempting to propagate the condition onto the subnodes; that is legacy behaviour from an old model of treating conditions as some "extra" to an operation, and not an inherent component of what was being applied.
1 parent
ac942ee
commit 0797e90
Showing
2 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters