mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
This commit is contained in:
parent
a5362799a5
commit
d5f322f576
|
@ -92,7 +92,7 @@ def superdense_coding(bit_1: int = 1, bit_2: int = 1) -> qiskit.result.counts.Co
|
||||||
# measure the circuit
|
# measure the circuit
|
||||||
quantum_circuit.measure(qr, cr)
|
quantum_circuit.measure(qr, cr)
|
||||||
|
|
||||||
backend = Aer.get_backend("qasm_simulator")
|
backend = Aer.get_backend("aer_simulator")
|
||||||
job = execute(quantum_circuit, backend, shots=1000)
|
job = execute(quantum_circuit, backend, shots=1000)
|
||||||
|
|
||||||
return job.result().get_counts(quantum_circuit)
|
return job.result().get_counts(quantum_circuit)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user