triqs.operators.util.hamiltonians

Functions

diagonal_part(H)

Extract the density part from an operator H.

h_int_density(spin_names, orb_names, U, Uprime)

Create a density-density Hamiltonian.

h_int_kanamori(spin_names, orb_names, U, ...)

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

h_int_slater(spin_names, orb_names, 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.