SyTen
syten::MPS::DMRG::LBOPDMRG Struct Reference

One run of a MP-DMRG algorithm, parallelised if requested. More...

#include <lbo_dmrg_parallel.h>

+ Collaboration diagram for syten::MPS::DMRG::LBOPDMRG:

Public Member Functions

void closeLog ()
 Helper to close our logfiles. More...
 
bool converged ()
 Returns true if the current stage is complete. More...
 
void initArg (int argc_, char **argv_)
 Use to set command line argument variables. More...
 
void initLog ()
 Helper to initialise our logfiles. More...
 
 LBOPDMRG ()=default
 Default ctor for serialisation. More...
 
 LBOPDMRG (LBOPDMRG &&other)
 Move ctor. More...
 
 LBOPDMRG (LBOPDMRG const &)=delete
 Copy ctor deleted. More...
 
 LBOPDMRG (LBOState &&psi_, std::vector< Operator > &&op_, DMRGConfig &&conf_, std::vector< LBOState > &&ortho_)
 Standard ctor, constructs and assigns the worker objects and prepares the calculation. More...
 
template<typename Archive >
void load (Archive &ar, const unsigned int in_version)
 Boost serialisation (loading) More...
 
template<typename... Args>
void logTrace (int level, Args &&... data)
 Log some tracing information. More...
 
LBOPDMRGoperator= (LBOPDMRG &&other)
 Move assignment operator. More...
 
LBOPDMRGoperator= (LBOPDMRG const &)=delete
 Copy assignment operator deleted. More...
 
void run ()
 Run a calculation. More...
 
template<typename Archive >
void save (Archive &ar, const unsigned int in_version) const
 Boost serialization (saving) More...
 
void saveState ()
 Saves the state, potentially slow. More...
 
template<typename TypePtr , typename TypeVal >
void setConfig (TypePtr ptr, TypeVal value)
 Use to set configuration for all workers. More...
 

Public Attributes

int argc
 command line argument storage More...
 
char ** argv
 command line argument storage More...
 
DMRGConfig conf
 local cache for configuration More...
 
std::vector< Tensor< 2 > > connections
 vector of connectors between consecutive segments, already inverted More...
 
Index numWorkers
 number of workers, constant throughout the calculation More...
 
std::ofstream traceLog
 trace output log More...
 
std::vector< LBOWorkerworkers
 vector of worker objects More...
 

Static Public Attributes

static std::string const uuid = "8027AE60-2DA3-4C5D-A77E-9E2EEC3FB0D6"
 UUID. More...
 
static constexpr unsigned int version = 1
 Bump this if the above changes. More...
 

Detailed Description

One run of a MP-DMRG algorithm, parallelised if requested.

It can be saved to disk and restarted later.


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