monoprop

FermiString

Class representing a Fermi string.

Attributes

attributeexpression
= expression.expression

Functions

func__init__(self, expression) -> None

Initialize the Fermi string.

paramself
paramexpressionSequence[tuple[int, str]] | FermiString

List of (index, char +/-) pairs representing the Fermi string. The index should be a non-negative integer, and the char should be either '+' or '-'.

Returns

None
func__repr__(self) -> str

Return a string representation of the Fermi string.

paramself

Returns

str
func__eq__(self, value) -> bool

Check equality of two FermiStrings.

paramself
paramvalueobject

Returns

bool
func__hash__(self) -> int

Return a hash of the Fermi string.

paramself

Returns

int

On this page