Skip to main content

Workflow: Formulation and Sampling

Every computation on Dynex follows the same pattern: define a model, configure a backend, sample, and analyze results.

Full Example

Step 1: Choose a Model Type

Select the model class that best fits your problem: See Defining Models for detailed examples of each type.

Step 2: Choose a Compute Backend

Use GPU for all production workloads — it runs on Dynex’s own neuromorphic chips distributed globally. Use LOCAL for offline development and unit tests.

Step 3: Build Sampler

Step 4: Run Sampling

Parameter guidance:
QPU backends have tighter hardware constraints: num_reads must stay within 1–100, annealing_time within 10–1000, and shots up to 5.

Step 5: Analyze Results

The sampler returns a dimod SampleSet:

Step 6: Iterate

Tune your model and parameters:
  • Better solutions → increase num_reads and annealing_time
  • Faster results → decrease annealing_time, use CPU instead of QPU
  • Constrained problems → switch from BQM to CQM
  • Large-scale → use QPU backend with preprocess=True

Migrating from legacy SDK