fixed gate matrices' outputs from 1 -> self.dim