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.2

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.2
File Size Uploaded Provenance Actions
pcam_sampler-1.0.2.tar.gz 5.4 kB Without provenance Details for pcam_sampler-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 10.1 kB

Release files / pcam_sampler-1.0.2.tar.gz

Download URL pcam_sampler-1.0.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
60b6255d2de818c7c418faeac17f5ddc085647d499266f45fa04c7fc231a48c5
BLAKE2b-256 checksum
How to use checksums
9030886de6cb4f0f8965abd1f10cd642b5a0e7569dfb98ec61919fcd7ab61532
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.2-py3-none-any.whl

Download URL pcam_sampler-1.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3c374673b14696a830de90264df72df034bb6fd8e5ed85a53654505879fa328
BLAKE2b-256 checksum
How to use checksums
be2ef9fe06310ca72a58a095aa3a478787b2f2127413393cc3f6838875a6ea2d
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.2

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