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?
-
$\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 VeselyJan 11, 2020 at 15:42
-
$\begingroup$ @MartinVesely thank you very much, indeed helpful. $\endgroup$– Adhisha GammanpilaJan 11, 2020 at 17:57
1 Answer
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.
-
1$\begingroup$ Thank you very, indeed helpful. $\endgroup$ Jan 11, 2020 at 17:57