Skip to content

Commit 48a73a2

Browse files
authored
fix(quantum): Correct simulator deprecation (TheAlgorithms#7869)
1 parent 84facb7 commit 48a73a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quantum/quantum_teleportation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def quantum_teleportation(
5757
quantum_circuit.measure([2], [0]) # measure the qubit.
5858

5959
# Simulate the circuit using qasm simulator
60-
backend = Aer.get_backend("qasm_simulator")
60+
backend = Aer.get_backend("aer_simulator")
6161
job = execute(quantum_circuit, backend, shots=1000)
6262

6363
return job.result().get_counts(quantum_circuit)

0 commit comments

Comments
 (0)