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

Add python code for the labudde algorithm #304

Merged
merged 27 commits into from
Dec 6, 2021
Merged

Conversation

trevor-vincent
Copy link
Contributor

Context:

There is C++ code for the labudde characteristic polynomial algorithm but no python code for it.

Description of the Change:

Adds python code for the labudde characteristic polynomial algorithm

Benefits:

Power traces and characteristic polynomials can be computed using the labudde algorithm using python.

Possible Drawbacks:

None

Related GitHub Issues:

None

@codecov
Copy link

codecov bot commented Nov 23, 2021

Codecov Report

Merging #304 (2407b86) into master (321b7d1) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #304   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        22    +1     
  Lines         1456      1469   +13     
=========================================
+ Hits          1456      1469   +13     
Impacted Files Coverage Δ
thewalrus/labudde.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

@trevor-vincent trevor-vincent marked this pull request as draft November 23, 2021 23:34
@thisac
Copy link
Contributor

thisac commented Nov 23, 2021

sc-11656

@trevor-vincent trevor-vincent marked this pull request as ready for review December 1, 2021 23:10
Copy link
Contributor

@thisac thisac left a comment

Choose a reason for hiding this comment

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

Thanks Trevor! Mainly checked the docstrings (and updated them slightly), but I haven't checked the implementations themselves. Mainly minor things regarding docstring formats, etc., but otherwise looked great. 💯

thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/tests/test_labudde.py Outdated Show resolved Hide resolved
thewalrus/tests/test_labudde.py Outdated Show resolved Hide resolved
nquesada and others added 3 commits December 2, 2021 16:14
Co-authored-by: Theodor <theodor@xanadu.ai>
* More pythonic

* Minor typos

* Minor typos

* Update thewalrus/tests/test_labudde.py

* Minor typos

Co-authored-by: Nicolas Quesada <nquesada@pop-os.localdomain>
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
@nquesada
Copy link
Collaborator

nquesada commented Dec 2, 2021

@trevor-vincent , @thisac : the only thing missing is to update the CHANGELOG.

thewalrus/labudde.py Outdated Show resolved Hide resolved
.github/CHANGELOG.md Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
thewalrus/labudde.py Outdated Show resolved Hide resolved
trevor-vincent and others added 9 commits December 6, 2021 13:49
Co-authored-by: Nicolas Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Theodor <theodor@xanadu.ai>
Co-authored-by: Theodor <theodor@xanadu.ai>
Co-authored-by: Theodor <theodor@xanadu.ai>
Co-authored-by: Theodor <theodor@xanadu.ai>
Co-authored-by: Theodor <theodor@xanadu.ai>
Co-authored-by: Theodor <theodor@xanadu.ai>
@trevor-vincent trevor-vincent merged commit 90db66a into master Dec 6, 2021
@trevor-vincent trevor-vincent deleted the add_labudde_python branch December 6, 2021 23:32
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