Thermal density matrix

208 views
Skip to first unread message

mahmoud mohammadi

unread,
Sep 27, 2021, 4:22:12 AM9/27/21
to QuTiP: Quantum Toolbox in Python
 Hi Dear Group Members, I would like calculate  the Thermal density matrix for atom-cavity system with a specific Hamiltonian, but the Thermal density matrix in QUTIP is written based on an oscillator Hamiltonian while my Hamiltonian is different. How do I get a Thermal density matrix with another Hamiltonian? Thanks

Simon Cross

unread,
Sep 27, 2021, 6:12:37 AM9/27/21
to qu...@googlegroups.com
Hi Mahmoud,

Are you referring to `qutip.states.thermal_dm`? If so, I think the
answer depends on what your different Hamiltonian is. One option for a
general Hamiltonian is that you could evolve your system from an
initial density matrix to a steady state.

Yours sincerely,
Simon Cross

Neill Lambert

unread,
Sep 27, 2021, 6:47:57 AM9/27/21
to qu...@googlegroups.com
Just to add to what simon said, I guess you can also  do by hand with something like

energies, states = H.eigenstates()
rhoss = 0.
for kk, energ in enumerate(energies):
    rhoss += (states[kk]*states[kk].dag()*np.exp(-beta*energies[kk])) 

rhoss
= rhoss/rhoss.norm()

where beta is the inverse temperature, and H is the qubit + cavity hamiltonian

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/qutip/CAD5NRCG1GCk9O16npBGcT9dVuRCJSvPGDUN5sJy5h-WfAJvRRA%40mail.gmail.com.


--
-----------------------------------
Senior Research Scientist
RIKEN, Japan
Research Homepage
Reply all
Reply to author
Forward
0 new messages