-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first commit for Bell decomposition * reck notebook * Reck seems to be working :D * clements nearly working * fix odd external phase index error * restore the matrix * put codes in decomposition_test.py and put the demo in the notebook Decomposition_Demo * sympy example for the beam splitter * fixed my name spelling XD * recompose now works in order gates are applied * added fig4 step of algorithm * use arctan2 to remove numpy overflow warnings on matrices with 0s in them * add some notations * visualize the circuit oK. NEXT STEP: write down the operator sMZI + show the Unitary of the program * new modifications on the compiler and ops * reconstruct the matrix is okkkk * added new compact decompositions * fix bugs to make decomposition run with engine * remove notebook from pull request * fix whitespace problem in code * check with CodeFactor * test random unitary on a squeezed state * test decomposition then recompose * added recompose files, fix triangular decomposition for matrix with 0s * lots of tests got modified by black * disable pylint warning * try to undo the black file changes * Update doc/requirements.txt Co-authored-by: Nicolas Quesada <nicolas@xanadu.ai> * Update doc/requirements.txt Co-authored-by: Nicolas Quesada <nicolas@xanadu.ai> * undo black on test file * add test for sMZgate on gaussian unitary compiler * adding back some new tests which i forgot to add when i cleaned up before * update changelog * add PR link * bracket * run black on decompositions.py * docstring correction * added some more context to changelog and added an example * updated changelog example to remove dependency on recompose function * move recompose functions to test file * Update strawberryfields/ops.py Co-authored-by: Josh Izaac <josh146@gmail.com> * move command code for interferometer to an independent private function * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * change Exception to ValueError * fixed cmd functions by adding reg to args * tidy some doc strings, delete recompose function which i thought i deleted earlier * tweaked docstrings, changed decomposition failure error from exception to assert * fixed assert params * docstring math fix * Update .github/CHANGELOG.md Co-authored-by: Josh Izaac <josh146@gmail.com> * Update .github/CHANGELOG.md Co-authored-by: Josh Izaac <josh146@gmail.com> * Update .github/CHANGELOG.md Co-authored-by: Josh Izaac <josh146@gmail.com> * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update tests/frontend/test_decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * fix the codecov/pylint warning for ops.py * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update strawberryfields/decompositions.py Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Yuan Yao <yuanyao@YuandeMacBook-Pro.local> Co-authored-by: Nicolas Quesada <nicolas@xanadu.ai> Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Yuan <sylvieyao502@gmail.com>
- Loading branch information
1 parent
2eae95d
commit df29b08
Showing
10 changed files
with
605 additions
and
4 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
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.