B: Generate Minus state

Time Limit: 3 sec

Memory Limit: 512 MiB

Score: 200

Problem Statement

Implement the operation of preparing the minus state \ket{-} from the zero state 0\ket{0} on a quantum circuit qc\mathrm{qc} with 11 qubit.
The minus state \ket{-} is defined as

=12(01).\begin{equation} \ket{-} = \frac{1}{\sqrt{2}} (\ket{0} - \ket{1}). \nonumber \end{equation}

Constraints

  • Changes in the global phase are ignored.
  • The submitted code must follow the specified format:
from qiskit import QuantumCircuit
 
 
def solve() -> QuantumCircuit:
    qc = QuantumCircuit(1)
    # Write your code here:
 
    return qc

Please sign in to submit your answer.