[][src]Trait qmc::sse::qmc_traits::rvb::RVBUpdater

pub trait RVBUpdater: DiagonalSubsection + Factory<Vec<usize>> + Factory<Vec<bool>> + Factory<BondContainer<usize>> + Factory<Vec<Option<usize>>> {
    pub fn constant_ops_on_var(&self, var: usize, ps: &mut Vec<usize>);
pub fn spin_flips_on_var(&self, var: usize, ps: &mut Vec<usize>); pub fn rvb_update<R: Rng, EN: EdgeNavigator, H>(
        &mut self,
        edges: &EN,
        state: &mut [bool],
        updates: usize,
        diagonal_edge_hamiltonian: H,
        rng: &mut R
    ) -> usize
    where
        H: Fn(usize, bool, bool) -> f64
, { ... } }

Resonating bond update.

Required methods

pub fn constant_ops_on_var(&self, var: usize, ps: &mut Vec<usize>)[src]

Fill ps with the p values of constant (Hij=k) ops for a given var. An implementation by the same name is provided for LoopUpdaters

pub fn spin_flips_on_var(&self, var: usize, ps: &mut Vec<usize>)[src]

Fill ps with the p values of spin flips for a given var. An implementation by the same name is provided for LoopUpdaters

Loading content...

Provided methods

pub fn rvb_update<R: Rng, EN: EdgeNavigator, H>(
    &mut self,
    edges: &EN,
    state: &mut [bool],
    updates: usize,
    diagonal_edge_hamiltonian: H,
    rng: &mut R
) -> usize where
    H: Fn(usize, bool, bool) -> f64
[src]

Perform a resonating bond update.

Loading content...

Implementors

impl<O: Op + Clone> RVBUpdater for FastOpsTemplate<O>[src]

Loading content...