Probabilities and the Qubit States
Explore the relationship between qubit states and measurement probabilities, focusing on how the Ry gate rotates qubits and alters probabilities. Gain practical skills in computing qubit measurement likelihoods and translating them into rotation angles, essential for quantum circuit design and quantum machine learning.
We'll cover the following...
Let’s look at our transformation in action.
Rotating the qubit state
The Qiskit QuantumCircuit object provides the ry function in line 13. The ry function is for gate. Since it rotates the qubit around the y-axis of the quantum system, this function takes the angle , in radians, as the first parameter. The value of 2*pi denotes a full rotation of 360°. The second parameter of the function is the position of the qubit to apply the gate to.
However, we should be cautious. The angle does not stop when it “reaches” the state . We can rotate our qubit state beyond it. Then, rather than increasing the probability of measuring 1, you decrease it.
The gate is easily reversible. We apply another gate with as the parameter.
We started with the goal to increase the casino’s chance to win by 10%. What is 10% in terms of the angle ?
denotes the angle between the basis state and ...