
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)  #Defining qubits
c = ClassicalRegister(2)  #Defining bits
qc = QuantumCircuit(q, c) #Making a Circuit

#Entanglement
qc.h(q[0]) #Hadamard Gate
qc.cx(q[0], q[1]) #CNOT Gate (Control on 1st qubit and target on 2nd qubit)
qc.measure(q, c) #Measure qubits to bits

qc.draw('mpl')

qc.draw('text')

qc.draw('latex')

