QuantumCircuit: can be thought as the instructions of the quantum system. It holds all your quantum operations. QasmSimulator: is the Aer high performance circuit simulator. plot_histogram: creates histograms. code example
Example: QuantumCircuit: can be thought as the instructions of the quantum system. It holds all your quantum operations. QasmSimulator: is the Aer high performance circuit simulator. plot_histogram: creates histograms.
import numpy as np
from qiskit import QuantumCircuit
from qiskit.providers.aer import QasmSimulator
from qiskit.visualization import plot_histogram