-
BaseSolver — Abstract base class for all solvers (quantum or classical).
You are reading Maximum Independent Set v0.2.3, an older version of this documentation. Go to the latest version (v0.3.2)
mis.pipeline.basesolver
module
mis.pipeline.basesolver
Shared definitions for solvers.
This module is useful mostly for users interested in writing new solvers.
Classes
class
BaseSolver
(instance: MISInstance, config: SolverConfig)
Bases : ABC
Abstract base class for all solvers (quantum or classical).
Provides the interface for solving, embedding, pulse shaping, and execution of MISproblems.
The BaseSolver also provides a method to execute the Pulse and Register
Initialize the solver with the MISinstance and configuration.
Parameters
-
instance : MISInstance — The MISproblem to solve.
-
config : SolverConfig — Configuration settings for the solver.
Methods
-
solve — Solve the given MISinstance.
method
solve
() → list[MISSolution]
Solve the given MISinstance.
Returns
-
list[MISSolution] — A list of solutions, ranked from best (lowest energy) to worst (highest energy).
