quemb.molbe.mbe.initialize_pot

quemb.molbe.mbe.initialize_pot(Nfrag, edge_idx)

Initialize the potential array for bootstrap embedding.

This function initializes a potential array for a given number of fragments (Nfrag) and their corresponding edge indices (edge_idx). The potential array is initialized with zeros for each pair of edge site indices within each fragment, followed by an additional zero for the global chemical potential.

Parameters:
  • Nfrag (int) – Number of fragments.

  • edge_idx (list of list of list of int) – List of edge indices for each fragment. Each element is a list of lists, where each sublist contains the indices of edge sites for a particular fragment.

Returns:

Initialized potential array with zeros.

Return type:

list of float