Taking Cosine of Quantum Opertor

53 views
Skip to first unread message

Raman Sehgal

unread,
Jan 30, 2020, 7:36:46 AM1/30/20
to sympy
Hello Sympy experts,
I am trying to do some quantum mechanics using sympy
I want to take cosine of an quantum operator matrix

I didn't find any function in Quantum Operator that will help me.

could you please help me with that, or suggest how it can be done


Regards,


S.Y. Lee

unread,
Jan 31, 2020, 6:18:49 AM1/31/20
to sympy
Unfortunately, there may not be any API to compute the matrix cosine or a matrix sine
(I'm not familiar with the topic of quantum mechanics, but if you mean by computing the matrix-valued functions with diagonalization)
And unfortunately, I'm not very willing to introduce some new matrix-functional API until expression blowup problems are resolved,
but as there already is `Matrix.exp` method, you can be able to compute matrix cosine from the exponential with the Euler identity.
Reply all
Reply to author
Forward
0 new messages