SyTen
syten::T3N::RDMs::OneParticleRDM Struct Reference

The helper class for the construction of the one particle reduced density matrix. More...

#include <rdm.h>

+ Inheritance diagram for syten::T3N::RDMs::OneParticleRDM:
+ Collaboration diagram for syten::T3N::RDMs::OneParticleRDM:

Public Types

typedef std::vector< std::array< std::string, 2 > > SSOList
 The type containing a list of SSOs. More...
 

Public Member Functions

void construct ()
 Actually constructs the RDM. More...
 
DenseTensor< 2, SDef > const & getRDM (Index const which) const
 Returns a reference to a requested RDM. More...
 
DenseTensor< 2, SDef > moveRDM (Index const which)
 Returns the RDM as rvalue. More...
 
std::vector< DenseTensor< 2, SDef > > moveRDMs ()
 Returns the RDMs as rvalue. More...
 
 OneParticleRDM (State &psi_, Lattice const &lat, SSOList const &opPairs)
 Constructor taking an MPS, a lattice and some operators and storing everything. More...
 
DenseTensor< 2, SDef > sumOverSpins () const
 Takes the full RDM and sums over the spins. More...
 
- Public Member Functions inherited from syten::T3N::RDMs::RDM
virtual void construct ()=0
 Every RDM needs to specify how it's constructed. More...
 
auto const & getInverseMap () const
 Get access to the reversed ordering. More...
 
auto const & getMap () const
 Get access to the ordering. More...
 
 RDM (State &psi_)
 Constructor. More...
 

Private Member Functions

void twoSite_right_rec (Tree::Position const &second_pos, Vec< Pair< STensor, SBasis > > &blocks_)
 Recursive helper function. More...
 
void twoSite_upwards_rec (Tree::Position const &second_pos, LegType const cameFrom)
 Recursive helper function. More...
 

Private Attributes

Vec< Pair< STensor, SBasis > > contrs
 Stores the contractions. More...
 
Lattice const & lat
 The lattice. More...
 
Index const numberOfRDMs
 Number of RDMs stored locally. More...
 
Vec< DenseTensor< 2, SDef > > rdms
 The actual RDMs. More...
 
SSOList ssoList
 A copy of the single site tensors. More...
 

Additional Inherited Members

- Public Attributes inherited from syten::T3N::RDMs::RDM
Index const branching_size
 
Index const physical_size
 
Index const total_size
 Total size of the system, stored locally. More...
 
bool verbose_output = true
 Print the progress or not. More...
 
- Protected Member Functions inherited from syten::T3N::RDMs::RDM
void init_map_rec (State::cPtrc ptr, Tree::Position &pos_, Index &counter)
 Initialises the mappings recursively. More...
 
- Protected Attributes inherited from syten::T3N::RDMs::RDM
std::map< Vec< Index >, Index > inverse_map
 Inverse mapping. More...
 
std::map< Index, Vec< Index > > map
 Mapping. More...
 
State::Ptr node
 Position as Ptr. More...
 
Tree::Position pos
 Position as vector. More...
 
State & psi
 The state. More...
 

Detailed Description

The helper class for the construction of the one particle reduced density matrix.


The documentation for this struct was generated from the following files: