Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update decompositions.py and readds the Takagi decomposition #363

Merged
merged 18 commits into from
May 9, 2023

Conversation

nquesada
Copy link
Collaborator

@nquesada nquesada commented Apr 28, 2023

Simplifies the construction of blochmessiah and adds takagi with a very simple elegant implementation derived from http://info.phys.unm.edu/~caves/courses/qinfo-s17/lectures/polarsingularAutonne.pdf .

Note that this implementation of takagi should replace the implementation of takagi in strawberryfields here.

More generally, bloch_messiah and williamson should not remain in sf and instead just be imported from here.

@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #363 (531e8be) into master (d1b4922) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #363   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         1891      1927   +36     
=========================================
+ Hits          1891      1927   +36     
Impacted Files Coverage Δ
thewalrus/decompositions.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1b4922...531e8be. Read the comment docs.

Copy link
Collaborator

@ziofil ziofil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nquesada nquesada changed the title Update decompositions.py Update decompositions.py and readds the Takagi decomposition May 3, 2023
@nquesada nquesada requested review from ziofil and sduquemesa May 3, 2023 20:23
@sduquemesa
Copy link
Contributor

Failing doc build is fixed by merging #364

@nquesada nquesada merged commit 6c4de00 into master May 9, 2023
@nquesada nquesada deleted the nquesada-patch-1 branch May 9, 2023 20:35
nquesada added a commit that referenced this pull request May 31, 2023
* Refactor sphinx config and bump docs python version (#364)

* fix [.readthedocs.yml] - increase python version

Fixes urllib3 v2.0 not supporting versions <1.1.1 of openSSL. See readthedocs/readthedocs.org#10290.

* fix [.readthedocs.yml] - set container image and python version

* unpin doc requirements

* Update decompositions.py and readds the Takagi decomposition (#363)

* Update decompositions.py

* New takagi

* New takagi

* Passes black

* Simplifies blochmessiah

* Simplifies blochmessiah

* Found a case that breaks Takagi

* Fixes all the tests

* Fixes issues found by the linter

* Adds extra test

* Adds extra test

* dummy

* dummy

* fix [.readthedocs.yml] - increase python version

Fixes urllib3 v2.0 not supporting versions <1.1.1 of openSSL. See readthedocs/readthedocs.org#10290.

* fix [.readthedocs.yml] - set container image and python version

* unpin doc requirements

* Revert "fix [.readthedocs.yml] - increase python version"

This reverts commit db0e8d7.

---------

Co-authored-by: Nicolas Quesada <nquesada@pop-os.localdomain>
Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com>

* Dummy commit

* Passes black

* linting

* Updates module summary

---------

Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com>
Co-authored-by: Nicolas Quesada <nquesada@pop-os.localdomain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants