Time dependant collapse operator in mesolve

51 views
Skip to first unread message

Pascal Obled

unread,
Nov 16, 2022, 4:15:56 PM11/16/22
to QuTiP: Quantum Toolbox in Python
Hi

I would like to solve for a time dependant collapse operator in mesolve with a time dependence that cannot be separated from the operator. The form is a complex exponential depending on the time and the number operator like this: e^( -i t N ). It seems mesolve will only accept operators where the time dependence is a scalar and not a matrix. Is it possible to do this?

Simon Cross

unread,
Dec 4, 2022, 10:57:58 AM12/4/22
to qu...@googlegroups.com
Hi Pascal,

This is indeed somewhat difficult to achieve in QuTiP 4. In the
upcoming QuTiP 5, QobjEvo supports taking a function f(t) --> Qobj
directly, but that is perhaps not immediately helpful to you.

In your case though, there is a semi straight forward approach. The
number operator N is diagonal, so you can easily calculate e^(-itN)
yourself and then write the resulting time-dependent matrix as a sum
over the projectors.

For example, if your Hilbert space is dimension 4, you could write:

e_itN = [
[ qutip.basis(4, n).proj(), f"exp(-1j * {n} * t)" ]
for n in range(4)
]
q = qutip.QobjEvo(e_itN)

Hopefully that helps!

Just because I'm curious, where does this collapse operator arise?

Regards,
Simon
Reply all
Reply to author
Forward
0 new messages