1
$\begingroup$

Is it possible to get the $\alpha$ and $\beta$ (amplitudes) of a qubit in Qiskit, i.e. not only probabilities after measurement but complete quantum state?

$\endgroup$
  • $\begingroup$ I think it is possible to get them only on simulator. On real quantum computer you need employ so-called quantum tomography to "scan" the state. $\endgroup$ – Martin Vesely Jan 11 at 15:42
  • $\begingroup$ @MartinVesely thank you very much, indeed helpful. $\endgroup$ – Adhisha Gammanpila Jan 11 at 17:57
3
$\begingroup$

This can be done using the statevector_simulator provided with Qiskit Aer. It will return the statevector that describes the quantum state at the end of your circuit. It can be used in the same way as the qasm_simulator, only your circuit shouldn't have measurement gates at the end. There is more information about this simulator in this tutorial.

| improve this answer | |
$\endgroup$
  • 1
    $\begingroup$ Thank you very, indeed helpful. $\endgroup$ – Adhisha Gammanpila Jan 11 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.