-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Description
Informations
- Qiskit Experiments version: current main
- Python version: 3.8.8
- Operating system: MacOS
What is the current behavior?
Running an RB experiment on the hardware
lengths = np.arange(1, 1000, 100)
num_samples = 10
seed = 1010
qubits = [3]
# Run an RB experiment on qubit 3
exp = StandardRB(qubits, lengths, num_samples=num_samples, seed=seed)
exp_data = exp.run(backend)and retrieving the job using the job_id to recreate the RB experiment and perform the RB analysis
job_id = '6156ddf28fd55fe123fa9923'
job = backend.retrieve_job(job_id)
exp_data_retrieved = ExperimentData(exp)
exp_data_retrieved.add_data(job.result())
analysis = RBAnalysis()
analysis.run(exp_data_retrieved)gives the following error message:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
~/Documents/qiskit-experiments/qiskit_experiments/curve_analysis/curve_analysis.py in _run_analysis(self, experiment_data, **options)
865 try:
--> 866 meas_level = run_options["meas_level"]
867 except KeyError as ex:
KeyError: 'meas_level'
The above exception was the direct cause of the following exception:
DataProcessorError Traceback (most recent call last)
<ipython-input-6-2fc6fbd4f629> in <module>
1 analysis = RBAnalysis()
----> 2 analysis.run(exp_data_retrieved)
~/Documents/qiskit-experiments/qiskit_experiments/framework/base_analysis.py in run(self, experiment_data, **options)
87
88 # Run analysis
---> 89 results, figures = self._run_analysis(experiment_data, **analysis_options)
90
91 # Add components
~/Documents/qiskit-experiments/qiskit_experiments/curve_analysis/curve_analysis.py in _run_analysis(self, experiment_data, **options)
866 meas_level = run_options["meas_level"]
867 except KeyError as ex:
--> 868 raise DataProcessorError(
869 f"Cannot process data without knowing the measurement level: {str(ex)}."
870 ) from ex
DataProcessorError: "Cannot process data without knowing the measurement level: 'meas_level'."What is the expected behavior?
The RB analysis runs after recreating the RB experiment using the job ID.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working