Function sequant::expand_P_op(const Product&, bool, bool)

Function Documentation

ExprPtr sequant::expand_P_op(const Product &product, bool keep_canonical = true, bool pair_wise = true)

Expand a product containing the particle permutation (P) tensor.

Parameters:

product – a Product that may or may not contain P tensor

Returns:

an ExprPtr containing sum of expanded terms if P is present