Struct Heisenberg_operator

Inheritance Relationships

Base Type

Struct Documentation

struct Heisenberg_operator : public Hermitian_operator

Hermitian operator representing a Heisenberg spin interaction.

Public Functions

Heisenberg_operator(const string &_name, shared_ptr<model> _the_model, const vector<matrix_element<double>> &_elements, char _dir = 'H')

Constructor from name and matrix elements.

Parameters:
  • _name – name of the operator

  • _the_model – pointer to model

  • _elements – nonzero one-body matrix elements

virtual void set_target(vector<bool> &in_bath)

set the target of an operator 1 : cluster 2 : bath only 3 : hybridization

Parameters:

in_bath – vector of bool defining the status of each site

virtual shared_ptr<HS_Hermitian_operator> build_HS_operator(sector sec, bool complex_Hilbert_space)

returns a pointer to, and constructs the associated HS operator in the sector with basis B.

Parameters:
  • sec – sector of the Hilbert space in which to build the operator

  • complex_Hilbert_space – if true, builds the operator in a complex Hilbert space

inline virtual void set_hopping_matrix(double value, matrix<double> &tc, bool spin_down, int sys_mixing)
inline virtual void set_hopping_matrix(double value, matrix<Complex> &tc, bool spin_down, int sys_mixing)
inline virtual double average_from_GF(matrix<Complex> &Gave, bool spin_down)
virtual void print(ostream &fout)

prints definition to a file

Parameters:

fout – output stream

virtual vector<matrix_element<Complex>> matrix_elements()

returns a list of complexified matrix elements

inline virtual string type()
virtual void multiply_add_OTF(const vector<double> &x, vector<double> &y, double z, shared_ptr<ED_mixed_basis> B)
virtual void multiply_add_OTF(const vector<Complex> &x, vector<Complex> &y, double z, shared_ptr<ED_mixed_basis> B)

Public Members

vector<matrix_element<double>> elements

matrix elements

map<index_pair, double> element_map

temporary map form of elements, for checks

char dir

specific type: ‘X’, ‘Y’, ‘Z’ or ‘H’ (default) for the sum of all three