Pauli Matrices

Runge-Kutta 4 Solver

To run the test against the Lindblad equation, the library includes a simple implementation of the Runge-Kutta4 algorithm for ODEs.

BackAction.rk4Function
rk4(f, y0, tspan, nsteps)

Arguments

  • f::Function: function $f(t, y)$ defininf the system of ODEs
  • y0::Vector{Float}: inital condition
  • tspan::Tuple{Float64}: initial and final time
  • nsteps::Int: number of steps.

Returns

An array Array{typeof(y0[1])} with dimensions (ndims(y0), nsteps) with the values of $y$ at each step.

source