Skip to main content

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, dqo]. 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


Download files

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

Source Distribution

tno_quantum_optimization_qubo-1.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

tno_quantum_optimization_qubo-1.0.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file tno_quantum_optimization_qubo-1.0.1.tar.gz.

File metadata

File hashes

Hashes for tno_quantum_optimization_qubo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4a3718011d2e6eedccbec1fba44dc837507c91e5a4991e6c53a50cf15135967f
MD5 0cb1d4841121fc07aaa703534a04c486
BLAKE2b-256 0c11cc5aa119652ed12fde7c5716ee4a23d7a5ea3a74be44671e6b8b685899bc

See more details on using hashes here.

File details

Details for the file tno_quantum_optimization_qubo-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tno_quantum_optimization_qubo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24fe04653a4f537e7e4e4a30646b982e32dd07331b31312dc0a0198f5962a0e7
MD5 fcad10bab696a1750c894b9ca1e2f9ef
BLAKE2b-256 9b071658f661beeaec5631fe2df41296b19d06c1680aca7ff968e2b8bec6ee6b

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