jaxquantum icon indicating copy to clipboard operation
jaxquantum copied to clipboard

Example in readme.md fails

Open marberi opened this issue 7 months ago • 0 comments

The example in the README fails [1] when running the following line: states = jqt.mesolve(g_state_dm, ts, c_ops=c_ops, Ht=Ht)

which appears to be because of the ordering of the arguments to "mesolve". Attempting to solve this, I was running into some other issues. Could someone please have a look at that example? It looks like something broke changing an API.

The version is 6b0120a1ff, checked you on 2025-05-20.

[1] TypeError Traceback (most recent call last) Cell In[1], line 23 19 H1 = Omega*jnp.cos((omega_q)t)((jqt.sigmax()^jqt.identity(N=2)) + (jqt.identity(N=2)^jqt.sigmax())) 20 return H0 + H1 ---> 23 states = jqt.mesolve(g_state_dm, ts, c_ops=c_ops, Ht=Ht) 24 szt = jnp.real(jqt.calc_expect(sz0, states)) 27 fig, ax = plt.subplots(1, dpi=200, figsize=(4,3))

TypeError: mesolve() got an unexpected keyword argument 'Ht'. Did you mean 'H'?

marberi avatar May 20 '25 17:05 marberi