FermiString
Class representing a Fermi string.
Attributes
attributeexpression= expression.expressionFunctions
func__init__(self, expression) -> NoneInitialize the Fermi string.
paramselfparamexpressionSequence[tuple[int, str]] | FermiStringList of (index, char +/-) pairs representing the Fermi string. The index should be a non-negative integer, and the char should be either '+' or '-'.
Returns
Nonefunc__repr__(self) -> strReturn a string representation of the Fermi string.
paramselfReturns
strfunc__eq__(self, value) -> boolCheck equality of two FermiStrings.
paramselfparamvalueobjectReturns
boolfunc__hash__(self) -> intReturn a hash of the Fermi string.
paramselfReturns
int