SyTen
syten::MPS::RDMs::OrbRDM Class Reference

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

#include <rdm.h>

+ Inheritance diagram for syten::MPS::RDMs::OrbRDM:
+ Collaboration diagram for syten::MPS::RDMs::OrbRDM:

Public Member Functions

void construct ()
 Actually constructs the RDM. More...
 
void construct (Vec< Index > const &sites)
 Only construct one RDM. More...
 
Tensor< 2 > const & getRDM () const
 Return a reference to the first RDM. More...
 
Tensor< 2 > const & getRDM (Index const i) const
 Return a reference to a requested RDM. More...
 
Tensor< 2 > const & getRDM (Index const i, Index const j) const
 Return a reference to a requested RDM. More...
 
Tensor< 2 > moveRDM ()
 Returns the RDM as rvalue. More...
 
Tensor< 2 > moveRDM (Index const i)
 Returns the RDM as rvalue. More...
 
Tensor< 2 > moveRDM (Index const i, Index const j)
 Returns the RDM as rvalue. More...
 
 OrbRDM (State &psi_)
 Constructor. More...
 
 OrbRDM (State &psi_, std::vector< Index > sites_)
 Constructor. More...
 
- Public Member Functions inherited from syten::MPS::RDMs::RDM
 RDM (State &psi_)
 Constructor. More...
 

Static Public Member Functions

static void checkValidity (Tensor< 2 > const &t)
 Checks that argument is a valid density matrix. More...
 
static Tensor< 2 > contract_locals (State const &state, Vec< Index > const &hot_sites)
 Construct helper function, which actually glues together the tensor for 2rdm and more. More...
 
static Tensor< 2 > contract_locals (Tensor< 3 > const &site)
 Construct helper function, which actually glues together the tensor for 1rdm. More...
 

Private Member Functions

Tensor< 2 > & element ()
 Non-const overload. More...
 
Tensor< 2 > const & element () const
 Returns the first element. More...
 
Tensor< 2 > & element (Index const i, Index const j)
 Non-const overload. More...
 
Tensor< 2 > const & element (Index const i, Index const j) const
 Returns the vector index for given site indices. More...
 

Private Attributes

Vec< Tensor< 2 > > rdms
 The actual RDMs. More...
 

Additional Inherited Members

- Public Attributes inherited from syten::MPS::RDMs::RDM
bool verbose_output = true
 Print the progress or not. More...
 
- Protected Attributes inherited from syten::MPS::RDMs::RDM
Statepsi
 The state. More...
 
Index const size
 Total size of the system, stored locally. More...
 

Detailed Description

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


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