Skip to main content

Python bindings for QUBO++ (HUBO/QUBO symbolic computation)

Project description

PyQBPP: Python Interface for QUBO++

PyQBPP is a Python wrapper for the QUBO++ library, allowing you to model and solve combinatorial optimization problems using QUBO/HUBO formulations directly from Python.

Features

  • Symbolic construction of QUBO/HUBO expressions in Python
  • Access to QUBO++ solvers (Easy Solver, Exhaustive Solver, ABS3)
  • Familiar Python syntax with the full power of the QUBO++ engine

Supported Environment

  • Linux (Ubuntu 20.04 or later)
  • x86_64 or arm64 (aarch64) CPUs
  • CUDA-enabled NVIDIA GPUs
  • Python 3.8 or later

Installation

PyQBPP is available on PyPI. We recommend using a Python virtual environment (venv) to install PyQBPP. No sudo privileges are required.

$ python3 -m venv ~/qbpp-env
$ source ~/qbpp-env/bin/activate
$ pip install pyqbpp

Without a license key, the number of binary variables is limited to 100.

To remove this limit, register from the User Portal to obtain a trial license key.

Once you have a license key, activate it as follows:

$ qbpp-license -k YOUR-LICENSE-KEY -a

Quick Example

The following program solves a simple QUBO problem by expanding and minimizing the expression f = (a + 2b + 3c - 4)^2.

import pyqbpp as qbpp

a = qbpp.var("a")
b = qbpp.var("b")
c = qbpp.var("c")
f = qbpp.sqr(a + 2 * b + 3 * c - 4)
f = qbpp.simplify_as_binary(f)
print("f =", f)

solver = qbpp.EasySolver(f)
sol = solver.search(time_limit=10, target_energy=0)
print("sol =", sol)

Output:

f = 16 -7*a -12*b -15*c +4*a*b +6*a*c +12*b*c
sol = Sol(energy=0, {a: 1, b: 0, c: 1})

Documentation

https://qubo-plus.github.io/python/

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyqbpp-2026.6.18-py3-none-manylinux_2_31_x86_64.whl (96.5 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ x86-64

pyqbpp-2026.6.18-py3-none-manylinux_2_31_aarch64.whl (91.4 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ ARM64

File details

Details for the file pyqbpp-2026.6.18-py3-none-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: pyqbpp-2026.6.18-py3-none-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 96.5 MB
  • Tags: Python 3, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for pyqbpp-2026.6.18-py3-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 309e9d3c2cc5e1bfdbcd14de807ea9796bc985a5a4d63c62aa857b27b4e7e9ef
MD5 b019e238b5f71d78d1275a50615db107
BLAKE2b-256 30ddd4ebdfc4d431a3aa5ab132401cc42578e4b65e3045566b722cbd7ac690c2

See more details on using hashes here.

File details

Details for the file pyqbpp-2026.6.18-py3-none-manylinux_2_31_aarch64.whl.

File metadata

  • Download URL: pyqbpp-2026.6.18-py3-none-manylinux_2_31_aarch64.whl
  • Upload date:
  • Size: 91.4 MB
  • Tags: Python 3, manylinux: glibc 2.31+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for pyqbpp-2026.6.18-py3-none-manylinux_2_31_aarch64.whl
Algorithm Hash digest
SHA256 442e19b476e4d8feb6bab0e3354027d53b7838c761aa091192e8a5b3530ece23
MD5 228778820e46f68741d3d71a650c9056
BLAKE2b-256 7769f0efa012b30365f196a1357daf55d917d39014ad4577a4c4697361dd364d

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