from qiskit import *

global c
c = QuantumCircuit(2,2)

def ua(bit_0 , bit_1):
    global c
    if(bit_0 == 1):
        if(bit_1 == 0):
            c.x(0) 
    else:
        c.h(0)
        
        

ua(0,0)

c.draw()


c.reset(0)
c.reset(1)
c.draw()

def ub(numeo_bob):
    2 -> comp
    3 -> diag

0 == 0

0 == 1

qc = QuantumCircuit(2,2)
qc.y(1)
qc.measure(1,1)
qc.draw()

backend = Aer.get_backend('qasm_simulator')

result = execute(qc, backend, shots = 1).result()
count = result.get_counts()

count

int(count.popitem()[0][0])

import random

def index(abc):
    index = random.randint(0, abc)

i = index(len(lista_bases))


[c,d,c,d,c]
[c,c,c,d,c]