4
$\begingroup$

I need to perform some tests for my thesis in real quantum computers, however, I only have access to IBM's free quantum devices (the maximum number of qubits I can use is 15, in ibmq_16_melbourne). I mainly have two problems:

  1. To factor N=15 using Shor's algorithm using the Shor class provided by Qiskit, I'd need 18 qubits.

  2. Using this version of the algorithm, I only need 11 qubits, but when I try to execute it in ibmq_16_melbourne, I get the following error message:

Circuit runtime is greater than the device repetition rate. Error code: 8020.

Which basically means I'm using too many gates.

I know that I can see data about the circuit by writing

shor_compiled = transpile(result['circuit'], backend=server, optimization_level=3)
print('gates = ', shor_compiled.count_ops())
print('depth = ', shor_compiled.depth())

However, if I want to know about the depth and gate number of a circuit in another computer, first I need to have access to it. Is there any way I could at least find device specifications for the more powerful, paying devices? I might get access to them in the near future through the company that's financing my PhD, but I've been asked to analyze whether Shor's algorithm might be tested in those devices.

$\endgroup$

1 Answer 1

6
$\begingroup$

The first thing that comes to my mind with your problem is the fake devices available in Qiskit. Here is how to use it, the main idea is that Qiskit stored device properties in Terra and with it, you create simulators that will mimic exactly what the devices would do.
Basically, you can call them the same way you would a real device in qiskit.test.mock, for example from qiskit.test.mock import FakeVigo and then you havee your fake device just with fake_vigo = FakeVigo().

Here is a list of every fake provider available in Qiskit. If you need more explanation, you can also check this Qiskit video.

Hope this helps, feel free to ask if you need anything else ;)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.