Integration not successful in Python QuTiP

∥☆過路亽.° 提交于 2019-12-07 07:56:31
J Richard Snape

From a programming point of view, the problem appears to be your value of gamma and therefore the size of your collapse operators. Print out gamma - it is of the order 10**25 - this seems to be what is preventing the solver from converging.

Just for testing (I'm an engineer, not a quantum physicist...), I put in a smaller value of gamma (e.g. 0.1), the solver seems to work and gives apparently reasonable output in results.states

I don't quite understand your gamma - it seems to have units of cm-1s-2 as you have set it up. I wonder if you only want to divide by hbar once, maybe. As I say, I'm not a quantum physicist, so I'm only guessing here based on what makes the programming hang together combined with a bit of dimensional analysis.

EDIT

OP indicates in comments that the wrong order of magnitude / units for gamma does seem to be the programming issue (i.e. preventing numerical calculus from converging), but isn't totally clear on how to calculate gamma. At this stage, it may be worth posting a question at either http://physics.stackexchange.com or http://math.stackexchange.com about that - referencing this one for context if necessary.

EDIT 2

I note you asked this related question on the physics site. This makes it clear where the expression for gamma comes from and thereby clarifies that the constant terms presented as simply 30 and 150 in this question actually have units (Energy and frequency respectively). This changes the dimensional analysis - the units of gamma are s-1 or, with appropriate conversion, cm-1.

It also shows the value you mention in comments - 300 cm-1.

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