forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support control flow in BasisTranslator pass (Qiskit#7808)
* create two tests and 1st modification of unroller * if_else test, parameter test * black * linting * change shallow copy of control flow ops to not copy body * add special copy * debug * add `replace_blocks` method * minor update * clean debug code * linting fix bugs * minor commit * linting * don't recurse on run * linting * don't mutate basis in "_update_basis". * Update qiskit/transpiler/passes/basis/basis_translator.py Co-authored-by: Jake Lishman <[email protected]> * apply_translation returns bool * factor out "replace_node" function * linting * singledispatchmethod -> singledispatch for python 3.7 * black * fix indentation bug * linting * black * changed _get_example_gates following @jakelishman suggestion. Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4414c4e
commit f28f383
Showing
5 changed files
with
256 additions
and
105 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
Oops, something went wrong.