from qiskit import QuantumCircuit,BasicAer,Aer,transpile

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

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

job=backend.run(qc)

result=job.result()

sv=result.get_statevector()

sv

sv.draw(output='latex')

backend=Aer.get_backend('statevector_simulator')

qc_transpile=transpile(qc,backend)

job=backend.run(qc_transpile)
result=job.result()
sv=result.get_statevector()
print(sv)
sv.draw(output='latex')

qc=QuantumCircuit(2)
qc.h(0)
qc.x(1)
qc.draw(output="mpl")

backend=Aer.get_backend('statevector_simulator')
qc_transpile=transpile(qc,backend)
job=backend.run(qc_transpile)
result=job.result()
sv=result.get_statevector()
print(sv)
sv.draw(output='latex')

# get the raw data of the experiment
sv.data