- class netket.graph.Diamond#
Constructs a diamond lattice of a given spatial extent. Periodic boundary conditions can also be imposed.
Sites are returned at the 8a Wyckoff positions of the FCC lattice (, [1/4,1/4,1/4], and translations thereof).
bool]]) – If True, the lattice will have periodic boundary conditions (PBC); if False, the lattice will have open boundary conditions (OBC). This parameter can also be a list of booleans with same length as the parameter length, in which case each dimension will have PBC/OBC depending on the corresponding entry of pbc.
kwargs – Additional keyword arguments are passed on to the constructor of netket.graph.Lattice.
Construct a diamond lattice with 3×3×3 primitive unit cells:
>>> from netket.graph import Diamond >>> g = Diamond(extent=[3,3,3]) >>> print(g.n_nodes) 54
- Return type