XanaduAI / thewalrus

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

Speed up photon number covariance #221

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

It would be nice to vectorize and possibly just-in-time compile the function photon_number_covmat. The current one is unnecessarily slow.

nquesada commented 3 years ago

One other possibility to improve the speed of this calculation is to use numba's just-in-time compiling.

nquesada commented 3 years ago

Closed in [#244].