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
Release files for pyqbpp 2026.9.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqbpp-2026.9.6-py3-none-manylinux_2_31_x86_64.whl | Python 3 | none | Linux glibc 2.31+ x86-64 | Details |
| pyqbpp-2026.9.6-py3-none-manylinux_2_31_aarch64.whl | Python 3 | none | Linux glibc 2.31+ ARM64 | Details |
Total release size: 229.5 MB
Release files / pyqbpp-2026.9.6-py3-none-manylinux_2_31_x86_64.whl
| Download URL | pyqbpp-2026.9.6-py3-none-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 117.2 MB |
| Tags | Linux glibc 2.31+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
7230ff5872a10faddaaae828195417fc0b07b7e947c060a928523844ba92904e
|
|
BLAKE2b-256 checksum How to use checksums |
e50fefe3f9dead8b40ed2fcf6e917059899d5b5e78df05a5bde5579175cf50b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / pyqbpp-2026.9.6-py3-none-manylinux_2_31_aarch64.whl
| Download URL | pyqbpp-2026.9.6-py3-none-manylinux_2_31_aarch64.whl |
|---|---|
| Size | 112.2 MB |
| Tags | Linux glibc 2.31+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
4d2fef313aca4bb08fe4b1033bbbf7609a4521e6d3ba659474f8948806c69502
|
|
BLAKE2b-256 checksum How to use checksums |
0944ffcfb7ed26bc0a80e2268c6b1cdcdb3f7fd9a5565aa42ef4b7abdc51b2b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|