ffsim.FermionAction

class ffsim.FermionAction(action: bool, spin: bool, orb: int)[source]

Bases: NamedTuple

A fermionic action.

Parameters:
  • action (bool) – False = destroy (annihilate), True = create

  • spin (bool) – False = alpha (spin up), True = beta (spin down)

  • orb (int) – Index of the orbital to act on

Attributes

action

Alias for field number 0

orb

Alias for field number 2

spin

Alias for field number 1

action: bool

Alias for field number 0

orb: int

Alias for field number 2

spin: bool

Alias for field number 1

Methods