In quantum field theory and statistical mechanics, the Witten index at the inverse temperature β is defined as a modification of the standard partition function: Note the (-1)F operator, where F is the fermion number operator.
In a supersymmetric theory, each nonzero energy eigenvalue contains an equal number of bosonic and fermionic states.
Because of this, the Witten index is independent of the temperature and gives the number of zero energy bosonic vacuum states minus the number of zero energy fermionic vacuum states.
In particular, if supersymmetry is spontaneously broken then there are no zero energy ground states and so the Witten index is equal to zero.
A more refined invariant in 2-dimensional theories, constructed using only the right-moving part of the fermion number operator together with a 2-parameter family of variations, is the elliptic genus.