You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qu...@googlegroups.com
Hello,
This may be a very easy question to answer, but I can't find any example in the documentation of QuTiP. I am trying to calculate the expectation value of a certain operator Q with the eigenvectors of a Hamiltonian H. I do
evals, evecs = H.eigenstates()
How can I use the function Q.matrix_elements(bra, ket) from evecs? Basically I don't know how to select a given eigenvector from evecs and transpose it. My attempts so far failed.
Thanks a lot for the help!
Best,
Pol
Morgan Hedges
unread,
Jul 6, 2015, 8:40:13 AM7/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qu...@googlegroups.com, vali...@gmail.com
Hi Pol,
you take the Hermitian adjoint of a ket using it's "dag" method.
To calculate the matrix element between the 5th eigenvector and some ket "K", you can do