Hypercube(length, n_dim=1, *, pbc=True)¶
A hypercube lattice of side L in d dimensions. Periodic boundary conditions can also be imposed.
Constructs a new
Hypercubegiven its side length and dimension.
- Return type
A 10x10x10 cubic lattice with periodic boundary conditions can be constructed as follows:
>>> import netket >>> g = netket.graph.Hypercube(10, n_dim=3, pbc=True) >>> print(g.n_nodes) 1000