Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The solve method doe not work #39

Open
dgan181 opened this issue Apr 13, 2023 · 1 comment
Open

The solve method doe not work #39

dgan181 opened this issue Apr 13, 2023 · 1 comment

Comments

@dgan181
Copy link
Collaborator

dgan181 commented Apr 13, 2023

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
@Roger-luo
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants