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()
--
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.