The desired state is a superposition of the computational basis states ∣100⟩,∣010⟩,∣001⟩, each with the same probability amplitude.
To generate such a superposition of multiple computational basis states with equal probability amplitudes, we can use the Ry gate, a rotation gate around the y-axis.
For more on rotation gates, please refer to the QPC001 A5.
First, apply the X gate to the zero state ∣000⟩.
∣000⟩X(0)∣100⟩
Next, apply a controlled Ry gate to this quantum state ∣100⟩ to generate a superposition of ∣100⟩ and ∣110⟩.
Considering that the amplitude of ∣100⟩ should match the target amplitude 1/3, the rotation angle θ1 can be determined by solving the following simultaneous equations.
⎩⎨⎧cos(2θ1)=31sin(2θ1)=32
Solving this, we obtain the following solution within the range 0≤θ1≤2π.
θ1=2arctan(2)
Thus, we apply a controlled Ry gate with rotation angle θ1, with the first qubit as the control bit and the second as the target bit.
∣100⟩CRy(θ1,0,1)31∣100⟩+32∣110⟩
Next, apply a controlled X gate, using the second qubit as the control bit and the first qubit as the target, to transform the state ∣110⟩ into ∣010⟩.
31∣100⟩+32∣110⟩CX(0,1)31∣100⟩+32∣010⟩
Repeating this operation with a controlled Ry gate and a controlled X gate once more generates 31∣010⟩+31∣001⟩ from 32∣010⟩.
The required rotation angle θ2 can be determined to halve the amplitude of 32∣010⟩ by solving the following equations.
⎩⎨⎧cos(2θ2)=21sin(2θ2)=21
Solving this, we obtain the following solution within the range 0≤θ2≤2π.
θ2=2arctan(1)=2π
We then apply a controlled Ry gate with this rotation angle θ2, using the second qubit as the control bit and the third as the target.