Qiskit BasicAer & Aer

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 ?

1 Answer

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.

• Then you mean, BasicAer is the new version of Aer? Which one is better?
– 김동민
Oct 18 '20 at 6:50
• BasicAer is actually an older version of Aer. And so Aer should be better. Oct 18 '20 at 6:54
• 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?
– 김동민
Oct 18 '20 at 7:02
• 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? Oct 18 '20 at 7:19
• @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/…. Oct 18 '20 at 7:30