XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
737 stars 187 forks source link

Set `SYMPY_USE_CACHE` environment variable to "no" #684

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: Quick fix for an issue with SymPy caching expressions and wrongly using a cached register reference instead of the new one. See issue #683 for details.

Description of the Change: Sets the SYMPY_USE_CACHE environment variable to "no" in CI, so that no caching is done when running tests.

Benefits: Certain cases when SymPy parameters are cached and incorrectly retrieved will (hopefully) no longer happen in the CI tests.

Possible Drawbacks: This is just a quick fix for the CI tests. The issue is still present in the code-base.

Related GitHub Issues:

683

codecov[bot] commented 2 years ago

Codecov Report

Merging #684 (930831a) into master (de3bdf4) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #684   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          75       75           
  Lines        9163     9163           
=======================================
  Hits         9011     9011           
  Misses        152      152           

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 de3bdf4...930831a. Read the comment docs.