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

pub trait OpContainer {
    type Op: Op;
    fn get_cutoff(&self) -> usize;
fn set_cutoff(&mut self, cutoff: usize);
fn get_n(&self) -> usize;
fn get_nvars(&self) -> usize;
fn get_pth(&self, p: usize) -> Option<&Self::Op>;
fn get_count(&self, bond: usize) -> usize; 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

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

Get the cutoff for this container.

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

Set the cutoff for this container.

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

Get the number of non-identity ops.

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

Get the number of managed variables.

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

Get the pth op, None is identity.

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

Gets the count of bonds ops in the graph.

Loading content...

Provided methods

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...