Interaction matrix parsing

edipack2py.global_env.add_twobody_operator(oi, si, oj, sj, ok, sk, ol, sl, Uijkl)[source]

This function lets the user add an interaction term on-the-fly. The input parameters are the spin and orbital indices of the second quantized operators and the interaction coefficient. The order of the indices is consistent with those of the umatrix file (see EDIpack documentation).

Parameters:
  • oi (int) – orbital index of \(c^{\dagger}_{i}\)

  • si (str) – spin index of \(c^{\dagger}_{i}\)

  • oj (int) – orbital index of \(c^{\dagger}_{j}\)

  • sj (str) – spin index of \(c^{\dagger}_{j}\)

  • ok (int) – orbital index of \(c_{k}\)

  • sk (str) – spin index of \(c_{k}\)

  • ol (int) – orbital index of \(c_{l}\)

  • sl (str) – spin index of \(c_{l}\)

  • Uijkl – interaction coefficient

edipack2py.global_env.reset_umatrix()[source]

This function resets to 0 all the interaction coefficients