Function sequant::expand_P_op(const Product&)¶ Defined in File spin.cpp Function Documentation¶ ExprPtr sequant::expand_P_op(const Product &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