mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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…
x
Reference in New Issue
Block a user