Challenge A1

Generate superposition of all basis states.
You need to login to be able to submit solutions!

You are given n qubits (1 ≤ n ≤ 8), prepared in the |0..0⟩ state, and you have to implement an operation which generates an equal superposition of all basis states on these qubits.

The "output" of your solution is the state in which it left the input qubits.

You should implement the following Solve operation to make that happen and keep the signature of the operation exactly like it is.

An unhandled error has occurred. Reload 🗙