Skip to main content

pcam-sampler

PyPI version License

D-Wave Ocean SDK (dimod.Sampler) compatible In-Material Physical Relaxation Solver for NEOMA P-CAM (authenticated via RapidAPI — 2,000 free solves/month).

Installation

pip install pcam-sampler

Quickstart

import dimod
from pcam_sampler import PCAMSampler

# Define Ising problem (h, J)
h = {0: -0.5, 1: 0.5}
J = {(0, 1): -1.0}
bqm = dimod.BinaryQuadraticModel.from_ising(h, J)

# Sample via P-CAM In-Material Physical Reflex Solver (uses PCAM_RAPIDAPI_KEY or explicit key)
sampler = PCAMSampler(api_key="YOUR_RAPIDAPI_FREE_KEY")
sampleset = sampler.sample(bqm)

print(sampleset.first.sample)
print("Hardware Reflex Latency:", sampleset.info["hardware_reflex_ms"], "ms")

Metadata

Release files for pcam-sampler 1.0.1

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

Source distribution (sdist)

Source distribution for pcam-sampler 1.0.1
File Size Uploaded Provenance Actions
pcam_sampler-1.0.1.tar.gz 5.4 kB Without provenance Details for pcam_sampler-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pcam-sampler 1.0.1
File Interpreter ABI Platform Actions
pcam_sampler-1.0.1-py3-none-any.whl Python 3 none any Details for pcam_sampler-1.0.1-py3-none-any.whl

Total release size: 10.1 kB

Release files / pcam_sampler-1.0.1.tar.gz

Download URL pcam_sampler-1.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ce3c8d8e7eb2c28fff3dedaa21bede08dd8a227932d2b9afbfb439b305e6e1b2
BLAKE2b-256 checksum
How to use checksums
048ed3f468916d807eae6ea2dc9871cc9a6a8782c09cc4828a216aff41300df5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / pcam_sampler-1.0.1-py3-none-any.whl

Download URL pcam_sampler-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ac1b245a5cd85f7c63e0311a19d3c26fb979157f842b1f87d10f6713f664a17
BLAKE2b-256 checksum
How to use checksums
efc0141eb3de3d8d9a60b7ec8d13757bf1fd2cdf1e2f22a92c7dee453d44d115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for pcam-sampler 1.0.1

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.

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