Closed nquesada closed 4 years ago
Merging #152 into master will not change coverage by
%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #152 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 887 924 +37
=========================================
+ Hits 887 924 +37
Impacted Files | Coverage Δ | |
---|---|---|
thewalrus/quantum.py | 100.00% <100.00%> (ø) |
|
thewalrus/samples.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 e4a1089...94a4884. Read the comment docs.
Adds a number of methods for calculating the photon number distributions.
Adds the ability to calculate the photon number distribution of a pure state or mixed state using
generate_probabilities
.Allows to update the photon number distirbution when undergoing loss by using
update_probabilities_with_loss
.Adds a brute force sampler
photon_number_sampler
that given a (multi-)mode photon number distribution generates photon number samples.