Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:functions:createclusterhamiltonian [2024/09/16 11:26] – Sina Shokri | documentation:language_reference:functions:createclusterhamiltonian [2024/09/18 14:23] (current) – old revision restored (2024/09/16 12:17) Sina Shokri | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
The function // | The function // | ||
+ | See also // | ||
### | ### | ||
Line 282: | Line 283: | ||
[ 0] -1.00000000E-01 | [ 0] -1.00000000E-01 | ||
</ | </ | ||
+ | |||
+ | ===== Periodic Cluster ===== | ||
+ | |||
+ | //HCl = CreateClusterHamiltonian(TB, | ||
+ | |||
+ | ===== Inputs ===== | ||
+ | |||
+ | * TB: tight-binding object | ||
+ | * SuperCell: an array of dimension 3x3 in the format {a,b,c} with the rows being the vectors of the super-cell. The super-cell is defined in the units of the unit cell defined in TB.Cell. | ||
+ | * U: Aditional Operator to add (optional). The operator must be defined within the unit cell defined in TB.Cell and will be copied to all unit cells within the super-cell and added to the output cluster Hamiltonian operator. | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ### | ||
+ | A small example: | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- set parameters | ||
+ | dAB = 0.2 | ||
+ | tnn = 1.1 | ||
+ | -- create the tight binding Hamiltonian | ||
+ | HTB = NewTightBinding() | ||
+ | HTB.Name = " | ||
+ | HTB.Cell = {{sqrt(3), | ||
+ | {sqrt(3/ | ||
+ | {0,0,1}} | ||
+ | HTB.Atoms = { {" | ||
+ | {" | ||
+ | HTB.Hopping = {{" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | print(" | ||
+ | HCl = CreateClusterHamiltonian(HTB, | ||
+ | |||
+ | print(" | ||
+ | print(HCl) | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | create a cluster Hamiltonian | ||
+ | Output operator: | ||
+ | |||
+ | Operator: Operator | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 6 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 0 A 0 | -1.00000000000000E-01 | ||
+ | C 1 A 1 | 1.00000000000000E-01 | ||
+ | C 0 A 5 | 2.20000000000000E+00 | ||
+ | C 1 A 2 | 2.20000000000000E+00 | ||
+ | C 0 A 1 | 1.10000000000000E+00 | ||
+ | C 1 A 0 | 1.10000000000000E+00 | ||
+ | C 2 A 2 | -1.00000000000000E-01 | ||
+ | C 3 A 3 | 1.00000000000000E-01 | ||
+ | C 2 A 1 | 2.20000000000000E+00 | ||
+ | C 3 A 4 | 2.20000000000000E+00 | ||
+ | C 2 A 3 | 1.10000000000000E+00 | ||
+ | C 3 A 2 | 1.10000000000000E+00 | ||
+ | C 4 A 4 | -1.00000000000000E-01 | ||
+ | C 5 A 5 | 1.00000000000000E-01 | ||
+ | C 4 A 3 | 2.20000000000000E+00 | ||
+ | C 5 A 0 | 2.20000000000000E+00 | ||
+ | C 4 A 5 | 1.10000000000000E+00 | ||
+ | C 5 A 4 | 1.10000000000000E+00 | ||
+ | </ | ||
+ | |||
+ | ====== Options ====== | ||
+ | |||
+ | The last element of CreateClusterHamiltonian can be a table of options. Possible options are: | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
{{indexmenu> | {{indexmenu> | ||