Function sequant::swap_bra_ket¶ Defined in File spin.cpp Function Documentation¶ ExprPtr sequant::swap_bra_ket(const ExprPtr &expr)¶ Preserving particle symmetry, swaps bra and ket labels on all tensors in an expression. Parameters: expr – ExprPtr to transform Returns: transformed expression