make matrix shape check shorter
remove unwanted instantiation of quantum gate
fix tabs being used in place of tabs