--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-37-aaccd8b3342c> in <module>() 4 [H_1, '1/2*(1-(np.sqrt(N - 1) * np.tan((2 * t * epsilon * np.sqrt(N - 1) - N * np.arctan(np.sqrt(N - 1))) / N))/(1-N))']] 5 args = {'t_max':tmax, 'N':N, 'epsilon': eps} ----> 6 P_mat,EV_mat,psis_qutip = LH_tools.simulate_adiabatic_process2(tlist, h_s, args ,psi0, False) 7 f = LH_tools.plot_PandEV(P_mat,EV_mat,tlist) 8 plt.show() .../qutip/LH_tools.py in simulate_adiabatic_process2(tlist, h_t, args, rho0, draw, options) 159 e_ops=process_rho, 160 args=args, --> 161 options=options) 162 # rc('font', family='serif') 163 # rc('font', size='10') .../qutip/lib/python3.5/site-packages/qutip/mcsolve.py in mcsolve(H, psi0, tlist, c_ops, e_ops, ntraj, args, options, progress_bar, map_func, map_kwargs) 269 # Configure data 270 _mc_data_config(H, psi0, h_stuff, c_ops, c_stuff, args, e_ops, --> 271 options, config) 272 273 # compile and load cython functions if necessary .../qutip/lib/python3.5/site-packages/qutip/mcsolve.py in _mc_data_config(H, psi0, h_stuff, c_ops, c_stuff, args, e_ops, options, config) 1034 1035 # take care of expectation values, if any -> 1036 if any(e_ops): 1037 config.e_num = len(e_ops) 1038 for op in e_ops: TypeError: 'function' object is not iterable
Tried using 3.2.0.dev0+3deae74, the results are the same.
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/EPd14-GliyY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.
AttributeError Traceback (most recent call last)
...
.../lib/python3.5/site-packages/qutip/mcsolve.py in <listcomp>(.0) 1184 if options.tidy: 1185 H = np.array([H[k].tidyup(options.atol) -> 1186 for k in range(len_h)], dtype=object) 1187 # construct data sets 1188 config.h_data = [H[k].data.data for k in range(len_h)]
HiI tried using mesolve with e_ops = [], and got the same results.I still have problems running mcsolveAttributeError Traceback (most recent call last)
....../lib/python3.5/site-packages/qutip/mcsolve.py in <listcomp>(.0) 1184 if options.tidy: 1185 H = np.array([H[k].tidyup(options.atol) -> 1186 for k in range(len_h)], dtype=object) 1187 # construct data sets 1188 config.h_data = [H[k].data.data for k in range(len_h)]
Maybe it has to do with using the string format in mcsolve ? or the fact that my hamiltonian doesn't have any constant term (it appears from the docs that mcsolve hamiltonian must have a constant term)As for inputing e_ops as a function - I got it from the example here : http://nbviewer.jupyter.org/github/jrjohansson/qutip-lectures/blob/master/Lecture-8-Adiabatic-quantum-computing.ipynb
I took the example of using a function e_ops from the Lecture here http://nbviewer.jupyter.org/github/jrjohansson/qutip-lectures/blob/master/Lecture-8-Adiabatic-quantum-computing.ipynb