Function sequant::mbpt::expand_P_op(const ProductPtr&)

Function Documentation

ExprPtr sequant::mbpt::expand_P_op(const ProductPtr &product)

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