-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 QuantumCircuit.compose
This relatively straightforwardly generalises the mapping of variables that already exists in `QuantumCircuit.compose` to be able to handle arbitrary `Expr` nodes as well. We must take care not to accidentally mutate the `Expr` nodes in the input circuit in the name of efficiency.
- Loading branch information
1 parent
539557d
commit 9d540d1
Showing
2 changed files
with
172 additions
and
32 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