Trait qmc::sse::qmc_traits::diagonal::Hamiltonian [−][src]
pub trait Hamiltonian<'a> { fn hamiltonian(
&self,
vars: &[usize],
bond: usize,
inputs: &[bool],
outputs: &[bool]
) -> f64; fn edge_fn(&self, bond: usize) -> (&'a [usize], bool); fn num_bonds(&self) -> usize; }
Expand description
An object which provides all required details of the hamiltonian.
Required methods
Maps (vars, bond, inputs, outputs) to a float matrix element.
Give edges for a bond, and if the bond is a constant.