qlauncher.routines.orca.algorithms

qlauncher.routines.orca.algorithms#

Summary#

Classes:

BBS

Binary Bosonic Solver algorithm class.

Reference#

class qlauncher.routines.orca.algorithms.BBS(algorithm_format: Literal['qubo', 'qubo_fn'] = 'qubo', **kwargs)[source]#

Bases: Algorithm

Binary Bosonic Solver algorithm class.

This class represents the Binary Bosonic Solver (BBS) algorithm. BBS is a quantum-inspired algorithm that solves optimization problems by mapping them onto a binary bosonic system. It uses a training process to find the optimal solution.

Attributes: - learning_rate (float): The learning rate for the algorithm. - updates (int): The number of updates to perform during training. - tbi_loops (str): The type of TBI loops to use. - print_frequency (int): The frequency at which to print updates. - logger (Logger): The logger object for logging algorithm information.

run(problem: Problem, backend: OrcaBackend, formatter: Callable[[Problem], ndarray]) Result[source]#

Runs the algorithm on a specific problem using a backend.

Parameters:
  • problem (Problem) – The problem to be solved.

  • backend (Backend) – The backend to be used for execution.

get_bitstring(result: List[float]) str[source]#
construct_results(solver: BinaryBosonicSolver) Result[source]#