from qiskit import * def random_bitstring_generator(bit_number, backend): """ Generate a bitstring with one qubit :param bit_number: number of bits that we want to generate :param backend: Qiskit hardware or simulator :return: string object with random bits """ bitstring = "" one_qubit_random_bit_generator_circuit = QuantumCircuit(1,1) one_qubit_random_bit_generator_circuit.h(0) one_qubit_random_bit_generator_circuit.measure(0,0) for _ in range(bit_number): counts = execute(one_qubit_random_bit_generator_circuit, backend, shots=1).result().get_counts() bit = list(counts.keys()) # we have only one key because shots=1 bitstring += bit return bitstring provider = IBMQ.load_account() backend = BasicAer.get_backend('ibmq_santiago') print(random_bitstring_generator(512, backend)
Try to replace
backend = BasicAer.get_backend('ibmq_santiago')
backend = provider.get_backend('ibmq_santiago')
Alternativetly, you can also use this code:
backend = provider.backends(name = 'ibmq_santiago')
You have to use backends available under you account. There are only simulators in BasicAer while the real quantum machines are under the account.
I don't know what do you mean, the error specifically says that:
QiskitBackendNotFoundError: "The 'ibmq_santiago' backend is not installed in your system."
This means you don't have access to this machine from your account. This machine is either dedicated to only privilege users.