Trait Gate

Source
pub trait Gate {
    // Required methods
    fn pbits(&self) -> &Vec<GridPbit>;
    fn shape(&self) -> (usize, usize);
    fn weight(&self) -> &DMatrix<i32>;
    fn bias(&self) -> &Vec<i32>;
}

Required Methods§

Source

fn pbits(&self) -> &Vec<GridPbit>

Source

fn shape(&self) -> (usize, usize)

Source

fn weight(&self) -> &DMatrix<i32>

Source

fn bias(&self) -> &Vec<i32>

Implementors§

Source§

impl Gate for And

Source§

impl Gate for Copy

Source§

impl Gate for Not

Source§

impl Gate for Or