
# Importing standard Qiskit libraries and configuring account
from qiskit import QuantumCircuit, execute, Aer, IBMQ
from qiskit.compiler import transpile, assemble
from qiskit.tools.jupyter import *
from qiskit.visualization import *
import qiskit
# Loading your IBM Q account(s)
provider = IBMQ.load_account()


from qiskit import IBMQ
IBMQ.save_account('7e245f54848bdbcc6bedd42fcafcd2fbe8f81b765b2537e32d39f812c3ccc2e9c755a6ac3e3edc7529982f02954bff4b84cba76cef7fe71928b9f01b092feedf')

simulator = Aer.get_backend('qasm_simulator')
gs = simulator.configuration().basis_gates
len(gs)

gate_dictionary = {}
for i in range(len(gs)):
    gate_dictionary[i] = gs[i]
print(gate_dictionary)

g = [i for i in range(33)]

print(g)
single_qubit_gate_dictionary = {0:'id',1:"u1", 2:"u2",3:"u3"}

rand_number_of_qubits = np.random.randint(1,15)
rand_number_of_gates = np.random.randint(2,4)
rand_qubit_for_gate = np.random.randint(1,rand_number_of_qubits)

random_circuit = QuantumCircuit(1,1)

single_qubit_gate_dictionary[0]

from inspect import getmembers, isfunction
functions_list = [o for o in getmembers(qiskit.circuit.library.standard_gates)]

functions_list

