Python SDK package for Solver API
Project description
How to use
from solver import Solver, SolverType
from pldag import PLDAG
# Setup solver api
solver = Solver(url="http://localhost:9000")
# Setup a pldag model
model = PLDAG()
primitives = ["x", "y", "z"]
root = model.set_and(model.set_primitives(primitives))
solutions = solver.solve(model, [{}], {root: 0j}, SolverType.DEFAULT)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pldag_solver_sdk-0.1.0.tar.gz
.
File metadata
- Download URL: pldag_solver_sdk-0.1.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841d0c5a2a47541646794705838b2ea05b5c07c6b8bb9ba98a6e53282cc8baa6 |
|
MD5 | ad656a3a5dcc24b6e83d81c830f61b69 |
|
BLAKE2b-256 | bddad3d29717664b4d9dcd80e4ca69a7d942c871476957bee0fefd72086ad517 |
File details
Details for the file pldag_solver_sdk-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pldag_solver_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a41b6ff672d2e7aec8152eb567077b22f2bb3b27f2a6c1a7a98368ea7de30482 |
|
MD5 | 2327d6d7048184eed1dc6703dd2021b2 |
|
BLAKE2b-256 | 6939ae95d82aa7f83d149fed8299da7cf5aadf6973a5d923245f0162be391f74 |