Crate classical_solver

Source
Expand description

Default annealing implementation.

This annealer use simulated annealing on local machine.

§Example:

use annealers::anneal::DefaultAnnealerInfo;
use annealers::prelude::*;
let ainfo = DefaultAnnealerInfo::new();
let h = vec![1.0, -1.0, 0.0];
let neighbors = vec![vec![(2, 1.0)], vec![], vec![]];
let annealer = ainfo.build_with_ising(h, neighbors).unwrap();
assert_eq!(annealer.anneal().unwrap(), vec![false, true, true]);

Modules§

algo
beta
sa

Enums§

NoneError
NoneError means the error will never be returned. It will be replaced with ! when ! type annotations is stabilized.