no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | documentation:language_reference:functions:partialoperator [2018/08/03 14:48] – created Simon Heinze | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PartialOperator ====== | ||
+ | |||
+ | (will be published in fall 2018) | ||
+ | |||
+ | ### | ||
+ | PartialOperator(// | ||
+ | ### | ||
+ | |||
+ | ===== Input ===== | ||
+ | |||
+ | * //op// : An Operator. | ||
+ | * //indices// : A list of indices. | ||
+ | |||
+ | ===== Output ===== | ||
+ | |||
+ | * // | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | NF = 4 | ||
+ | |||
+ | |||
+ | op1 = NewOperator(" | ||
+ | op2 = NewOperator(" | ||
+ | |||
+ | print(" | ||
+ | print(op1) | ||
+ | print(" | ||
+ | print(PartialOperator(op1, | ||
+ | print(" | ||
+ | print(PartialOperator(op1, | ||
+ | print(" | ||
+ | print(" | ||
+ | print(op2) | ||
+ | print(" | ||
+ | print(PartialOperator(op2, | ||
+ | print(" | ||
+ | print(PartialOperator(op2, | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | op1: | ||
+ | |||
+ | Operator: CrAn | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | | 3.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-01 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialOperator(op1, | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-01 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialOperator(op1, | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | op2: | ||
+ | |||
+ | Operator: CrAn | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-05 | ||
+ | C 2 A 2 | 1.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 3 A 2 | -3.000000000000000E+00 | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialOperator(op2, | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-05 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 3 A 2 | -3.000000000000000E+00 | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialOperator(op2, | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 2 A 2 | 1.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 3 A 2 | -3.000000000000000E+00 | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> | ||