• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit-Extensions / qiskit-experiments / 5827998759
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-1267-60655bb7aa78fd8f27a3a0be3c19f1e89e483305
DEFAULT BRANCH: main
Ran 11 Aug 2023 02:40AM UTC
Jobs 3
Files 167
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Aug 2023 01:42AM UTC coverage: 88.254% (-0.05%) from 88.302%
5827998759

push

github

web-flow
Introduce dataframe to ExperimentData (step1) (#1133)

### Summary

Executing approved design proposal in
https://github.com/Qiskit/rfcs/blob/master/0007-experiment-dataframe.md.
Introduction of the `Artifact` will be done in the followup.

This PR introduces dataframe to `ExperimentData` and replaces the
conventional
[AnalysisResult](https://github.com/Qiskit/qiskit-experiments/blob/main/qiskit_experiments/framework/analysis_result.py)
with it. With this PR, experimentalist can visualize all analysis
results with a single html table by `dataframe=True`.


![image](https://user-images.githubusercontent.com/39517270/230959307-d5a4d471-1659-4cf4-974e-cdb21e625ad8.png)

Once can control the columns to show in the html table with `columns`
option.


### Details and comments

Experiment analysis is a local operation on client side, and data
generated there must be agnostic to the payload format of remote
service. In the current implementation, `AnalysisResult` appears in the
`BaseAnalysis` and the data generated by the analysis is implicitly
typecasted to this class. Note that `AnalysisResult` *not only* defines
canonical data format *but also* implements the API for the IBM
Experiment service. This tight coupling to the IBM Experiment service
may limit data expressibility and an analysis class author always need
to be aware of the data structure of the remote service.

In this PR, internal data structure is replaced with the flat dataframe,
and one should be able to add arbitrary key-value pair to the analysis
result without concerning about data model. Added key creates a new
column in the table, which must be internally formatted and absorbed by
extra field of the payload at a later time when these results are saved.
This is implemented by
`qiskit_experiments.framework.experiment_data._series_to_service_result`.
Bypassing the generation of `AnalysisResult` object also drastically
improves the performance of heavily parallelized analysis that generates
h... (continued)

334 of 334 new or added lines in 8 files covered. (100.0%)

12390 of 14039 relevant lines covered (88.25%)

2.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.10-macOS-latest - 5827998759.1 11 Aug 2023 02:40AM UTC 0
88.25
GitHub Action Run
2 unit-tests_python3.8-macOS-latest - 5827998759.2 11 Aug 2023 03:09AM UTC 0
88.23
GitHub Action Run
3 unit-tests_python3.9-macOS-latest - 5827998759.3 11 Aug 2023 03:46AM UTC 0
88.23
GitHub Action Run
Source Files on build 5827998759
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5827998759
  • 06f07181 on github
  • Prev Build on gh-readonly-queue/main/pr-1234-dd620001e39a62324c37f29bf830f563d5446417 (#5684471015)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc