-
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
supprt to DAGCircuit
simple constructors
This adds support to the `DAGCircuit` builder methods `apply_operation_front` and `apply_operation_back`, and consequently to the converter `circuit_to_dag`. This commit does not directly enhance `DAGCircuit.compose`, which will come later. The principal change is that `_bits_in_condition` is modified to the more general `_bits_in_operation`, which now accounts for both a `condition` (if set) and any additional fields from a `target` if the operation is a suitable `ControlFlowOp`. This has the effect of upgrading the converters into the `SabreDAG` format as well, but nothing is done to change the Sabre algorithms themselves.
- Loading branch information
1 parent
d0a2bea
commit dce6cdd
Showing
5 changed files
with
157 additions
and
38 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
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
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