Skip to main content

Gate

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>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Gate for And

Source§

impl Gate for Copy

Source§

impl Gate for Not

Source§

impl Gate for Or