Last active
March 16, 2022 21:22
-
-
Save pdc-quantum/709bde79ab1537e1e6f63ae90e89a72c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import execute | |
from qiskit.providers.aer import AerSimulator | |
from qiskit.test.mock import FakeSantiago | |
from qiskit.tools.visualization import plot_histogram | |
device_backend = FakeSantiago() | |
sim_backend= AerSimulator.from_backend(device_backend) | |
job = execute(circuit, backend = sim_backend, shots = 8192, | |
optimization_level = 2) | |
counts_noise = job.result().get_counts() | |
plot_histogram(counts_noise, | |
bar_labels = False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment