Bath dimensions

Description

Returns or check the dimensions to which the user should allocate the bath array.

Quick access

Routines:

check_bath_dimension(), get_bath_dimension()

Used modules

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 mode ed_mode, the bath topology specified by bath_type, the values of norb, nbath and nspin.

If bath_type is replica/general then a input matrix h_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 Hamiltonian nsym 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]