SyTen
syten::MPS::TDVP::LBOWorker Class Reference

Worker for LBO-TDVP. More...

#include <lbo_tdvp.h>

+ Collaboration diagram for syten::MPS::TDVP::LBOWorker:

Public Member Functions

void calc_contrl (Index const where)
 Calculates a new left contraction and caches the last one. More...
 
void calc_contrr (Index const where)
 Calculates a new right contraction and caches the last one. More...
 
bool check_signals () const
 Returns true if we should exit due to having received a signal. More...
 
Conf const & cref_conf () const
 Returns a constant ref to the configuration. More...
 
LBOState const & cref_psi () const
 Returns a constant ref to the stored state psi. More...
 
IterativeExit evo_bond_m (SDef const prefactor, Tensor< 2 > &s)
 Evolves the matrix s sitting on a bond between two MPS tensors. More...
 
IterativeExit evo_bond_v (SDef const prefactor, Index const site, Tensor< 2 > &s)
 Evolves the matrix s sitting on a bond between an MPS and its LBO tensor. More...
 
IterativeExit evo_one_m (SDef const prefactor, Index const site)
 Evolves one MPS tensor. More...
 
IterativeExit evo_one_v (SDef const prefactor, Index const site)
 Evolves one LBO tensor. More...
 
std::tuple< IterativeExit, SRDefevo_two_m (SDef const prefactor, Index const lsite, Index const rsite, Tensor< 2 > &s)
 Evolves two MPS tensors. More...
 
IterativeExit evo_two_v (SDef const prefactor, Index const site)
 Evolves one MPS and its LBO tensor. More...
 
 LBOWorker ()=default
 Default ctor. More...
 
 LBOWorker (Operator &&op_, LBOState &&psi_, Conf &&conf_)
 Standard ctor. More...
 
LBOState && move_psi ()
 Returns a movable ref to the stored state psi. More...
 
void run (int argc, char **argv)
 Entry point, runs the complete time evolution. More...
 
bool sweep_single (Timer &timer, SRDef &trunc_error, SRDef &krylov_error)
 Does a single sweep of single-site TDVP, delivering the timer and errors in its arguments and returning true if we should exit due to having received a signal. More...
 
bool sweep_twosite (Timer &timer, SRDef &trunc_error, SRDef &krylov_error)
 Does a single sweep of two-site TDVP, delivering the timer and errors in its arguments and returning true if we should exit due to having received a signal. More...
 

Static Public Attributes

static constexpr SDef expo_unity = 1_i
 Either i or 1 depending on SYTEN_COMPLEX_SCALAR. More...
 

Private Attributes

Conf conf
 Configuration object. More...
 
std::vector< AsyncCached< Tensor< 3 > > > contrl
 Vector of left-contractions. More...
 
std::vector< AsyncCached< Tensor< 3 > > > contrr
 Vector of right-contractions. More...
 
Operator op
 MPO rep of the Hamiltonian. More...
 
LBOState psi
 Current state. More...
 

Detailed Description

Worker for LBO-TDVP.


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