calc_energy_matrix
- static ThomasFermi.calc_energy_matrix(physics, numerics, K_mat, n, islands, approximate_charges)
Calculates the energy matrix for the system.
This is computed by taking the Coulomb potential energy between n(x) on island
iand n(x) on islandj, and adding the kenetic energy of the island ifi==j.See eq. (15) of arXiv:2509.13298.
- Parameters:
physics (PhysicsParameters) – The physical device parameters.
numerics (NumericsParameters) – Options for numeric calculations.
K_mat (ndarray[float]) – A 2D array with shape
(len(x), len(x)), whereK_mat[i, j]gives the value of the Coulomb interaction (in meV) between two particles at pointsx[i]andx[j].n (ndarray[float]) – A 1D array containing the particle density (in 1/nm).
islands (ndarray[int]) – An array with shape
(num_islands, 2)giving the islands, whereislands[i]is a length-2 integer array[begin_index, end_index + 1]giving the indeces ofphysics.xcorresponding to the island.approximate_charges (ndarray[float]) – An array with length equal to the number of islands, where each entry of the array is the integral of n(x) over the corresponding island.
- Returns:
energy_matrix – The energy matrix (in meV) in the capacitance model (proportional to the inverse capacitance matrix).
- Return type:
ndarray[float]