5
$\begingroup$

While I'm simulating grover's algorithm, I found that with BasicAer backend it works well but with Aer it is not. What is the difference between qiskit.providers.BasicAer and qiskit.providers.Aer ?

$\endgroup$

1 Answer 1

1
$\begingroup$

Regarding to the difference between BasicAer and Aer, take a look at this answer: https://quantumcomputing.stackexchange.com/a/4996/9858

And in term of BasicAer returns incorrect result, take a look here: https://github.com/Qiskit/qiskit-terra/issues/1838

Hope this helps.

$\endgroup$
7
  • $\begingroup$ Then you mean, BasicAer is the new version of Aer? Which one is better? $\endgroup$
    – 김동민
    Commented Oct 18, 2020 at 6:50
  • 1
    $\begingroup$ BasicAer is actually an older version of Aer. And so Aer should be better. $\endgroup$
    – KAJ226
    Commented Oct 18, 2020 at 6:54
  • $\begingroup$ Hmm... I use serveral simulation method from Aer such as 'statevector, density_matrix, stabilizer, extended_stabilizer, matrix_product_state'. Grover's algorithm ran well with 'statevector' and 'density_matrix' but not with 'extended_stabilizer' and 'matrix_product_state'. So I use BasicAer, then the result came well. Why it happened? $\endgroup$
    – 김동민
    Commented Oct 18, 2020 at 7:02
  • 2
    $\begingroup$ The main difference is that BasicAer runs in Python and Aer runs in C++ and is therefore faster. In addition, Aer supports more features. Aer supports several simulation methods. The default method is 'statevector'. What did you see wrong when running with the 'extended_stablizer' and 'matrix_product_state' methods? Did you get error messages or results that you did not expect? $\endgroup$ Commented Oct 18, 2020 at 7:19
  • $\begingroup$ @YaelBen-Haim Nice! Not to go off tangent but here is another question that I think you can answer very well: quantumcomputing.stackexchange.com/questions/14226/…. $\endgroup$
    – KAJ226
    Commented Oct 18, 2020 at 7:30

Your Answer

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

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