mis.pipeline.basesolver
source module mis.pipeline.basesolver
Shared definitions for solvers.
This module is useful mostly for users interested in writing new solvers.
Classes
-
BaseSolver — Abstract base class for all solvers (quantum or classical).
source 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.
source method BaseSolver.solve() → Execution[list[MISSolution]]
Solve the given MISinstance.
Returns
-
Execution[list[MISSolution]] — A list of solutions, ranked from best (lowest energy) to worst (highest energy).