XanaduAI / thewalrus

A library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.
https://the-walrus.readthedocs.io
Apache License 2.0
100 stars 55 forks source link

passive transformation #249

Closed jakeffbulmer closed 3 years ago

jakeffbulmer commented 3 years ago

new function passive_transformation which allows for a Gaussian state to be transformed by a non-unitary, non-square passive linear optical transformation.

also generalised the squeezing function to allow for the symplectic transformation of multiple modes of single mode squeezing to be generated.

(also includes changelog update for previous PR)

jakeffbulmer commented 3 years ago

it seems to include all the commits from PR 248, is there some nice way for me to make these go away since that PR has been approved?

codecov[bot] commented 3 years ago

Codecov Report

Merging #249 (cf81781) into master (355b8ff) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #249   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1289      1294    +5     
=========================================
+ Hits          1289      1294    +5     
Impacted Files Coverage Δ
thewalrus/symplectic.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 355b8ff...cf81781. Read the comment docs.

jakeffbulmer commented 3 years ago

thanks for the review @albi3ro !!