import numpy as np
# Importing standard Qiskit libraries
from qiskit import *
from qiskit.tools.jupyter import *
from qiskit.visualization import *
from ibm_quantum_widgets import *

# Loading your IBM Quantum account(s)
provider = IBMQ.load_account()

qr=QuantumRegister(2)

cr=ClassicalRegister(2)

circuit=QuantumCircuit(cr,qr)

%matplotlib inline

circuit.draw()

circuit.h(qr[0])

circuit.draw()

circuit.cx(qr[0],qr[1])

circuit.draw()

circuit.measure(qr,cr)

circuit.draw()

simulator = Aer.get_backend('qasm_simulator')

result=execute(circuit,backend= simulator).result()

plot_histogram(result.get_counts(circuit))

provider=IBMQ.get_provider('ibm-q')

qcomp=provider.get_backend('ibmq_quito')

