A3: Generate State 13(100+010+001)\frac{1}{\sqrt{3}}\lparen\ket{100}+\ket{010}+\ket{001}\rparen

Time Limit: 3 sec

Memory Limit: 512 MiB

Score: 300

Problem Statement

Implement the operation of preparing the state ψ\ket{\psi} from the zero state on a quantum circuit qc\mathrm{qc} with 33 qubits.

The state ψ\ket{\psi} is defined as

ψ=13(100+010+001).\begin{equation} \ket{\psi} = \frac{1}{\sqrt{3}} \lparen \ket{100} + \ket{010} + \ket{001} \rparen \nonumber \end{equation}.

Constraints

  • Global phase is ignored in judge.
  • The submitted code must follow the specified format:
from qiskit import QuantumCircuit
 
 
def solve() -> QuantumCircuit:
    qc = QuantumCircuit(3)
    # Write your code here:
 
    return qc

Hints

Open

Please sign in to submit your answer.