TensorNetwork icon indicating copy to clipboard operation
TensorNetwork copied to clipboard

Replace GMRES with a wrapper to the Jax version

Open alewis opened this issue 5 years ago • 5 comments

Jax proper now supports GMRES, and the version there should be better than ours in several ways. If we are willing to enforce that one have the latest Jax version we should replace our code with a wrapper.

alewis avatar Dec 10 '20 16:12 alewis

I was wondering if I could contribute to this? But, this is my first time contributing to an open repository. Can anyone walk me through what needs to be done?

vijaymocherla avatar Dec 12 '20 07:12 vijaymocherla

Hey there, Sounds great! But first we need to clarify if we are ready to drop support for earlier Jax versions. @mganahl what do you think

alewis avatar Dec 14 '20 16:12 alewis

SGTM

mganahl avatar Dec 14 '20 16:12 mganahl

Ok, then. @alewis if you don't mind, would you be interested in walking me through what needs to be done. It would be really helpful if you could point me to a place where I could start.

vijaymocherla avatar Dec 14 '20 19:12 vijaymocherla

Hi,

Ok so the relevant code is in backends/jax/jax_backend.py. Basically you need to change lines 693-694 so that they call the gmres code in base Jax instead of the one we wrote in backends/jax/jitted_functions.py.

alewis avatar Dec 16 '20 16:12 alewis