QuantumCumulants.jl icon indicating copy to clipboard operation
QuantumCumulants.jl copied to clipboard

Sums with IndexedVariable simplifies incorrectly

Open andia89 opened this issue 2 years ago • 1 comments

Related to #188 when using IndexedVariables some resulting sums get simplified incorrectly

Example:

@cnumbers N
ha = NLevelSpace(:atoms, 2)
i = Index(ha,:i,N,ha)
gi = IndexedVariable(:g, i)
s=∑(gi,i)+∑(gi,i)
SymbolicUtils.simplify(s)

outputs

2N*gi

which is not correct. Is the missing of an operator an issue?

andia89 avatar Dec 31 '23 08:12 andia89

Thanks for this issue and sorry for the very late reply. I solved this in version 0.2.27.

ChristophHotter avatar Mar 21 '24 15:03 ChristophHotter