[][src]Trait qmc::sse::qmc_traits::op_container::OpContainer

pub trait OpContainer {
    type Op: Op;
    pub fn get_cutoff(&self) -> usize;
pub fn set_cutoff(&mut self, cutoff: usize);
pub fn get_n(&self) -> usize;
pub fn get_nvars(&self) -> usize;
pub fn get_pth(&self, p: usize) -> Option<&Self::Op>;
pub fn get_count(&self, bond: usize) -> usize; pub fn verify(&self, state: &[bool]) -> bool { ... } }

Contain and manage ops.

Associated Types

type Op: Op[src]

The op object to manage.

Loading content...

Required methods

pub fn get_cutoff(&self) -> usize[src]

Get the cutoff for this container.

pub fn set_cutoff(&mut self, cutoff: usize)[src]

Set the cutoff for this container.

pub fn get_n(&self) -> usize[src]

Get the number of non-identity ops.

pub fn get_nvars(&self) -> usize[src]

Get the number of managed variables.

pub fn get_pth(&self, p: usize) -> Option<&Self::Op>[src]

Get the pth op, None is identity.

pub fn get_count(&self, bond: usize) -> usize[src]

Gets the count of bonds ops in the graph.

Loading content...

Provided methods

pub fn verify(&self, state: &[bool]) -> bool[src]

Verify the integrity of the OpContainer.

Loading content...

Implementors

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

type Op = O

Loading content...