Arranging gates by the number of qubits they require