Dynamical Generators

The propagate routine simulates the dynamics of a state $|Ψ⟩$ or $ρ̂$ under the assumption that the dynamics are described by a generator object. The exact equation of motion is implicit in the Propagator, but all propagators implemented in the QuantumPropagators package assume that the generator is the time-dependent Hamiltonian $Ĥ(t)$ in the Schrödinger equation ($ħ=1$)

\[\tag{SE} i \frac{∂}{∂t} |Ψ⟩ = Ĥ(t) |Ψ⟩\,.\]

Operators

When evaluating the right-hand-side of Eq. (SE), the time-dependent generator $Ĥ(t)$ is first evaluated into a static operator object $Ĥ$ for a specific point in time via the QuantumPropagators.Controls.evaluate function. The 5-argument LinearAlgebra.mul! then implements the application of the operator to the state $|Ψ⟩$.

Hamiltonians

The built-in hamiltonian function initializes a Generator object encapsulating a generator of the most general form

\[\tag{Generator} Ĥ(t) = Ĥ_0 + \sum_l a_l(\{ϵ_{l'}(t)\}, t) \, Ĥ_l\,.\]

The Hamiltonian consists of an (optional) drift term $Ĥ_0$ and an arbitrary number of control terms that separate into a scalar control amplitude $a_l(\{ϵ_{l'}(t)\}, t)$ and a static control operator $Ĥ_l$. Each control amplitude may consist of one or more control function $ϵ_{l'}(t)$. Most commonly, $a_l(t) ≡ ϵ_l(t)$, and thus the Hamiltonian is of the simpler form

\[Ĥ(t) = Ĥ_0 + \sum_l ϵ_l(t) \, Ĥ_l\,.\]

The evaluate function evaluates time-dependent Generator instances into static Operator objects.

Control Amplitudes

The distinction between control amplitudes and control functions becomes important only in the context of optimal control, where the control functions are directly modified by optimal control, whereas the control amplitudes determine how the control functions couple to the control operators, or account for explicit time dependencies in the Hamiltonian.

Just as the evaluate function evaluates time-dependent generators into static operators, it also evaluates control amplitudes or control functions to scalar values.

Liouvillians

In an open quantum system, the equation of motion is assumed to take the exact same form as in Eq. (SE),

\[i \frac{∂}{∂t} ρ̂ = L(t) ρ̂\,,\]

where $L$ is the Liouvillian up to a factor of $i$.

The object representing $L$ should be constructed with the liouvillian function, with convention=:TDSE. Just like hamiltonian, this returns a Generator instance that evaluate turns into a static Operator to be applied to a vectorized (!) state $ρ̂$.

Arbitrary Generators

For an "unusual" generator, first decide at which level to address the issue:

In general, the methods defined in the QuantumPropagators.Controls module (respectively QuantumControl.Controls in the broader context of optimal control) determine the relationship between generators, operators, amplitudes, and controls and must be implemented for any custom types.

In particular,

See QuantumPropagators.Interfaces.check_generator for the full required interface (or the extended QuantumControl.Interfaces.check_generator that also includes the methods required for optimal control).