Table of Contents
Writing /home/haverkort/WWW/quanty/data/cache/d/db61588589d7ca13a02f6d4f4358ff7c.code failed
Writing /home/haverkort/WWW/quanty/data/cache/8/8f97a2858e0fb7bfd6d9c51c0965c0fe.code failed
BraketDiagonal
BraketDiagonal(psi1List, O, psi2List) calculates the expectation value or matrix element $\left\langle \psi_1[i] \mid O \mid \psi_2[i] \right\rangle$ for all $i$. Whereby $I$ is the minimum of the length of the two tables. If #psi1List is not equal to #psi2List a warning is given. If psi1List or psi2List is a function instead of a list of functions the value returned is the same as one would get for Braket.
Input
-
psi1 or psiList1 : Wavefunction or list of Wavefunctions
-
O : Operator
-
psi2 or psiList2 : Wavefunction or list of Wavefunctions
Output
-
real or complex number, or a list of these
Example
see Braket
Input
- Example.Quanty
-- see the example for Braket
Result
see the example for Braket