Bath dimensions
Description
Returns or check the dimensions to which the user should allocate the bath array.
Quick access
- Routines:
Used modules
ed_input_vars
: User-accessible input variablesed_vars_global
: Global variable accessible throughout the codeed_aux_funx
: Assortment of auxiliary procedures required throughout the codeed_bath_aux
: Auxiliary routines for bath creation and manipulationed_bath_replica
: Routines for replica bath manipulation
External modules
Subroutines and functions
- interface ed_bath_dim/get_bath_dimension(nsym[, h_nn])
Returns the dimension
bath_size
to which the user should allocate the user bath array to contains all the parameters according to the provided input variables. The value is obtained counting all the electronic levels of the system compatible with the operational modeed_mode
, the bath topology specified bybath_type
, the values ofnorb
,nbath
andnspin
.If
bath_type
is replica/general then a input matrixh_nn
can be used to count the number of parameters, corresponding to its non-zero elements. In alternative the bath size can be estimated by the number of parameters in the linear decomposition of the bath local Hamiltoniannsym
such that \(h^p=\sum_{i=1}^{N_{sym}}\lambda^{p}_{i} O_{i}\).- Options:
h_nn (•, •, •, •) [complex, in] – User defined H_nn
- Result:
bath_size [integer]
- Parameters:
nsym [integer] – Number of symmetries (for
ed_mode
=replica, general
)
- function ed_bath_dim/check_bath_dimension(bath_)
Checks the user bath
bath_
on input has the correct dimensions according to the choice of input parameters for the calculations.- Parameters:
bath_ (•) [real] – user-accessible bath array
- Result:
bool [logical]