import numpy as np
import qiskit as q
# Importing standard Qiskit libraries
from qiskit import QuantumCircuit, transpile, Aer, IBMQ
from qiskit.tools.jupyter import *
from qiskit.visualization import *
from ibm_quantum_widgets import *
# Loading your IBM Quantum account(s)
provider = IBMQ.load_account()
xGateExample = QuantumCircuit(1,1)
xGateExample.x(0)
xGateExample.measure(0,0)
xGateExample.draw()
backend = Aer.get_backend("qasm_simulator")
job = q.execute(xGateExample, backend)
results = job.result()
counts = results.get_counts()
plot_histogram(counts)