Problem in compiling "Master equation solver: Vacuum Rabi oscillations "

21 views
Skip to first unread message

MADHAV SINGH

unread,
Sep 7, 2017, 1:55:02 AM9/7/17
to QuTiP: Quantum Toolbox in Python
Hi,
 
While compiling this program from tutorial problem is struck
-----------------------------------------------
 output = mesolve(H, psi0, tlist, c_op_list, [a.dag() * a, sm.dag() * sm])
>>>
>>> fig, ax = plt.subplots(figsize=(8,5))
>>> ax.plot(tlist, output.expect[0], label="Cavity")
[<matplotlib.lines.Line2D object at 0x7fc5cc461630>]
>>> ax.plot(tlist, output.expect[1], label="Atom excited state")
[<matplotlib.lines.Line2D object at 0x7fc5cc461f60>]
>>> ax.legend()
<matplotlib.legend.Legend object at 0x7fc5cc473128>
>>> ax.set_xlabel('Time')
<matplotlib.text.Text object at 0x7fc5cc48a748>
>>> ax.set_ylabel('Occupation probability')
<matplotlib.text.Text object at 0x7fc5cc49edd8>
>>> ax.set_title('Vacuum Rabi oscillations');
<matplotlib.text.Text object at 0x7fc5cc4ba588>

---------------------------------------------------------------------------
What should I do now

Paul Nation

unread,
Sep 7, 2017, 4:57:01 PM9/7/17
to QuTiP Group
I do not see any problem with your code.  What is the actual issue?

-P

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MADHAV SINGH

unread,
Oct 2, 2017, 8:37:39 AM10/2/17
to QuTiP: Quantum Toolbox in Python
Thanking ypu for attention. I got my problem resolved
Reply all
Reply to author
Forward
0 new messages