[FR] Euclidian distance between nodes in nk.graph.lattice
#1682
Labels
enhancement
New feature or request
nk.graph.lattice
#1682
Hi,
Netket provides a method comprised in the class "netket.graph.Lattice" named "distances" which prints out the Manhattan distance between all nodes of the lattice graph (https://netket.readthedocs.io/en/latest/api/_generated/graph/netket.graph.Lattice.html#netket.graph.Lattice.distances). It would be nice to have a similar method that would provide the Euclidian distance between the nodes, taking into account the periodic boundary conditions, having the form:
Note that the function above does not consider the periodic boundary conditions.
Thanks :)
The text was updated successfully, but these errors were encountered: