QUBO optimization
Project description
TNO Quantum: Optimization - QUBO
TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.
This package provides a comprehensive suite of tools for creating QUBO objects, defining QUBO solvers, and using them to solve QUBO problems. It also includes features for pre- and post-processing, as well as the ability to create pipelines that integrate all these components seamlessly
Documentation
Documentation of the tno.quantum.optimization.qubo package can be found here.
Install
Easily install the tno.quantum.optimization.qubo package using pip:
$ pip install tno.quantum.optimization.qubo
By default, the package is installed without external solver dependencies. You can specify which QUBO solvers you would like to install. Available options are [dwave, qubovert, qaoa]. Alternatively, you can install all solvers simultaneously using the [all] option:
$ pip install tno.quantum.optimization.qubo[all]
Usage
The following example shows how to construct a QUBO object.
from tno.quantum.optimization.qubo import QUBO
qubo = QUBO([
[ 1, -2, 3],
[-4, 5, -6],
[ 7, -8, 9]
])
from tno.quantum.optimization.qubo import SolverConfig
solver = SolverConfig(name='bf_solver').get_instance()
# Solve the QUBO
result = solver.solve(qubo)
result.best_bitvector # BitVector(000)
(End)use limitations
The content of this software may solely be used for applications that comply with international export control laws.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tno_quantum_optimization_qubo-1.0.0.tar.gz.
File metadata
- Download URL: tno_quantum_optimization_qubo-1.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7b85b1636c5e8a26e45b729152f34086766cce87afddec04e8146dad913dca1
|
|
| MD5 |
b831d6e0ab3d47d81d7c7fda0a62af38
|
|
| BLAKE2b-256 |
821e87f5351df976992f07f25cf442daa155cc366d9350eab876812272d5e693
|
File details
Details for the file tno_quantum_optimization_qubo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tno_quantum_optimization_qubo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71fb5ff18d8097e67afa34ac918c36cdcbfbd65542db3566b3501c3fcaeb55cd
|
|
| MD5 |
30bbb194078821456bef645dda015aef
|
|
| BLAKE2b-256 |
63a08a8935f5c19f1c50c3e03953a2315f132957ae0b50097d95f71d4083b67e
|