A1: Generate State i1i \ket{1}

Time Limit: 3 sec

Memory Limit: 512 MiB

Score: 100

Writer: ST12

Quantum computers use the concept of "quantum gates" to manipulate the state of qubits.

In this problem, you can transition from the zero state 0\ket{0} to the state i1i\ket{1} using the YY gate.

By applying the YY gate to the quantum state 0\ket{0}, we obtain the quantum state i1i\ket{1}:

0Y(0)i1\begin{equation} \ket{0} \xrightarrow{Y(0)} i\ket{1} \end{equation}

When this qubit is measured, the computational basis state 1\ket{1} is observed with a probability of 11.

Since i=eiπ/2i = e^{i \pi / 2}, the global phase of the state is π/2\pi / 2.

Sample Code

Below is a sample program:

from qiskit import QuantumCircuit
 
 
def solve() -> QuantumCircuit:
    qc = QuantumCircuit(1)
 
    # Apply PauliY gate to the 1st qubit (index 0)
    qc.y(0)
 
    return qc

Supplementary Information