Closed quantshah closed 1 year ago
Looks like it was set up incorrectly (as you've found), but has been fixed by qutip/qutip#2006 to me - I just had a glance through the git blame.
Ah great. I will just pull the updated dev. Thanks @jakelishman. Btw the whole data layer and the testing framework for it is just awesome, great job 🤌
haha, thanks! All I can think about it with it is that I never had time to get a bunch more of the dynamic switching / dispatch-control functionality that I wanted written :(. But I'm happy with what we did get in!
On current master, if I try to import qutip_jax, I get an error. The issue is that inverse specialisation seems to have been defined incorrectly. The following test tells you that the number of parameters in the specialisation specification is incorrect and it requires a (DataType, Callable). Current the specialisation is added as:
but it seems the following is the correct way:
The tests pass with the 2nd specification. Either the core inversion specialisation has been setup that way and we need to use the 2nd definition with only (DataType, Callable) for inversion, or something is wrong with the core inversion definition in the dispatcher.
@Ericgig @jakelishman