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

Changing import path for diffrax AbstractSolver #301

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qiskit_dynamics/solvers/solver_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _is_jax_method(method: any) -> bool:
def _is_diffrax_method(method: any) -> bool:
"""Check if method is a diffrax method."""
try:
from diffrax.solver import AbstractSolver
from diffrax import AbstractSolver

return isinstance(method, AbstractSolver)
except ImportError:
Expand Down Expand Up @@ -156,7 +156,7 @@ def solve_ode(
- ``'jax_RK4'``: JAX backend implementation of ``'RK4'`` method.
- ``'jax_odeint'``: Calls ``jax.experimental.ode.odeint`` variable step solver.
- ``diffrax.diffeqsolve`` - a JAX solver function, called by passing ``method``
as a valid ``diffrax.solver.AbstractSolver`` instance. Requires the ``diffrax`` library.
as a valid ``diffrax.AbstractSolver`` instance. Requires the ``diffrax`` library.

Results are returned as a :class:`OdeResult` object.

Expand Down
Loading