get_lattice

tenpy.models.lattice.get_lattice(lattice_name)[source]

Given the name of a Lattice class, create an instance of it with gi.

Parameters

lattice_name (str) – Name of a Lattice class defined in the module lattice, for example "Chain", "Square", "Honeycomb", ....

Returns

LatticeClass – The lattice class (type, not instance) specified by lattice_name.

Return type

Lattice