fix(quantum): Correct simulator deprecation (#7869)

This commit is contained in:
Caeden Perelli-Harris 2022-10-30 10:11:29 +00:00 committed by GitHub
parent 84facb78b2
commit 48a73a28d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ def quantum_teleportation(
quantum_circuit.measure([2], [0]) # measure the qubit.
# Simulate the circuit using qasm simulator
backend = Aer.get_backend("qasm_simulator")
backend = Aer.get_backend("aer_simulator")
job = execute(quantum_circuit, backend, shots=1000)
return job.result().get_counts(quantum_circuit)