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

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

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-1267-60655bb7aa78fd8f27a3a0be3c19f1e89e483305
DEFAULT BRANCH: main
Repo Added 14 Jun 2023 07:41PM UTC
Files 168
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

LAST BUILD ON BRANCH gh-readonly-queue/main/pr-1133-1c7ed5b525c45efbe0a938e762196ad484221fe8
branch: gh-readonly-queue/main/pr-1133-1c7ed5b525c45efbe0a938e762196ad484221fe8
CHANGE BRANCH
x
Reset
  • gh-readonly-queue/main/pr-1133-1c7ed5b525c45efbe0a938e762196ad484221fe8
  • gh-readonly-queue/main/pr-1009-3511e4eae71042ef82bf59e0df7d315183836584
  • gh-readonly-queue/main/pr-1010-970b376fee8a92fea4fb4562e8de987782df83f9
  • gh-readonly-queue/main/pr-1163-70c3115951347c1c48fd109e1a1da7ab4d6be813
  • gh-readonly-queue/main/pr-1164-1b388720dd443ced2832ee7d2fb508edf878986a
  • gh-readonly-queue/main/pr-1176-06f07181e8692ec4ddfb6ddd5055bf79435ef368
  • gh-readonly-queue/main/pr-1190-b73f669a6b01f42dad489fe5a8b0803483fc0c5b
  • gh-readonly-queue/main/pr-1206-f4c8686b1f8d67de757e72db22563f6acf5168fe
  • gh-readonly-queue/main/pr-1209-022ae003200f137fddafaaa9d8c6fc4aa5b708ed
  • gh-readonly-queue/main/pr-1215-ad8aa795a9624e03976acf86be8dcc7d307f907e
  • gh-readonly-queue/main/pr-1217-e0467f17a03af2cb1e9ffa09fd9bc12012be7fdd
  • gh-readonly-queue/main/pr-1219-d9a767bd97b98561abe5a4d927ba217a475b0a7a
  • gh-readonly-queue/main/pr-1224-805a55b23cef0204d31e84b912d37f22849ddeef
  • gh-readonly-queue/main/pr-1225-58754837ddaa9c5e5419cf6dc15ac7b56a2ec9a6
  • gh-readonly-queue/main/pr-1229-2e7bd6eb356d0f17a9896e823fe3b642f5b989ef
  • gh-readonly-queue/main/pr-1230-db5ee40dc9fc27f99486ec8ac3c14209997b428c
  • gh-readonly-queue/main/pr-1234-dd620001e39a62324c37f29bf830f563d5446417
  • gh-readonly-queue/main/pr-1237-29aeaa48b7206dcfea42ce05a5c2945339c954fb
  • gh-readonly-queue/main/pr-1250-5a518eea02ca606b917e4716e70db5e86ea0f91a
  • gh-readonly-queue/main/pr-1252-1acc02d49d7c8baaae3f495af049b58f24a8d0c3
  • gh-readonly-queue/main/pr-1254-c66034c90dad73d705af25be7e9ed9617e7eb2ef
  • gh-readonly-queue/main/pr-1255-84cd40311468c958b6dfe234493b19f9bcbcc715
  • gh-readonly-queue/main/pr-1259-e9abdc45d52411091c707006ec6cd0d26f6f3f23
  • gh-readonly-queue/main/pr-1260-f5c759bd70b875d15183b9d2b8a7374ea0f5cad3
  • gh-readonly-queue/main/pr-1263-c294aa1cc4816285d875be11968fa49e8b403df8
  • gh-readonly-queue/main/pr-1264-6a06e7489dba5a84ae263d134622962d906beaf7
  • gh-readonly-queue/main/pr-1267-60655bb7aa78fd8f27a3a0be3c19f1e89e483305

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

Relevant lines Covered
Build:
Build:
14039 RELEVANT LINES 12390 COVERED LINES
2.64 HITS PER LINE
Source Files on gh-readonly-queue/main/pr-1133-1c7ed5b525c45efbe0a938e762196ad484221fe8
  • Tree
  • List 167
  • Changed 9
  • Source Changed 7
  • Coverage Changed 166
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5827998759 gh-readonly-queue/main/pr-1133-1c7ed5b525c45efbe0a938e762196ad484221fe8 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 P... push 11 Aug 2023 02:40AM UTC web-flow github
88.25
See All Builds (105)
  • Repo on GitHub
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

© 2025 Coveralls, Inc