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
Step 3: Build Sampler
Step 4: Run Sampling
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 dimodSampleSet:
Step 6: Iterate
Tune your model and parameters:- Better solutions → increase
num_readsandannealing_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