from qiskit.providers.aer import AerProvider
from qiskit import Aer
from qiskit import QuantumCircuit
from qiskit.test.mock import FakeVigo

Aer.backends()

type(Aer.backends()[0])

Aer.backends()

for name in (Aer.backends()):
    print(name)
    

Aer.backends()[0].name()

print(Aer.backends()[0])
print(Aer.backends()[-1])
    

Aer.backends()[0:8]

Aer.backends()[8:-1]

from qiskit.providers.aer import AerSimulator

backend=AerSimulator()

backend

backend.name()

qc=QuantumCircuit(2)
qc.h(0)
qc.cx(0,1)
qc.measure_all()
qc.draw(output="mpl")

backend=AerSimulator()
result= backend.run(qc).result()
counts=result.get_counts()
print(counts)



backend=AerSimulator.from_backend(FakeVigo())
result= backend.run(qc).result()
counts=result.get_counts()
print(counts)



provider=AerProvider()
backend=provider.backends(name='aer_simulator')

backend


backend=provider.get_backend(name='aer_simulator')

backend

backend.name()

backend=Aer.backends(name='aer_simulator')

backend

backend=Aer.get_backend(name='aer_simulator')

backend

backend.name()

#from qiskit.providers.aer import AerSimulator

backend=AerSimulator()  # creates an object of class AerSimulator


backend

backend.name()



