This release is a pre-release and may not be stable for production use.
VeloxQ SDK: README
This project provides a configurable Python API to interact with the VeloxQ platform, designed to provide users with a powerful, robust and user-friendly interface to upload and solve complex optimization problems using an extensive list of physics-inspired and metaheuristic algorithms.
Find additional guides on configuration, jobs, solvers and result files in the VeloxQ SDK Wiki.
Installation & Setup
Install the VeloxQ API client as part of your Python environment. Ensure you have Python 3.9+:
pip install git+https://github.com/quantumz-io/veloxq_sdk.git
NOTE: It is recomended to install this package in a dedicated python environment to prevent any dependency problems.
Quickstart
Before executing any code from the API make sure that you have a proper API key configured. The easiest way to load the api key is using the environment variables:
export VELOX_TOKEN="12345678-90ab-cdef-1234-567890abcdef"
Then to solve your problem, the simplest approach is using solver.sample(...), which:
- Creates a
File(see below) for your problem instance (biases and couplings defined as lists, NumPy arrays, dictionaries, file paths, etc.). - Automatically submits a job to the VeloxQ platform.
- Waits until completion.
- Returns the job result.
It accepts the same argument types as File.from_instance.
Examples:
Submitting biases and couplings defined in memory:
-
Using lists:
from veloxq_sdk import VeloxQSolver solver = VeloxQSolver() biases = [1, -1, 0] couplings = [ [0, -1, 0], [-1, 0, -1], [0, -1, 0] ] result = solver.sample(biases, couplings) # Returns VeloxSampleSet object print(result)
-
Using NumPy arrays:
import numpy as np from veloxq_sdk import VeloxQSolver solver = VeloxQSolver() biases = np.array([1, -1, 0]) couplings = np.array([ [0, -1, 0], [-1, 0, -1], [0, -1, 0] ]) result = solver.sample(biases, couplings) print(result.first) # get lowest energy/state
-
Using dictionaries (sparse data):
from veloxq_sdk import VeloxQSolver solver = VeloxQSolver() biases = {0: 1.0, 2: -1.0} couplings = {(0, 1): -1.0, (1, 2): 0.5} result = solver.sample(biases=biases, couplings=couplings) print(result.energy) # print energies
-
Using
dimod.BinaryQuadraticModelimport dimod from veloxq_sdk import VeloxQSolver bqm = dimod.BinaryQuadraticModel({0: 1.0, 2: -1.0}, {(0, 1): -1.0, (1, 2): 0.5}, 0, dimod.SPIN) solver = VeloxQSolver() result = solver.sample(bqm) print(result.sample) # print all found states
Submitting a problem defined in a file:
from veloxq_sdk import VeloxQSolver
solver = VeloxQSolver()
result = solver.sample("ising_model.h5")
print(result)
Submitting an instance in dictionary format:
from veloxq_sdk import VeloxQSolver
solver = VeloxQSolver()
instance_data = {
"biases": [1, -1],
"couplings": [[0, -1], [-1, 0]]
}
result = solver.sample(instance_data)
print(result)
Release files for veloxq-sdk 1.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| veloxq_sdk-1.0.0rc1.tar.gz | 61.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| veloxq_sdk-1.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.9 kB
Release files / veloxq_sdk-1.0.0rc1.tar.gz
| Download URL | veloxq_sdk-1.0.0rc1.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40a44f31276f10eb56b009fd94dac0a7bc6788572d8fe9311c2abe4fc75f3719
|
|
BLAKE2b-256 checksum How to use checksums |
afea69d474ee3a5eae650e2eb3fb339a3b8db36ab2e6810b9d5c627d4b7a0412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / veloxq_sdk-1.0.0rc1-py3-none-any.whl
| Download URL | veloxq_sdk-1.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c26b8c26be5fb1b8e6d8d8151edf91e0d1370c73ba86471d39906eef9aa958e6
|
|
BLAKE2b-256 checksum How to use checksums |
478d5b28df19e53a5d748d28b8e0bd0381e4251b4846c288c01428ad978f91b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log