Skip to main content

System Requirements

Install

For development or latest features, install from source:

With optional dependencies

Core dependencies

The SDK automatically installs:
  • grpcio ≥ 1.60.0 — gRPC communication
  • protobuf ≥ 4.25.0 — protocol buffer serialization
  • dimod ≥ 0.12.0 — quadratic model framework
  • numpy ≥ 1.24.0 — numerical computing
  • pydantic ≥ 2.0.0 — data validation

Configuration

Environment variables

Create .env in your project root and install python-dotenv:
The SDK automatically discovers .env files in the current directory and up to 3 parent directories.

Verify installation

Platform notes

No additional setup required. All features work out of the box.

Docker

Jupyter notebooks

Add this boilerplate at the top of your notebooks:

Troubleshooting

Check that you are using the correct Python environment. Try:
  • Verify credentials: DYNEX_SDK_KEY and DYNEX_GRPC_ENDPOINT
  • Check that port 443 is not blocked by a firewall
  • Test connectivity: grpcurl quantum-router-engine-grpc.hz.dynex.co:3000 list
QPU backend requires an explicit model. Use:
LOCAL backend requires the dynexcore binary in a testnet/ directory. Download it from the releases page or switch to ComputeBackend.CPU.

Upgrading from legacy SDK

Notable changes from legacy SDK:
  • Replace mainnet=True/False with explicit DynexConfig(compute_backend=...)
  • Remove v2=True parameter from sampler calls
  • Communication is now gRPC-based instead of REST