Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
737
stars
188
forks
source link
fix the bug in thermal loss for gaussian backend #746
Open
sylviemonet opened 1 month ago
Context: The thermal loss factor was added to the full nmatrix of the object in the backend, but it shouldn't be.
Description of the Change: Rewrite the thermal loss.
Benefits:
Possible Drawbacks: the variable "k" doesn't have a type hint so it is considered as int here, which may cause problems in the future.
Related GitHub Issues: