Chain(length, *, pbc=True)¶
A chain of L sites. Periodic boundary conditions can also be imposed
Constructs a new
Chaingiven its length.
- 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