-
Notifications
You must be signed in to change notification settings - Fork 56
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
Sparse loop hafnian #245
Sparse loop hafnian #245
Conversation
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 1293 1315 +22
=========================================
+ Hits 1293 1315 +22
Continue to review full report at Codecov.
|
@ziofil : you will also need to update the CHANGELOG file. |
Co-authored-by: Nicolas Quesada <zeitus@gmail.com>
Co-authored-by: Nicolas Quesada <zeitus@gmail.com>
Co-authored-by: Nicolas Quesada <zeitus@gmail.com>
Co-authored-by: Nicolas Quesada <zeitus@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 👍 Mostly considered code quality, had some suggestions.
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -0,0 +1,296 @@ | |||
# Copyright 2019 Xanadu Quantum Technologies Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ziofil don’t forget to delete the .vscode
, .ipynb_checkpoints
, and .DS_STORE
directories before merging!
.vscode/settings.json
Outdated
{ | ||
"python.pythonPath": "/Users/filippo/miniforge3/envs/tf24/bin/python" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll need to delete this @ziofil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending removing of unnecesary files this is ready to merge
Co-authored-by: Nicolas Quesada <zeitus@gmail.com>
Thanks for catching this @josh146 ! You are right we need to update the algorithms docs to include this PR and also the previous one by Tim for banded matrices. |
Context: Loop hafnian computation does not exploit sparsity
Description of the Change: Loop hafnian computation now handles sparse matrices
Benefits: Fast computation of sparse matrices (few ms for 1000x1000 matrix with ~1000 non-zero entries)
Possible Drawbacks: Slower than default loop hafnian on matrices with fill factor above ~50%
Related GitHub Issues: None