Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:language_reference:functions:operatorsettrace [2018/09/26 13:00] – disclaimer Simon Heinze | documentation:language_reference:functions:operatorsettrace [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OperatorSetTrace ====== | ====== OperatorSetTrace ====== | ||
| - | ### | + | Deprecated, with next release use // |
| - | OperatorSetTrace($O$, | + | |
| - | + | ||
| - | After the operation the operator has the property | + | |
| - | \begin{equation*} | + | |
| - | \sum_{j=\{i_1, | + | |
| - | O_{jj} | + | |
| - | = | + | |
| - | t | + | |
| - | \hspace{0.3cm} | + | |
| - | , | + | |
| - | \end{equation*} | + | |
| - | where $O_{jj}$ are the prefactors of the diagonal quadratic terms of the operator, | + | |
| - | \begin{equation*} | + | |
| - | O | + | |
| - | = | + | |
| - | \sum_{i, | + | |
| - | O_{ij} a_i^\dagger a_j^{\phantom{\dagger}} | + | |
| - | + | + | |
| - | ... | + | |
| - | \hspace{0.3cm} | + | |
| - | . | + | |
| - | \end{equation*} | + | |
| - | ### | + | |
| - | + | ||
| - | ===== Input ===== | + | |
| - | + | ||
| - | * $O$ : Operator | + | |
| - | * $t$ : New value of the trace (Default 0) | + | |
| - | * {$i_1, | + | |
| - | + | ||
| - | ===== Output ===== | + | |
| - | + | ||
| - | * $O^\prime$ : Operator with newly set trace | + | |
| - | + | ||
| - | ===== Example ===== | + | |
| - | + | ||
| - | ### | + | |
| - | Give me just a minute. | + | |
| - | ### | + | |
| - | + | ||
| - | ==== 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> | {{indexmenu> | ||