quantax.operator.OpTerm#

class quantax.operator.OpTerm#

A group of operator terms sharing the same operator string, used to define an Operator.

__init__(opstr: str, strength: list[complex], indices: list[list[int]]) → None#
opstr: str#

A string representing the operator type, following the same convention as pauli=0 in QuSpin.

strength: list[complex]#

A list of interaction strengths, one per term.

indices: list[list[int]]#

A list of site-index lists, one per term, each of the same length as opstr.