How to use sympy.physics.quantum Commutator?

送分小仙女□ 提交于 2019-12-05 21:44:20

Currently in SymPy, Commutator._eval_expand_commutator, does not know about this identity so it has to expand the commutators (in the .doit method as you have identified) in order to be able to simplify the expression.

What would be needed for this to work, would be to add special case(s) to the Commutator._eval_expand_commutator method for when the arguments of a commutator contains commutators, and then check for known identities.

I have opened an issue for this here: https://github.com/sympy/sympy/issues/10892

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!