qimpy.grid.coulomb.Kernel

class Kernel(*args, **kwargs)

Bases: Protocol

Specification for Coulomb kernel.

__init__(*args, **kwargs)

Methods

__init__

stress

Return stress due to Coulomb interaction between rho1 and rho2.

stress(rho1, rho2)

Return stress due to Coulomb interaction between rho1 and rho2. The result has dimensions of energy, appropriate for adding to lattice.grad.

Parameters:
Return type:

Tensor