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

Fidelity and random matrices #169

Merged
merged 18 commits into from
May 19, 2020
Merged

Fidelity and random matrices #169

merged 18 commits into from
May 19, 2020

Conversation

nquesada
Copy link
Collaborator

@nquesada nquesada commented May 17, 2020

Adds the function fidelity to calculate the quantum fidelity for two Gaussian states parametrized in terms of covariance matrices and vectors of means. It also adds the module random to generate random matrices.

@nquesada nquesada requested a review from josh146 May 18, 2020 14:17
Copy link
Member

@josh146 josh146 left a comment

Choose a reason for hiding this comment

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

Looks good @nquesada, I have a couple of comments about randomness in the tests and signatures, but nothing major.

Also, I think you're right, we should convert quantum to a subpackage with modules, it's getting a bit crowded in there.

docs/code.rst Show resolved Hide resolved
thewalrus/quantum.py Show resolved Hide resolved
thewalrus/quantum.py Outdated Show resolved Hide resolved
thewalrus/quantum.py Outdated Show resolved Hide resolved
thewalrus/random.py Show resolved Hide resolved
thewalrus/random.py Outdated Show resolved Hide resolved
thewalrus/random.py Outdated Show resolved Hide resolved
thewalrus/quantum.py Show resolved Hide resolved
thewalrus/samples.py Show resolved Hide resolved
thewalrus/tests/test_quantum.py Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 18, 2020

Codecov Report

Merging #169 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #169   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        14    +1     
  Lines         1004      1050   +46     
=========================================
+ Hits          1004      1050   +46     
Impacted Files Coverage Δ
thewalrus/samples.py 100.00% <ø> (ø)
thewalrus/quantum.py 100.00% <100.00%> (ø)
thewalrus/random.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 27cb12f...6fc6756. Read the comment docs.

nquesada and others added 4 commits May 18, 2020 11:18
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>
@nquesada nquesada requested a review from josh146 May 18, 2020 23:46
@nquesada nquesada merged commit de4e82a into master May 19, 2020
@nquesada nquesada deleted the fidelity branch May 19, 2020 15:59
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.

2 participants