Closed rochisha0 closed 3 weeks ago
@Ericgig I have made some changes, please have a look. As far as I tested this way we can work around jax.lax.cond
.
@Ericgig You are right I missed that jax
only supports grad
of eigenvalues not eigenvectors.
Look good.
Does is work well when isherm=None
, that is not included in our tests cases.
@Ericgig I have added the suggested changes and the required tests are now passing.
Yes, it works. @Ericgig
Could you add/modify a test for it.
Description
This PR is in an effort to enable jax.jit with qutip.core.metrics and entropy. It fixes _eigs_jaxarray to be compatible with jax.jit.
Result
With this change trace_dist works with jax.jit