Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:operatortomatrix [2018/06/21 15:22] – created Simon Heinze | documentation:language_reference:functions:operatortomatrix [2025/01/06 15:01] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 2: | Line 2: | ||
### | ### | ||
- | alligned paragraph text | + | M = OperatorToMatrix(H, |
+ | * M = OperatorToMatrix(H) | ||
+ | * M = OperatorToMatrix(H, | ||
+ | * M = OperatorToMatrix(H, | ||
+ | * M = OperatorToMatrix(H, | ||
+ | with rho a density matrix and psi a wave-function. | ||
### | ### | ||
- | ===== Input ===== | + | ### |
+ | For the case there is no density matrix or state given the operator returned is given by the one particle part of $H$. The dimension of $M$ is $H.NF$. | ||
+ | ### | ||
- | * bla : Integer | + | ### |
- | * bla2 : Real | + | For the case there is a density matrix given as second input the matrix $M$ is given by a mean-field approximated version of $H$. The dimension of $M$ is $H.NF$ and $H.NF$ must be equal to $psi.NF$. |
- | + | ### | |
- | ===== Output ===== | + | |
- | + | ||
- | * bla : real | + | |
- | + | ||
- | ===== Example ===== | + | |
### | ### | ||
- | description text | + | For the case there is a single state $psi$ given as second input the matrix $M$ is given as an operator on the single Slater determinant basis used for $psi$. The dimension of $M$ is $psi.N$. |
### | ### | ||
- | ==== Input ==== | + | ### |
- | <code Quanty Example.Quanty> | + | For the case there is a table of states given as second input the matrix $M$ is given by the elements $M_{i, |
- | -- some example code | + | \psi_i | H | \psi_j \rangle$. In this case the dimension of $M$ is $n$ with $n$ the length of the table of states. |
- | </ | + | ### |
- | ==== Result ==== | ||
- | <file Quanty_Output> | ||
- | text produced as output | ||
- | </ | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
{{indexmenu> | {{indexmenu> | ||