kwant.builder.Site[source]¶Bases: tuple
A site, member of a SiteFamily.
Sites are the vertices of the graph which describes the tight binding
system in a Builder.
A site is uniquely identified by its family and its tag.
| Parameters: | family : an instance of
tag : a hashable python object
|
|---|---|
| Raises: | ValueError |
Notes
For convenience, family(*tag) can be used instead of Site(family,
tag) to create a site.
The parameters of the constructor (see above) are stored as instance
variables under the same names. Given a site site, common things to
query are thus site.family, site.tag, and site.pos.
Methods
index(value[, start[, stop]]) → integer -- return first index of value.[source]¶Raises ValueError if the value is not present.
Attributes
pos[source]¶Real space position of the site.
This relies on family having a pos method (see SiteFamily).