-
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 control flow support to UnitarySynthesis pass (#8565)
* add control flow support to UnitarySynthesis pass * Refactor control-flow handling to avoid recomputing setup The `UnitarySynthesis` runner does rather non-trivial setup of its internal plugin class before beginning the run. We don't want to re-initialise the plugin on each run, nor pay the time penalty for the setup. Instead, we refactor the actual "run" loop into its own function, and use that only for the recursion. Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: Kevin Krsulich <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
594ad01
commit c7294d5
Showing
2 changed files
with
69 additions
and
5 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