Trying to get qunatisation matrix to work