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

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 verify(&self, state: &[bool]) -> bool { ... } }

Contain and manage ops.

Associated Types

type Op: Op

The op object to manage.

Loading content...

Required methods

fn get_cutoff(&self) -> usize

Get the cutoff for this container.

fn set_cutoff(&mut self, cutoff: usize)

Set the cutoff for this container.

fn get_n(&self) -> usize

Get the number of non-identity ops.

fn get_nvars(&self) -> usize

Get the number of managed variables.

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

Get the pth op, None is identity.

Loading content...

Provided methods

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

Verify the integrity of the OpContainer.

Loading content...

Implementors

impl OpContainer for SimpleOpDiagonal[src]

type Op = SimpleOp

impl OpContainer for SimpleOpLooper[src]

type Op = SimpleOp

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

type Op = O

Loading content...