pyscfad icon indicating copy to clipboard operation
pyscfad copied to clipboard

TDDFT Gradient

Open matillda123 opened this issue 1 year ago • 1 comments

Hi,

I tried adapting the TDSCF example https://github.com/fishjojo/pyscfad/blob/main/examples/tdscf/00-cis_nuc_grad.py to get the gradient and hessian from TDDFT. Which doesn't work with the error message:

jax.errors.TracerArrayConversionError: The numpy.ndarray conversion method array() was called on traced array with shape float64[16,5] See https://jax.readthedocs.io/en/latest/errors.html#jax.errors.TracerArrayConversionError

For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.

This is because TDDFT is not explicitely implemented at the moment and not some compatibility issue with Jax, right?

Anyway its nice to have this package :)

matillda123 avatar Oct 01 '24 15:10 matillda123

You are right. Only CIS is implemented at the moment.

fishjojo avatar Oct 01 '24 17:10 fishjojo