you give n qubit guarantee basis state n qubit you give bitstring bits0 bits1 describe basis statesyour task perform necessary operation measurement figure state return 0 state describe bits0 1 state describe bits1 the state qubit operation matter