Skip to content

Commit 20cf0be

Browse files
committed
fix: Replace deprecated qasm_simulator with aer_simulator (TheAlgorithms#7308)
1 parent a536279 commit 20cf0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: quantum/superdense_coding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def superdense_coding(bit_1: int = 1, bit_2: int = 1) -> qiskit.result.counts.Co
9292
# measure the circuit
9393
quantum_circuit.measure(qr, cr)
9494

95-
backend = Aer.get_backend("qasm_simulator")
95+
backend = Aer.get_backend("aer_simulator")
9696
job = execute(quantum_circuit, backend, shots=1000)
9797

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

0 commit comments

Comments
 (0)