Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
documentation:language_reference:functions:braketdiagonal [2018/09/25 13:36] – created Simon Heinzedocumentation:language_reference:functions:braketdiagonal [2022/10/05 16:26] Maurits W. Haverkort
Line 2: Line 2:
  
 ### ###
-alligned paragraph text+//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$.  
 + 
 +In Quanty //Braket(psi1, O, psi2)// is the same as // psi1 * O * psi2//. The difference is that the function //Braket// can be faster. //Braket// can work on lists of functions and then returns a matrix or vector with all possible expectation values
 ### ###
  
 ===== Input ===== ===== Input =====
  
-  * bla Integer +  * psi1 or psiList1 Wavefunction or list of Wavefunctions 
-  * bla2 Real+  * Operator 
 +  * psi2 or psiList2 : Wavefunction or list of Wavefunctions
  
 ===== Output ===== ===== Output =====
  
-  * bla : real+  * real or complex number, or a list of these or a matrix of these
  
 ===== Example ===== ===== Example =====
Print/export