XanaduAI / thewalrus

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

Windows fix for numba types #389

Closed rachelchadwick closed 2 months ago

rachelchadwick commented 2 months ago

There are currently some issues on Windows but not linux regarding TypingErrors in some numba functions. In particular, the haf_blocked function needs to have a list or tuple for the pattern, and the _density_matrix_single_mode needs to have an array. This PR changes both to take lists.