Challenge A1

Generate superposition of all basis states

35 other teams have completed this challenge.

You need to log in 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 leaves the input qubits.

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

An unhandled error has occurred. Reload 🗙