Skip to main content

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.

Metadata

Release files for tno.quantum.optimization.qubo.components 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tno.quantum.optimization.qubo.components 1.2.2
File Size Uploaded
tno_quantum_optimization_qubo_components-1.2.2.tar.gz 33.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tno.quantum.optimization.qubo.components 1.2.2
File Interpreter ABI Platform
tno_quantum_optimization_qubo_components-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 76.0 kB

Release files / tno_quantum_optimization_qubo_components-1.2.2.tar.gz

Download URL tno_quantum_optimization_qubo_components-1.2.2.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0569990fe7f6564fbc88fb91b973350e032d3cb171dd4fb40a67168562c56b2e
BLAKE2b-256 checksum
How to use checksums
c871bd06ac06b30f42a4e97da6e8c6249ac54f0f329b22747e3f9aad026ad012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Release files / tno_quantum_optimization_qubo_components-1.2.2-py3-none-any.whl

Download URL tno_quantum_optimization_qubo_components-1.2.2-py3-none-any.whl
Size 42.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d6f13d9a76e186cee7faeace12dd31f6bf32f7248f79cb93edba6e0fbb4886b
BLAKE2b-256 checksum
How to use checksums
29265cf85d5c52b5f717f135595129821cd36ad3adcd3dbf7b7101b780edc032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page