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
This code doesn't run at all with qiskit-ibm-provider < 0.6.1, which is the version that fixes numpy serialization (we should probably add this as a requirement). With 0.6.1, the error occurs in the analysis:
Traceback (most recent call last):
File "qiskit_experiments/framework/experiment_data.py", line 897, in _run_analysis_callback
callback(self, **kwargs)
File "qiskit_experiments/framework/base_analysis.py", line 169, in run_analysis
results, figures = analysis._run_analysis(expdata)
File "qiskit_experiments/curve_analysis/curve_analysis.py", line 384, in _run_analysis
processed_data = self._run_data_processing(
File "qiskit_experiments/curve_analysis/curve_analysis.py", line 172, in _run_data_processing
xdata = np.asarray([datum["metadata"][x_key] for datum in analyzed_data], dtype=float)
TypeError: float() argument must be a string or a number, not 'dict'
This happens because these numpy ints are serialized to {"__type__": "int", "__value__": int(obj)} dicts in the provider. @nkanazawa1989 Perhaps just adding handling for these types in CurveAnalysis will fix this?
The text was updated successfully, but these errors were encountered:
FineAmplitude
fails when a numpy array is passed in as an experiment option:This code doesn't run at all with
qiskit-ibm-provider
< 0.6.1, which is the version that fixes numpy serialization (we should probably add this as a requirement). With 0.6.1, the error occurs in the analysis:This happens because these numpy ints are serialized to
{"__type__": "int", "__value__": int(obj)}
dicts in the provider. @nkanazawa1989 Perhaps just adding handling for these types inCurveAnalysis
will fix this?The text was updated successfully, but these errors were encountered: