Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:language_reference:functions:blockbanddiagonalize [2024/09/25 16:33] – Sina Shokri | documentation:language_reference:functions:blockbanddiagonalize [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== BlockBandDiagonalize ====== | ====== BlockBandDiagonalize ====== | ||
| - | |||
| ### | ### | ||
| The function // | The function // | ||
| $$ M = \begin{pmatrix} 0 & 1 & 1 \\ 1 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix} $$ | $$ M = \begin{pmatrix} 0 & 1 & 1 \\ 1 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix} $$ | ||
| - | Now, we can linearly combine the second and third basis vectors, such that we get a single | + | Now, assuming that $M$ corresponds to a tight-binding Hamiltonian defined on some basis, we can linearly combine the second and third basis orbitals, such that we get a single |
| $$ U = \begin{pmatrix} 1 & 0 & 0 \\ 0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ 0 & \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{pmatrix} $$ | $$ U = \begin{pmatrix} 1 & 0 & 0 \\ 0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ 0 & \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{pmatrix} $$ | ||
| Now, transforming the matrix $ M $ using the unitary matrix $ U $ results in: | Now, transforming the matrix $ M $ using the unitary matrix $ U $ results in: | ||
| $$ M' = U M U^{T} = \begin{pmatrix} 0 & \frac{1}{\sqrt{2}} & 0 \\ | $$ M' = U M U^{T} = \begin{pmatrix} 0 & \frac{1}{\sqrt{2}} & 0 \\ | ||
| + | In the new representation, | ||
| + | The basis orbital and not with the third one. | ||
| The function // | The function // | ||
| ### | ### | ||
| - | ===== Input ===== | + | ====== Input ====== |
| + | Case 1: | ||
| + | * //matrix//: hermitian matrix | ||
| + | * // | ||
| - | | + | Case 2: |
| - | * bla2 : Real | + | |
| + | * //wave function //: single wave function of list of wave functions | ||
| - | ===== Output ===== | + | Case 3: |
| + | * // | ||
| + | * // | ||
| - | * bla : real | ||
| - | ===== Example ===== | + | // |
| - | ### | + | *NTri : (// |
| - | description text | + | |
| - | ### | + | *NOrtho : (// |
| - | ==== Input ==== | + | *ReOrthogonalize: |
| - | <code Quanty Example.Quanty> | + | |
| - | -- some example code | + | |
| - | </code> | + | |
| - | ==== Result | + | ====== Output ====== |
| - | <file Quanty_Output> | + | case1: |
| - | text produced as output | + | *// |
| - | </file> | + | *//matrix//: Transformation Matrix to transform the input matrix into the Block band diagonalized one. |
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||