mabuchilab / QNET

Computer algebra package for quantum mechanics and photonic quantum networks
https://qnet.readthedocs.io/
MIT License
71 stars 23 forks source link

Incorrect result for product of sums #91

Closed goerz closed 5 years ago

goerz commented 5 years ago
>>> from qnet import *
>>> i = IdxSym('i')
>>> hs_i = LocalSpace(StrLabel(i))
>>> Sum(i, 1, 10)(Destroy(hs=hs_i)) * Sum(i, 1, 10)(Create(hs=hs_i))
∑_{i,i'=1}^{10} â⁽ⁱ⁾ â^(i')†