Container for instances of CreationOperator and AnnihilationOperator.
More...
#include <FieldOperatorContainer.hpp>
Container for instances of CreationOperator and AnnihilationOperator.
This container class stores instances of CreationOperator and AnnihilationOperator in associative maps with keys being their respective single-particle indices. It also provides methods that prepare and compute all stored MonomialOperator objects at once.
Definition at line 39 of file FieldOperatorContainer.hpp.
◆ FieldOperatorContainer()
template<typename... IndexTypes>
Constructor.
- Template Parameters
-
IndexTypes | Types of indices carried by the creation and annihilation operators. |
- Parameters
-
[in] | IndexInfo | Map for fermionic operator index tuples. |
[in] | HS | Hilbert space. |
[in] | S | Information about invariant subspaces of the Hamiltonian. |
[in] | H | The Hamiltonian. |
[in] | in | Set of all single-particle indices to store the MonomialOperator objects for. When empty, a set of all indices from IndexInfo is used. |
Definition at line 56 of file FieldOperatorContainer.hpp.
◆ computeAll()
void Pomerol::FieldOperatorContainer::computeAll |
( |
| ) |
|
Compute all stored creation and annihilation operators.
- Precondition
- prepareAll() has been called.
◆ getAnnihilationOperator()
Return a reference to a annihilation operator by its single-particle index.
- Parameters
-
[in] | in | Single-particle index. |
◆ getCreationOperator()
Return a reference to a creation operator by its single-particle index.
- Parameters
-
[in] | in | Single-particle index. |
◆ prepareAll()
template<typename... IndexTypes>
void Pomerol::FieldOperatorContainer::prepareAll |
( |
HilbertSpace< IndexTypes... > const & |
HS | ) |
|
|
inline |
Prepare all stored creation and annihilation operators (allocate memory for them).
- Template Parameters
-
IndexTypes | Types of indices carried by the creation and annihilation operators. |
- Parameters
-
Definition at line 75 of file FieldOperatorContainer.hpp.
The documentation for this class was generated from the following file: