Variable number of qubits allowed