Operator Library¶
Building on top of the operator representations provided by operators, this
module provides various tools to simplify the construction of commonly used operators.
Commutator Generators¶
Operator classes can implement the SupportsCommutators Protocol, which
allows them to be used with the functions listed in the table below, to quickly compute multiple
commutator variants.
A runtime-checkable Protocol indicating support for efficient commutator generation. |
|
|
Computes the commutator of two operators. |
|
Computes the anti-commutator of two operators. |
|
Computes the double-commutator of three operators. |
Common Operators¶
Various common operators can easily be generated from constructor methods. This section provides an overview of these methods for a quick reference, grouped by category.
Electronic Integrals¶
The constructor methods listed here generally take the coefficients of electronic structure Hamiltonians as an input. Different flavors exist:
tril: these methods consume 1-dimensional arrays of flattened (generalized) triangular indicesfull: these methods consume high-dimensional arraysspin: these methods take separate arrays for the different spin speciessym: these methods take a single array for one spin species and infer the other spin species1-Body Terms
Constructs from spin-symmetric triangular 1-body integrals. |
|
Constructs from separate spin triangular 1-body integrals. |
2-Body Terms
Constructs from spin-symmetric triangular 2-body integrals. |
|
Constructs from separate spin triangular 2-body integrals. |
Other Generators¶
Finally, the following additional operator generator utilities exist in this module:
An electronic structure Hamiltonian in FCIDump format. |