Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting when trying to evolve the system. #2

Open
hellmersjl3ds opened this issue May 22, 2017 · 0 comments
Open

Getting when trying to evolve the system. #2

hellmersjl3ds opened this issue May 22, 2017 · 0 comments

Comments

@hellmersjl3ds
Copy link

When trying to evolve the code:
mesolve(h_t, psi0, taulist, [], process_rho, args)

I get the following error. It looks like it is expecting parameters to be passed in, but I'm not sure which ones to use.
`TypeError Traceback (most recent call last)
in ()
1 # Evolve the system, request the solver to call process_rho at each time step.
2
----> 3 mesolve(h_t, psi0, taulist, [], process_rho, args)

/home/jhellmers/anaconda3/lib/python3.6/site-packages/qutip/mesolve.py in mesolve(H, rho0, tlist, c_ops, e_ops, args, options, progress_bar, _safe_mode)
224
225 if _safe_mode:
--> 226 _solver_safety_check(H, rho0, c_ops, e_ops, args)
227
228 if progress_bar is None:

/home/jhellmers/anaconda3/lib/python3.6/site-packages/qutip/solver.py in _solver_safety_check(H, state, c_ops, e_ops, args)
834 _structure_check(Hdims, Htype, _temp_state)
835
--> 836 for ii in range(len(e_ops)):
837 if isinstance(e_ops[ii], Qobj):
838 _temp_state = e_ops[ii]

TypeError: object of type 'function' has no len()`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant