Function sequant::swap_bra_ket

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:

exprExprPtr to transform

Returns:

transformed expression