Degrees of freedom and mode indexing#
DoF#
Public names: edinpy.fermion.DoF and edinpy.boson.DoF.
- class edinpy.fermion.DoF(size, name=None, labels=None)[source]#
Discrete degree of freedom used to label single-particle modes.
- Parameters:
size (int) – Number of allowed values of the degree of freedom.
name (str, optional) – Descriptive name such as
"site","spin","species","orbital","layer", or"valley".labels (iterable of str, optional) – Names for the individual values of the degree of freedom. Their order is the same as the canonical integer indices
0, 1, ..., size - 1.
Notes
DoFis statistics-independent. It only specifies discrete labels and does not represent a quantum state or Hilbert space by itself.