NormalElimination

class NormalElimination

Record of a variable explicitly eliminated during an RQAOA iteration.

Methods

Attributes

index

The index of the variable selected for elimination.

term

The term selected for elimination, represented as a tuple of variable indices.

sign

The sign of the selected term, either +1 or -1.

__eq__(other)

Return self==value.

__init__(index: int, term: tuple[int, ...], sign: Literal[1, -1]) None
__repr__()

Return repr(self).

__dataclass_fields__ = {'index': Field(name='index',type='int',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'sign': Field(name='sign',type='Literal[1, -1]',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD), 'term': Field(name='term',type='tuple[int, ...]',default=<dataclasses._MISSING_TYPE object>,default_factory=<dataclasses._MISSING_TYPE object>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=False,_field_type=_FIELD)}
__dataclass_params__ = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)
__hash__ = None
__match_args__ = ('index', 'term', 'sign')
index: int

The index of the variable selected for elimination.

sign: Literal[1, -1]

The sign of the selected term, either +1 or -1.

term: tuple[int, ...]

The term selected for elimination, represented as a tuple of variable indices.