1use na::DMatrix; 2 3use crate::pbit::GridPbit; 4 5pub trait Gate { 6 fn pbits(&self) -> &Vec<GridPbit>; 7 fn shape(&self) -> (usize, usize); 8 fn weight(&self)-> &DMatrix<i32>; 9 fn bias(&self) -> &Vec<i32>; 10}