netket.graph.KitaevHoneycomb#
- class netket.graph.KitaevHoneycomb[source]#
Bases:
Constructs a honeycomb lattice of a given spatial extent.
Nearest-neighbour edges are coloured according to direction (cf. Kitaev, https://doi.org/10.1016/j.aop.2005.10.005). Periodic boundary conditions can also be imposed. Sites are returned at the 2b Wyckoff positions.
- Parameters:
extent – Number of unit cells along each direction, needs to be an array of length 2
pbc (
bool
|Sequence
[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.point_group (
PointGroup
|None
) – point group object describing the symmetry of the lattice If not specified, uses the 180° rotation symmetry of the Kitaev model.kwargs – Additional keyword arguments are passed on to the constructor of netket.graph.Lattice.
- Return type:
Example
Construct a Kitaev honeycomb lattice with 3 × 3 unit cells:
>>> from netket.graph import KitaevHoneycomb >>> g = KitaevHoneycomb(extent=[3, 3]) >>> print(g.n_nodes) 18 >>> print(len(g.edges(filter_color=2))) 9