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()
zGateExample = QuantumCircuit(1,1)
zGateExample.z(0)
zGateExample.measure(0,0)
zGateExample.draw()
backend = Aer.get_backend("qasm_simulator")
job = q.execute(zGateExample, backend)
results = job.result()
counts = results.get_counts()
plot_histogram(counts)