[−][src]Struct qmc::sse::simple_ops::SimpleOpDiagonal
A simple implementation of a diagonal op container.
Implementations
impl SimpleOpDiagonal
[src]
pub fn debug_print<H>(&self, h: H) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
[src]
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
Debug print the container.
pub fn set_pth(&mut self, p: usize, op: Option<SimpleOp>) -> Option<SimpleOp>
[src]
Set the pth op.
Trait Implementations
impl ClassicalLoopUpdater for SimpleOpDiagonal
[src]
fn var_ever_flips(&self, var: usize) -> bool
[src]
fn run_semiclassical_edge_update<R: Rng, EN: EdgeNavigator>(
&mut self,
edges: &EN,
state: &mut [bool],
rng: R
) -> (usize, bool)
[src]
&mut self,
edges: &EN,
state: &mut [bool],
rng: R
) -> (usize, bool)
fn run_semiclassical_update<R: Rng, EN: EdgeNavigator, F>(
&mut self,
edges: &EN,
bond_select: F,
state: &mut [bool],
rng: R
) -> (usize, bool) where
F: Fn(&mut Self, &[bool], &mut [bool], &mut BondContainer<usize>, &mut BondContainer<usize>, &mut R) -> usize,
[src]
&mut self,
edges: &EN,
bond_select: F,
state: &mut [bool],
rng: R
) -> (usize, bool) where
F: Fn(&mut Self, &[bool], &mut [bool], &mut BondContainer<usize>, &mut BondContainer<usize>, &mut R) -> usize,
fn count_ops_on_border(
&self,
sat_set: &BondContainer<usize>,
broken_set: &BondContainer<usize>
) -> (usize, usize)
[src]
&self,
sat_set: &BondContainer<usize>,
broken_set: &BondContainer<usize>
) -> (usize, usize)
fn post_semiclassical_update_hook(&mut self)
[src]
impl Clone for SimpleOpDiagonal
[src]
fn clone(&self) -> SimpleOpDiagonal
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SimpleOpDiagonal
[src]
impl DiagonalUpdater for SimpleOpDiagonal
[src]
fn mutate_ps<F, T>(&mut self, cutoff: usize, t: T, f: F) -> T where
F: Fn(&Self, Option<&Self::Op>, T) -> (Option<Option<Self::Op>>, T),
[src]
F: Fn(&Self, Option<&Self::Op>, T) -> (Option<Option<Self::Op>>, T),
fn iterate_ps<F, T>(&self, t: T, f: F) -> T where
F: Fn(&Self, Option<&Self::Op>, T) -> T,
[src]
F: Fn(&Self, Option<&Self::Op>, T) -> T,
fn iterate_ops<F, T>(&self, t: T, f: F) -> T where
F: Fn(&Self, &Self::Op, T) -> T,
[src]
F: Fn(&Self, &Self::Op, T) -> T,
fn make_diagonal_update<'b, H, E>(
&mut self,
cutoff: usize,
beta: f64,
state: &[bool],
hamiltonian: &Hamiltonian<'b, H, E>
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
[src]
&mut self,
cutoff: usize,
beta: f64,
state: &[bool],
hamiltonian: &Hamiltonian<'b, H, E>
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
fn make_diagonal_update_with_rng<'b, H, E, R: Rng>(
&mut self,
cutoff: usize,
beta: f64,
state: &[bool],
hamiltonian: &Hamiltonian<'b, H, E>,
rng: &mut R
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
[src]
&mut self,
cutoff: usize,
beta: f64,
state: &[bool],
hamiltonian: &Hamiltonian<'b, H, E>,
rng: &mut R
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
fn make_diagonal_update_with_rng_and_state_ref<'b, H, E, R: Rng>(
&mut self,
cutoff: usize,
beta: f64,
state: &mut [bool],
hamiltonian: &Hamiltonian<'b, H, E>,
rng: &mut R
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
[src]
&mut self,
cutoff: usize,
beta: f64,
state: &mut [bool],
hamiltonian: &Hamiltonian<'b, H, E>,
rng: &mut R
) where
H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
E: Fn(usize) -> (&'b [usize], bool),
fn post_diagonal_update_hook(&mut self)
[src]
impl Factory<BondContainer<usize>> for SimpleOpDiagonal
[src]
fn get_instance(&mut self) -> BondContainer<usize>
[src]
fn return_instance(&mut self, _t: BondContainer<usize>)
[src]
impl Factory<Vec<bool>> for SimpleOpDiagonal
[src]
fn get_instance(&mut self) -> Vec<bool>
[src]
fn return_instance(&mut self, _t: Vec<bool>)
[src]
impl Factory<Vec<usize>> for SimpleOpDiagonal
[src]
fn get_instance(&mut self) -> Vec<usize>
[src]
fn return_instance(&mut self, _t: Vec<usize>)
[src]
impl Into<SimpleOpDiagonal> for SimpleOpLooper
[src]
fn into(self) -> SimpleOpDiagonal
[src]
impl Into<SimpleOpLooper> for SimpleOpDiagonal
[src]
fn into(self) -> SimpleOpLooper
[src]
impl OpContainer for SimpleOpDiagonal
[src]
type Op = SimpleOp
The op object to manage.
fn get_cutoff(&self) -> usize
[src]
fn set_cutoff(&mut self, cutoff: usize)
[src]
fn get_n(&self) -> usize
[src]
fn get_nvars(&self) -> usize
[src]
fn get_pth(&self, p: usize) -> Option<&Self::Op>
[src]
fn verify(&self, state: &[bool]) -> bool
[src]
impl OpContainerConstructor for SimpleOpDiagonal
[src]
Auto Trait Implementations
impl RefUnwindSafe for SimpleOpDiagonal
impl Send for SimpleOpDiagonal
impl Sync for SimpleOpDiagonal
impl Unpin for SimpleOpDiagonal
impl UnwindSafe for SimpleOpDiagonal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,