Template Function sequant::base_field(BraRange, KetRange)

Function Documentation

template<typename BraRange, typename KetRange>
Field sequant::base_field(BraRange bra, KetRange ket)

Returns:

the scalar Field obtained by OR-ing the IndexBasis::field() of the (non-null) indices in bra and ket: Field::Complex if any of them is over a complex basis, else Field::Real (Complex dominates, C v R = C). This is the “base field” of a tensor with those bra/ket indices – the field over which its bra<->ket dual pairing is defined.