PsiQ / bartiq

Bartiq
https://psiq.github.io/bartiq/
Apache License 2.0
31 stars 9 forks source link

Improve `substitute` in `sympy_backend` #25

Closed mstechly closed 3 months ago

mstechly commented 6 months ago

While working on the tutorials we fould a bug with when evaluating expressions. We fixed it by adding as_expression(serialize( in substitute function in sympy_backend.py. However, this incurs extra cost as it generates an unnecessary roundtrip. Needs to be solved more reliably – @dexter2206 could you share the idea you had before we forget?