Add preprocessing before amplitude summation optimization
Add preprocessing before amplitude summation optimization

This preprocessing will make make cases where we have complex powers
inside the amplitude have better amplitude summation optimization.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge