Function sequant::expand_P_op(const ExprPtr&)¶ Defined in File spin.cpp Function Documentation¶ ExprPtr sequant::expand_P_op(const ExprPtr &expr)¶ Expand an expression containing the particle permutation (P) tensor. Parameters: expr – any ExprPtr Returns: an ExprPtr containing sum of expanded terms if P is present