length of mesolver result is 1

4 views
Skip to first unread message

Xiao Liang

unread,
Mar 18, 2015, 1:23:00 AM3/18/15
to qu...@googlegroups.com
Hi. 
If I plot between times and mesolver results like:

"times=np.linspace(0,10,20)
 ...
 plot(times,result.expect)" 

it tells x and y is not in the same dimensions.

I found that: len(times)=20. But len(result.expect)=1

In "result.expect", there are in fact 20 numbers displayed. 

So, how to fix this?  Thanks.

Paul Nation

unread,
Mar 18, 2015, 1:24:22 AM3/18/15
to qu...@googlegroups.com
try results.expect[0]

Paul
--
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.

Reply all
Reply to author
Forward
0 new messages