-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a custom gate application for Toffoli in default.qubit (#1249)
* first draft implementation of _apply_toffoli * second draft _apply_toffoli * testing first pass with output * _apply_toffoli is working with forward test case * passing all test cases * deleted comments, working for full pytest. still need documentation * documentation done * fixed typo * Update CHANGELOG.md * replaced reshaping with stacking * converting to 4 qubit tests * still writing test cases and working on implementation, not ready for review yet * passing 21/24 4-qubit 3-permutations * passing all test cases, documented & ran black * ran black on test_default_qubit.py * wire ordering typo * added `cntrl_min = cntrl_max ^ 1` for readability Co-authored-by: antalszava <antalszava@gmail.com>
- Loading branch information
1 parent
fe5d1df
commit 8fe31ad
Showing
3 changed files
with
84 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
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