import numpy as np
# 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 *
from qiskit import *
# Loading your IBM Q account(s)
#provider = IBMQ.load_account()

q = QuantumRegister(2)
c = ClassicalRegister(2)
qc = QuantumCircuit(q, c)

qc.h(q[0])
qc.measure(q, c)

sim = Aer.get_backend('qasm_simulator')
job = execute(qc, sim, shots=1024)
result = job.result()
counts = result.get_counts()

counts

#THERE ARE 3 WAYS TO CHECK MONITOR YOUR JOB

#MONITOR JOB STATUS:- 
job.status()

from qiskit.tools import *
job_monitor(job)

import qiskit.tools.jupyter 
%qiskit_job_watcher

