ValeevGroup / SeQuant

SeQuant: Symbolic Algebra of Tensors over Operators and Scalars
GNU General Public License v3.0
17 stars 6 forks source link

Factor out the gcd of the scalars when two `Product` summands are fused. #211

Closed bimalgaudel closed 5 months ago

bimalgaudel commented 5 months ago

Eg.

In the second example, the gcd is factored out, and -1 is factored out afterward as a canonicalization step.