quantrs2_anneal/bayesian_hyperopt/
parallel.rs1#[derive(Debug, Clone)]
5pub struct ParallelConfig {
6 pub enabled: bool,
8 pub num_workers: usize,
10 pub batch_size: usize,
12 pub load_balancing: LoadBalancingStrategy,
14}
15
16impl Default for ParallelConfig {
17 fn default() -> Self {
18 Self {
19 enabled: false,
20 num_workers: 4,
21 batch_size: 4,
22 load_balancing: LoadBalancingStrategy::RoundRobin,
23 }
24 }
25}
26
27#[derive(Debug, Clone, PartialEq, Eq)]
29pub enum LoadBalancingStrategy {
30 RoundRobin,
32 WorkStealing,
34 Dynamic,
36}