Skip to content

Release 0.7.3

Compare
Choose a tag to compare
@josh146 josh146 released this 20 Jun 21:51
· 1133 commits to master since this release

New features

  • Added Gaussian decompositions to the front-end; these can be accessed via the new quantum operations Interferometer, GaussianTransform, CovarianceState. These allow you to apply interferometers, Gaussian symplectic transformations, and prepare a state based on a covariance matrix respectively. You can also query the engine to determine the CV gate decompositions applied.
  • Added utilities for creating random covariance, symplectic, and gaussian unitary matrices in strawberryfields.utils.

Improvements

  • Created a separate package strawberryfields-gpu that requires tensorflow-gpu.
  • Modified TFBackend to cache non-variable parts of the beamsplitter, to speed up computation.
  • Minor performance improvement in fock_prob() by avoiding inverting a matrix twice.

Bug fixes

  • Fixed bug #10 by adding the ability to reset the Fock modeMap and GaussianCircuit class
  • Fixed bug #11 by reshaping the Fock probabilities if the state happens to be pure states
  • Fixed Clements decomposition bug where some phase angles weren't applied
  • Fixed typo in displaced squeezed formula in documentation
  • Fix to prevent beamsplitter prefactor cache from breaking things if using two graphs
  • Fix bug #13, GaussianBackend.state() raises an IndexError if all modes in the state have been deleted.