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$
2
  • $\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$ Jan 11, 2020 at 15:42
  • $\begingroup$ @MartinVesely thank you very much, indeed helpful. $\endgroup$ Jan 11, 2020 at 17:57

1 Answer 1

4
$\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.

$\endgroup$
1
  • 1
    $\begingroup$ Thank you very, indeed helpful. $\endgroup$ Jan 11, 2020 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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