Solvers
QuboSolver(instance, config=None)
Bases: BaseSolver
Dispatcher that selects the appropriate solver (quantum or classical) based on the SolverConfig and delegates execution to it.
Source code in qubosolver/solver.py
QuboSolverClassical(instance, config=None)
Bases: BaseSolver
Classical solver for QUBO problems. This implementation delegates the classical solving task to the external classical solver module (e.g., CPLEX, D-Wave SA, or D-Wave Tabu), as selected via the SolverConfig.
After obtaining the raw solution, postprocessing (e.g., bit-flip local search) is applied.
Source code in qubosolver/solver.py
QuboSolverQuantum(instance, config=None)
Bases: BaseSolver
Quantum solver that orchestrates the solving of a QUBO problem using embedding, pulse shaping, and quantum execution pipelines.
Initialize the QuboSolver with the given problem and configuration.
PARAMETER | DESCRIPTION |
---|---|
instance
|
The QUBO problem to solve.
TYPE:
|
config
|
Solver settings including backend and device.
TYPE:
|
Source code in qubosolver/solver.py
embedding()
Generate a physical embedding (register) for the QUBO variables.
RETURNS | DESCRIPTION |
---|---|
Register
|
Atom layout suitable for quantum hardware.
TYPE:
|
Source code in qubosolver/solver.py
pulse(embedding)
Generate the pulse sequence based on the given embedding.
PARAMETER | DESCRIPTION |
---|---|
embedding
|
The embedded register layout.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
tuple
|
A tuple of - Pulse: Pulse schedule for quantum execution. - QUBOSolution: Initial solution of generated from pulse shaper
TYPE:
|
Source code in qubosolver/solver.py
solve()
Execute the full quantum pipeline: preprocess, embed, pulse, execute, postprocess.
RETURNS | DESCRIPTION |
---|---|
QUBOSolution
|
Final result after execution and postprocessing.
TYPE:
|