Skip to content

Terra base classes integration#1

Merged
yaelbh merged 5 commits into
yaelbh:pr5499from
jyu00:terra-integration
May 31, 2021
Merged

Terra base classes integration#1
yaelbh merged 5 commits into
yaelbh:pr5499from
jyu00:terra-integration

Conversation

@jyu00
Copy link
Copy Markdown
Collaborator

@jyu00 jyu00 commented May 28, 2021

Summary

@yaelbh I got access denied when trying to push to your branch, so here's a PR instead. The main changes I did were

  1. Remove the old AnalysisResult class since it was just a dictionary. Places that used it now just use dict
  2. _run_analysis() methods now return AnalysisResultV1. I debated about whether to have _run_analysis return a dictionary (result data) instead, and just have the run() method in BaseAnalysis constructs the actual AnalysisResultV1 object. But run() might not have all the information needed if _run_analysis() returns multiple analysis.
  3. Switch to using a non-GUI backend when plotting, because matplotlib doesn't support plotting with a GUI backend when running in a child thread. Analysis/plotting runs in a child thread to make experiment.run() non blocking.

All T1 tests work now. I didn't test other classes since there are no test cases for them.

Details and comments

jyu00 added 5 commits May 27, 2021 15:21
# Conflicts:
#	qiskit_experiments/analysis/plotting.py
#	qiskit_experiments/base_experiment.py
#	qiskit_experiments/composite/composite_analysis.py
#	qiskit_experiments/randomized_benchmarking/interleaved_rb_analysis.py
#	qiskit_experiments/randomized_benchmarking/rb_analysis.py
#	test/test_t1.py
@yaelbh yaelbh merged commit e04d1c8 into yaelbh:pr5499 May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants