Skip to main content

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

The wheel contains only the Python code. The shared libraries (about 330 MB) are downloaded automatically from GitHub Releases the first time you run a PyQBPP program, verified against the SHA-256 recorded in the wheel, and kept in ~/.cache/pyqbpp/ (set PYQBPP_CACHE_DIR to change it). To download them in advance, run qbpp-license:

$ qbpp-license

For machines without internet access, see the installation guide.

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/

Metadata

Release files for pyqbpp 2026.10.21

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

Built distributions (wheels)

Table of built distributions (wheels) for pyqbpp 2026.10.21
File Interpreter ABI Platform Actions
pyqbpp-2026.10.21-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for pyqbpp-2026.10.21-py3-none-manylinux_2_28_x86_64.whl
pyqbpp-2026.10.21-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for pyqbpp-2026.10.21-py3-none-manylinux_2_28_aarch64.whl

Total release size: 3.9 MB

Release files / pyqbpp-2026.10.21-py3-none-manylinux_2_28_x86_64.whl

Download URL pyqbpp-2026.10.21-py3-none-manylinux_2_28_x86_64.whl
Size 2.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
364d703a85ed8f2acb679f38932bf5cacb94f7ba588339324ffe07df4d2a8ea1
BLAKE2b-256 checksum
How to use checksums
1e61af0ac604ba2f05d9fd6ec5b2eb1f597717bb4d586bbb9b3936d32e26d5cd
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.10.21-py3-none-manylinux_2_28_aarch64.whl

Download URL pyqbpp-2026.10.21-py3-none-manylinux_2_28_aarch64.whl
Size 1.9 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7749c751d8dd0de4bad8167486ea68572164e4b726cea248c16f415de5223c98
BLAKE2b-256 checksum
How to use checksums
10d9aa46760b53839701fe60e6b1562c1525125fed84620d59cb21284abd0f7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for pyqbpp 2026.10.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.10.21 This release

2 release files No provenance

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