BloqadeODE.SchrodingerEquation
— Typestruct SchrodingerEquation
Type for Schrodinger equation. A SchrodingerEquation
object is a callable object that has method f(dstate, state, p, t)
that fits into a standard ODE problem.
BloqadeODE.SchrodingerProblem
— Typestruct SchrodingerProblem
SchrodingerProblem(reg, tspan, hamiltonian; kw...)
Define a Schrodinger equation problem that uses ODE solver from OrdinaryDiffEq
to solve the dynamics.
Arguments
register
: required, the evolution problem register, can be aSubspaceArrayReg
or anArrayReg
fromYao
.tspan
: required, a(start, stop)
tuple or a single numbert
, the single value formt
is equivalent to(zero(t), t)
.hamiltonian
: required, the evolution hamiltonian, can be created viarydberg_h
.
Common Keyword Arguments
algo
: optional, algorithm to use, this only works for theemulate!
interface. forsolve
or integrator interface, one will need to specify the algorithm explicitly.progress
: print progress bar or not, this may effect the performance when problem scale is small, default istrue
.progress_steps
: steps to update the progress bar, default is5
.reltol
: relative tolerance, default is 1e-8.abstol
: absolute tolerance, default is 1e-8.
Further References
For more ODE options, please refer to Common Solver Options. The SchrodingerProblem
type supports most of the standard DiffEq problem interface.