Kaiwu Community
Kaiwu Community is a Python development toolkit designed specifically for QUBO (Quadratic Unconstrained Binary Optimization) problems, providing rapid modeling, flexible extension, and efficient solving capabilities.
Installation
pip install kaiwu_community
Requirements:
- Python 3.10.x
- Make (for development builds)
- Virtualenv (optional, for environment isolation)
For more installation information, please refer to the Installation Documentation.
Quick Start
Learning Resources
- Kaiwu SDK Help Center - View detailed documentation and learn QUBO modeling and solving
- Example Code - Browse complete code examples
Getting Help
- Developer Community - Participate in community activities and connect with other developers
- GitHub Issues - Submit issues or feature requests
Example: Traveling Salesman Problem (TSP)
This example demonstrates how to solve the Traveling Salesman Problem using Kaiwu SDK Community, including the following steps:
- Build a TSP problem model using a distance matrix
- Define QUBO objective function and constraints
- Solve the model using built-in solvers
- Validate the solution results
For the complete TSP example code, please see example/tsp_sdk_1_2_doc_example.py.
For more detailed explanations, please refer to the TSP Documentation.
Application Scenarios
Kaiwu SDK is suitable for:
- Combinatorial Optimization: Traveling Salesman Problem (TSP), Knapsack Problem, Graph Coloring, Max-Cut
- Machine Learning: Feature Selection, Cluster Analysis, Model Compression
- Quantum Computing Research: QUBO Model Research, Solver Development, Quantum Algorithm Verification
Contributing
Community contributions are welcome! 🎉
You can extend SDK functionality, such as new solver implementations, classical optimization algorithms, example programs, and documentation.
Contribution Example
Quickly extend functionality by inheriting base classes:
from kaiwu.core import IsingSolver, QuboSolver
import kaiwu
# Custom optimizer
class CustomOptimizer(IsingSolver):
def solve(self, ising_matrix=None):
# Implement custom optimization logic
pass
# Custom solver
class CustomSolver(QuboSolver):
def solve_qubo(self, model):
# Implement custom solver logic
pass
# Modeling
qubo_model = kaiwu.qubo.QuboModel()
# Calling the custom component
optimizer = CustomOptimizer()
solver = CustomSolver(optimizer)
result = solver.solve_qubo(qubo_model)
➡️ For detailed contribution guidelines, please refer to the Contributing Guide.
License
This project is open-sourced under the Apache License 2.0. For details, please see the LICENSE file.
Metadata
Release files for kaiwu-community 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaiwu_community-1.0.8.tar.gz | 35.0 kB | With provenance | Details for kaiwu_community-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaiwu_community-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for kaiwu_community-1.0.8-py3-none-any.whl |
Total release size: 77.4 kB
Release files / kaiwu_community-1.0.8.tar.gz
| Download URL | kaiwu_community-1.0.8.tar.gz |
|---|---|
| Size | 35.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
638db24b0b5a4dfec5d982ea24b7a4ec9be22673697cbd59ed416e116e4e7e2e
|
|
BLAKE2b-256 checksum How to use checksums |
39db1b19b76a4ddf69e770496251e15b6d9bd5a91339dc0bf227c479f49718a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logRelease files / kaiwu_community-1.0.8-py3-none-any.whl
| Download URL | kaiwu_community-1.0.8-py3-none-any.whl |
|---|---|
| Size | 42.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03560a3509ce3e51f950bad47ab9e4010024faeb61ccbae7906b591b2b32c3a7
|
|
BLAKE2b-256 checksum How to use checksums |
adece17728195b53637626351786b1c059a603c02819e4551538c7322554123c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logSecurity for kaiwu-community 1.0.8
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kaiwu_community-1.0.8.tar.gz
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 Nov 17, 2026.
Transparency logA 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.