Loading [MathJax]/jax/output/CommonHTML/jax.js

Differences

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

Link to this comparison view

Next revision
Previous revision
documentation:language_reference:functions:braketdiagonal [2018/09/25 13:36] – created Simon Heinzedocumentation:language_reference:functions:braketdiagonal [2024/12/31 14:13] (current) Maurits W. Haverkort
Line 2: Line 2:
  
 ### ###
-alligned paragraph text+//BraketDiagonal(psi1List, O, psi2List)// calculates the expectation value or matrix element ψ1[i]Oψ2[i] 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 ===== ===== 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
  
 ===== Example ===== ===== Example =====
  
 ### ###
-description text+see [[documentation:language_reference:functions:braket|Braket]] for more information
 ### ###
  
-==== Input ==== 
-<code Quanty Example.Quanty> 
--- some example code 
-</code> 
- 
-==== Result ==== 
-<file Quanty_Output> 
-text produced as output 
-</file> 
  
 ===== Table of contents ===== ===== Table of contents =====
 {{indexmenu>.#1}} {{indexmenu>.#1}}
  
Print/export