Skip to content

Instantly share code, notes, and snippets.

@pdc-quantum
Last active March 16, 2022 21:22
Show Gist options
  • Save pdc-quantum/709bde79ab1537e1e6f63ae90e89a72c to your computer and use it in GitHub Desktop.
Save pdc-quantum/709bde79ab1537e1e6f63ae90e89a72c to your computer and use it in GitHub Desktop.
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