I am starting out with learning Qutip and was going through the tutorial and introduction examples on their website. However, I am running into the following Type error when I tried to run a function that calculates the commutator of two operators my code
error message
i get the same error when I try to multiple two operators, so I think its an issue with multiplication.
error from multiplication
Note: I ran the same code on google colab and it ran without any problem. But when I ran it locally on pycharm and jupyter lab, I get this error. Could some please help me resolve this. Thank you!
I tried searching these errors on google and also tried chatgpt, but wasn’t able to resolve it. I have tried reinstalling python, jupyter and qutip, and made sure I ws using the right version of python and numpy required by qutip. But the error still persists
Ali Mustafa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.