main quantum file with gates