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.providers.aer import QasmSimulator

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

circ=QuantumCircuit(2)

circ.h(0)

circ.cx(0,1)

meas=QuantumCircuit(2,2)

meas.barrier(range(2))

circ.add_register(meas.cregs[0])

qc=circ.compose(meas)

circ.draw('mpl')

meas.measure(range(2),range(2))

circ.draw('mpl')

job=backend.run(circ)

