Quantum Computing, Qiskit, General U3 Gate, Controlled U3 Gate, Tutorial.
get_counts(): Values match with what we calculated in Eq. (6) and (7) Hence, here we saw a simple case of calculating the parameters of a U3 gate to achieve any given state. We also calculated the probabilities and checked via Qiskit programming. You can similarly try to generate different states