Editorial
By applying the Hadamard gate to each of the qubits, you can solve this problem.
Sample Code
Below is a sample program:
from qiskit import QuantumCircuit
def solve(n: int) -> QuantumCircuit:
qc = QuantumCircuit(n)
qc.h(range(n))
return qc
Alternatively, you can use a for-loop to apply Hadamard gates in-turn.
from qiskit import QuantumCircuit
def solve(n: int) -> QuantumCircuit:
qc = QuantumCircuit(n)
for i in range(n):
qc.h(i)
return qc