Paul Nation
unread,Oct 25, 2012, 11:33:47 PM10/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qu...@googlegroups.com
Andrew,
The master equation solver, mesolve, does not need a time-independent
term to work, but the monte carlo method does. I have attached an
example that has a completely time-dependent Hamiltonian on line #45.
If you want to use the monte-carlo method, you could always define an
arbitrary time-independent term H0 and multiply it by zero. This
requirement may be removed in the future, but for now this is the best
way to go.
Cheers,
Paul
On 10/26/2012 03:47 AM, Andrew Glaudell wrote:
> Hello,
>
> My name is Andrew, and I am an undergraduate using this
> nifty software for modeling spin qubits open to the environment with a
> time dependent magnetic field (direction and magnitude). I've been
> using your guide to try and write a time dependent Hamiltonian, and I
> noticed that both the string and function based methods require at
> least one time independent term. This is unfortunately impossible for
> me, because at some point during the simulation, we would like to
> potentially shut off the magnetic field. This means no terms of the
> Hamiltonian are independent of time, of course, regardless of which
> frame is chosen.
>
> This leaves the Hamiltonian function method for me to use; however,
> the collapse operators I am using are dependent on time themselves, as
> we would like to model pure dephasing of the qubit along the direction
> of the magnetic field (which as stated before, is time dependent).
> Thus, the Hamiltonian function method is not usable.
>
> Perhaps it's due to my lack of experience on the topic/ with QuTiP
> (had to run a personal crash course on python coding and density
> matrix theory for this project over the course of a month or so), but
> I don't necessarily see a solution to my problem. Do you have any
> suggestions to aid me?