QuantumBFS/QuDiffEq.jl

The solve method doe not work

dgan181 opened this issue · 1 comments

It seem solve does not work independently in QuDiffEq. It required using OrdinaryDiffEq

using  QuDiffEq

# dx/dt = 3*x + 4

M = hcat(3.0)
b = [4.0]
x_0 = [2.0]
tspan = (0.0, 1.0)

qprob = QuLDEProblem(M, b, x_0, tspan)
sol = solve(qprob, QuLDE(5))
ERROR: UndefVarError: solve not defined
using  QuDiffEq
using OrdinaryDiffEq

# dx/dt = 3*x + 4

M = hcat(3.0)
b = [4.0]
x_0 = [2.0]
tspan = (0.0, 1.0)

qprob = QuLDEProblem(M, b, x_0, tspan)
sol = solve(qprob, QuLDE(5))

Prints result

1-element Vector{ComplexF64}:
 59.999999999999986 + 0.0im

I think now there's DiffEqBase which provides the interface so ideally it can depend on that instead