From 66c15b125b676e243acd704c6df8b13afe479adf Mon Sep 17 00:00:00 2001 From: Kento Ueda <38037695+to24toro@users.noreply.github.com> Date: Sat, 23 Mar 2024 01:16:30 +0900 Subject: [PATCH] Remove class Array text from models and solvers (#349) Co-authored-by: Daniel Puzzuoli --- qiskit_dynamics/models/generator_model.py | 2 +- qiskit_dynamics/solvers/solver_functions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qiskit_dynamics/models/generator_model.py b/qiskit_dynamics/models/generator_model.py index a9e1ff44b..ba1eca3b0 100644 --- a/qiskit_dynamics/models/generator_model.py +++ b/qiskit_dynamics/models/generator_model.py @@ -117,7 +117,7 @@ class GeneratorModel(BaseGeneratorModel): G(t) = \sum_i s_i(t) G_i + G_d - where the :math:`G_i` are matrices (represented by :class:`Operator` or :class:`Array` objects), + where the :math:`G_i` are matrices (represented by an :class:`Operator` or array), the :math:`s_i(t)` are signals represented by a list of :class:`Signal` objects, and :math:`G_d` is the constant-in-time static term of the generator. """ diff --git a/qiskit_dynamics/solvers/solver_functions.py b/qiskit_dynamics/solvers/solver_functions.py index 22f0a5ea6..e93a7afaf 100644 --- a/qiskit_dynamics/solvers/solver_functions.py +++ b/qiskit_dynamics/solvers/solver_functions.py @@ -143,7 +143,7 @@ def solve_ode( \dot{y}(t) = f(t, y(t)), where :math:`f` is a callable function and the state :math:`y(t)` is an - arbitrarily-shaped complex :class:`Array`. + arbitrarily-shaped complex array. The ``method`` argument exposes a variety of underlying ODE solvers. Optional arguments for any of the solver routines can be passed via ``kwargs``. @@ -235,7 +235,7 @@ def solve_lmde( \dot{y}(t) = G(t)y(t). where :math:`G(t)` is a square matrix valued-function called the *generator*, and :math:`y(t)` - is an :class:`Array` of appropriate shape. + is an array of appropriate shape. Thus function accepts :math:`G(t)` as a ``qiskit_dynamics`` model class, or as an arbitrary callable.