You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a script with a T1 experiment that has no chance to succeed:
from qiskit import IBMQ
from qiskit_experiments.library import T1
provider = IBMQ.load_account()
device = provider.backend.ibmq_belem
delays = list(range(5))
exp = T1(0, delays, unit='us')
res = exp.run(device, shots=1)
res.block_for_results()
res.save()
Analysis expectedly failed. I don't remember whether, in such a case of failing analysis, we expect a crash or a creation of an analysis object that contains information about the failure. I'm also not sure which of these two options actually happened. What I'm sure of is that save failed with an error message that's not clear enough for the user:
/home/hrlquantum/miniconda3/envs/env1/lib/python3.9/site-packages/scipy/optimize/minpack.py:828: OptimizeWarning: Covariance of the parameters could not be estimated
warnings.warn('Covariance of the parameters could not be estimated',
Unable to save the experiment data: Traceback (most recent call last):
File "/home/hrlquantum/work/experiments/ErrSave/qiskit_experiments/database_service/utils.py", line 174, in save_data
return True, new_func(**kwargs)
File "/home/hrlquantum/miniconda3/envs/env1/lib/python3.9/site-packages/qiskit/providers/ibmq/experiment/ibm_experiment_service.py", line 644, in create_analysis_result
response = self._api_client.analysis_result_upload(
File "/home/hrlquantum/miniconda3/envs/env1/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/hrlquantum/miniconda3/envs/env1/lib/python3.9/site-packages/qiskit/providers/ibmq/experiment/utils.py", line 33, in map_api_error
raise IBMQApiError(f"Failed to process the request: {api_err}") from None
qiskit.providers.ibmq.exceptions.IBMQApiError: 'Failed to process the request: \'400 Client Error: Bad Request for url: https://api.quantum-computing.ibm.com/resultsdb/analysis_results. {"errors":["Unexpected token I in JSON at position 274"]}\''
You can view the experiment online at https://quantum-computing.ibm.com/experiments/b7297813-0a6d-415e-9dcd-ad32d4277b55
The text was updated successfully, but these errors were encountered:
I wrote a script with a T1 experiment that has no chance to succeed:
Analysis expectedly failed. I don't remember whether, in such a case of failing analysis, we expect a crash or a creation of an analysis object that contains information about the failure. I'm also not sure which of these two options actually happened. What I'm sure of is that
save
failed with an error message that's not clear enough for the user:The text was updated successfully, but these errors were encountered: