Function sequant::expand_P_op(const ExprPtr&, bool, bool)¶ Defined in File spin.cpp Function Documentation¶ ExprPtr sequant::expand_P_op(const ExprPtr &expr, bool keep_canonical = true, bool pair_wise = true)¶ 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