In Qiskit, there are several ways to choose simulator: one is
from qiskit import Aer
backend = Aer.get_backend('aer_simulator')
result = backend.run(circ).result()
another one is
from qiskit.providers.aer import AerSimulator
backend = AerSimulator()
result=backend.run(circ).result()
,where circ
is QuantumCircuit(n)
. Do they always return the same result?