System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| Python | 3.11 | 3.11+ |
| RAM | 4 GB | 8 GB+ |
| Storage | 2 GB | 10 GB+ |
| OS | Linux, macOS, Windows | — |
Install
- uv (recommended)
- pip
With optional dependencies
- uv
- pip
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
.env file (recommended)
Create.env in your project root and install python-dotenv:
.env files in the current directory and up to 3 parent directories.
Verify installation
Platform notes
- Linux
- macOS
- Windows
No additional setup required. All features work out of the box.
Docker
Jupyter notebooks
Troubleshooting
ImportError: No module named 'grpc'
ImportError: No module named 'grpc'
ModuleNotFoundError: No module named 'dynex'
ModuleNotFoundError: No module named 'dynex'
Check that you are using the correct Python environment. Try:
Connection errors (CPU/GPU/QPU backends)
Connection errors (CPU/GPU/QPU backends)
- Verify credentials:
DYNEX_SDK_KEYandDYNEX_GRPC_ENDPOINT - Check that port 443 is not blocked by a firewall
- Test connectivity:
grpcurl quantum-router-engine-grpc.hz.dynex.co:3000 list
ValueError: qpu_model is required when compute_backend='qpu'
ValueError: qpu_model is required when compute_backend='qpu'
QPU backend requires an explicit model. Use:
FileNotFoundError: Solver file not found in testnet mode
FileNotFoundError: Solver file not found in testnet mode
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
- Replace
mainnet=True/Falsewith explicitDynexConfig(compute_backend=...) - Remove
v2=Trueparameter from sampler calls - Communication is now gRPC-based instead of REST