Closed cyx617 closed 4 years ago
We appreciate very much your interest in ignis, however it does not seem that the issue is with the measurement mitigation code in ignis. Did you try to ask your question in qiskit-ignis slack channel: https://app.slack.com/client/T7RSPHKK2 ? Did you try to run your code using a QasmSimulator backend, see: https://qiskit.org/documentation/tutorials/noise/3_measurement_error_mitigation.html
@ShellyGarion Thanks for you reply:smiley:. I've tried the qasm_simulator as shown in the qiskit tutorial and it worked well. But when I run the code using a real device such as ibmq_16_melbourne backend, it didn't work for the circuit with 15 qubits. Yes, I think there should not be the issue with the measurement mitigation code in ignis. I'm guessing the problem is perhaps due to the server or system workload. I haven't asked this question in qiskit-ignis slack channel. But I can have a try.
Since it does not seem to be an issue with the ignis code (as it's running well on a simulator) - I'll close this issue. Please post your question in the slack channels: either qiskit-ignis or general or ibm-q-systems. Thanks!
Informations
The experiment was performed on the jupyter notebook from Quantum Lab of IBM Quantum Experience website, so the above information is for the remote server.
What is the current behavior?
I was trying to perform error mitigation for circuits with a large number of qubits on the device of ibmq_16_melbourne. But the maximum number of experiments this device supports is 75, which is much smaller than the number of experiments required in my case (e.g., 16384 for 14 qubits). So I designed a function to split the experiments into multiple jobs and update the measurement correction fitter batch by batch. Here is the code:
The first parameter
qubit_nb
of theerror_mitigation
function represents the amount of qubits to include in the circuit and the second onebatch_size
is the number of experiments per job. I used this code to run experiments for circuits with 4, 8, 12, and even 14 qubits, and they were all successful. However, when I tried the circuits for 15 qubits, the server was always down, as shown in the image below where the warning message says the service seems to be down but it will restart immediately (I got this message in Chinese perhaps due to my location. Sorry for any inconvenience.) I don't know if this is due to an overloaded server or some other reason.Steps to reproduce the problem
What is the expected behavior?
The code should in principle work for circuits with arbitrary number of qubits.
Suggested solutions