-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derivatives do not inherit SelfAntiCommuting properly in canonicalise #113
Comments
If I edit properties/Derivative.hh and add "public Inherit<SelfCommutingBehaviour>" to the definition of "class Derivative", then canonicalise behaves as expected. (In cadabra v1, the corresponding modification goes into modules/algebra.hh.) |
Thanks for digging into this! I suspect that there are still issue lurking here (those comments about anti-commuting derivatives in the source point to problems which cannot really be solved with the current setup). But since your fix squashes the bug you reported and it does not break any of the other tests, I have pushed to github now. |
Thanks! I also intended to mention that I noticed in pythoncdb/py_properties.cc that there is a line:
I don't understand how the python bindings work, and I wasn't sure if this needed to be modified to track with the change in Derivative.cc. |
To be consistent this should also include |
They do work in
sort_product
, so it is most likely a bug incore/Exchange.cc
.The text was updated successfully, but these errors were encountered: