- class netket.graph.Chain#
Constructs a chain of length sites. Periodic boundary conditions can also be imposed
int) – Length of the chain. It must always be >=1
bool) – Whether the chain should have periodic boundary conditions
kwargs – Additional keyword arguments are passed on to the constructor of netket.graph.Lattice.
- Return type:
A 10 site chain with periodic boundary conditions can be constructed as follows:
>>> import netket >>> g = netket.graph.Chain(10, pbc=True) >>> print(g.n_nodes) 10