triqs.operators.util.hamiltonians

Functions

backward_compat(fname, n_orb, orb_names)

diagonal_part(H)

Extract the density part from an operator H.

h_int_density(spin_names, n_orb, U, Uprime)

Create a density-density Hamiltonian.

h_int_kanamori(spin_names, n_orb, U, Uprime, ...)

Create a Kanamori Hamiltonian using the density-density, spin-fip and pair-hopping interactions.

h_int_slater(spin_names, n_orb, U_matrix[, ...])

Create a Slater Hamiltonian using fully rotationally-invariant 4-index interactions:

make_operator_real(H[, tol])

Return the real part of a given operator H checking that its imaginary part is below tolerance.