Skip to main content

QUBO components

Project description

TNO Quantum: Optimization - QUBO - Components

TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.

This package contains the components to define QUBOs and solvers.

Documentation

Documentation of the tno.quantum.optimization.qubo.components package can be found here.

Install

Easily install the tno.quantum.optimization.qubo.components package using pip:

$ python -m pip install tno.quantum.optimization.qubo.components

Usage

The QUBO Components package can be used to define custom solver classes as shown in the following example.

from tno.quantum.optimization.qubo.components import QUBO, Solver, BasicResult

class CustomSolver(Solver[BasicResult]):
   def _solve(self, qubo: QUBO) -> BasicResult:
      result = ... # solve QUBO and construct result
      return result

The example below shows how to obtain all installed solvers.

An instance of a solver can be obtained via the get_instance() function on an SolverConfig instance.

Note: the "simulated_annealing_solver" solver shown in the example requires tno.quantum.optimization.qubo.solvers to be installed.

from tno.quantum.optimization.qubo.components import SolverConfig

supported_solvers = SolverConfig.supported_items()

solver_config = SolverConfig(name="simulated_annealing_solver", options={})
solver = solver_config.get_instance()

(End)use limitations

The content of this software may solely be used for applications that comply with international export control laws.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file tno_quantum_optimization_qubo_components-1.2.2.tar.gz.

File metadata

File hashes

Hashes for tno_quantum_optimization_qubo_components-1.2.2.tar.gz
Algorithm Hash digest
SHA256 0569990fe7f6564fbc88fb91b973350e032d3cb171dd4fb40a67168562c56b2e
MD5 a2b841807b67b3e0ada808445b2f19d6
BLAKE2b-256 c871bd06ac06b30f42a4e97da6e8c6249ac54f0f329b22747e3f9aad026ad012

See more details on using hashes here.

File details

Details for the file tno_quantum_optimization_qubo_components-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tno_quantum_optimization_qubo_components-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d6f13d9a76e186cee7faeace12dd31f6bf32f7248f79cb93edba6e0fbb4886b
MD5 4ba50f6bc8d13ef1ca824570a22de087
BLAKE2b-256 29265cf85d5c52b5f717f135595129821cd36ad3adcd3dbf7b7101b780edc032

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page