Problem Statement
Implement a -qubit quantum circuit which satisfies the following condition:
- Given the zero state as the input, return the minus state as the output.
Here, the minus state is defined as
Constraints
- Global phase is ignored in judge.
- The submitted code must follow the specified format:
from qiskit import QuantumCircuit
def solve() -> QuantumCircuit:
qc = QuantumCircuit(1)
# Write your code here:
return qc
Hints
Open
- You can apply the quantum gate to the -th qubit of the quantum circuit as follows:
qc.g(i)
- Please refer to Construct circuits - Qiskit for circuit examples and the What quantum gates can be used? for available quantum gates.