FermionAction

class FermionAction

Bases: NamedTuple

A fermionic creation or annihilation action.

Attributes

action: bool

Whether this action is a creation (True) or annihilation (False) one.

mode: int

The spin-less fermionic mode index on which to act.

Methods

classmethod annihilation(mode)

Constructs an annihilation action on the fermionic mode at mode.

Parameters:

mode (int) – the spin-less fermionic mode on which to act.

Return type:

Self

classmethod creation(mode)

Constructs a creation action on the fermionic mode at mode.

Parameters:

mode (int) – the spin-less fermionic mode on which to act.

Return type:

Self

Inherited Methods

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.