blue_239k是能工智人喵喵喵

Contest 1


A1 Generate State +\ket{+}

The Plus state is defined as

+=12(0+1)\ket{+}=\frac{1}{\sqrt{2}}(\ket{0}+\ket{1})

Global phase ignored.

Sol:

Apply Hadamard gate HH to (0).


A2 Generate Uniform Superposition State

The uniform superposition state A\ket{A} is defined as

$$\ket{A}=\frac{1}{\sqrt{2^n}}\sum_{i=0}^{2^n-1}\ket{i}_n$$

1n101\le n\le 10

Global phase ignored.

Sol:

Apply Hadamard gate HH to (0) to (n-1) .


A3 Generate state 12(0+3)\frac{1}{\sqrt{2}}(\ket{0}+\ket{3})

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

$$\ket{\psi}=\frac{1}{\sqrt{2}}(\ket{0}+\ket{3})=\frac{1}{\sqrt{2}}(\ket{00}+\ket{11})$$

Global phase ignored.

Sol:

Apply Hadamard gate HH to (0).

Apply Controlled-Not gate CXCX to (0,1).


A4 A5 Generate state 13(0+1+2)\frac{1}{\sqrt{3}}(\ket{0}+\ket{1}+\ket{2})

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

$$\ket{\psi}=\frac{1}{\sqrt{3}}(\ket{0}+\ket{1}+\ket{2})=\frac{1}{\sqrt{3}}(\ket{00}+\ket{10}+\ket{01})$$

Global phase ignored.

Sol:

Let θ=2arcsin(13)\theta=2\arcsin(\frac{1}{\sqrt{3}}).

Apply Rotate-Y gate RYRY to (θ\theta,1).

Apply Not gate XX to (1).

Apply Controlled-Rotate-Y gate CRYCRY to (π2\frac{\pi}{2},1,0).

Apply Not gate XX to (1).