-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for controlled gates in python (#784)
Closes #723 Closes #751 Binds the controlled versions of: r1, rx, ry, rz to python New python unit tests for existing: cx, cy, cz, ch, cs, ct New python compiler tests for existing: cx, cy, cz, ch, cs, ct New python unit tests for r1, rx, ry, rz New python compiler tests for r1, rx, ry, rz Update existing python documentation and tests to reflect that we can now pass a register of controls to our c-gates What this PR doesn't address: A follow-up PR will handle the controlled SWAP implementation in the C++/python builder * everything except controlled swaps Signed-off-by: A.M. Santana <[email protected]> * forgot the parameter annotations Signed-off-by: A.M. Santana <[email protected]> * add keywords back to compiler test Signed-off-by: A.M. Santana <[email protected]> * swap implementation Signed-off-by: A.M. Santana <[email protected]> * remove swap work for separate pr Signed-off-by: A.M. Santana <[email protected]> * format compiler test Signed-off-by: A.M. Santana <[email protected]> * incorrect filecheck string Signed-off-by: A.M. Santana <[email protected]> * hard coded kernel names in filecheck Signed-off-by: A.M. Santana <[email protected]> * forgot to add new gates to api docs Signed-off-by: A.M. Santana <[email protected]> * replace references to doubles with floats in python docs Signed-off-by: A.M. Santana <[email protected]> --------- Signed-off-by: A.M. Santana <[email protected]>
- Loading branch information
1 parent
6835a5a
commit 03a98d4
Showing
7 changed files
with
717 additions
and
137 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
Oops, something went wrong.