Problem Statement
Implement the operation of preparing the minus state from the zero state on a quantum circuit with qubit.
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