Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment data and service #5499

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0be3d0d
initial commit
jyu00 Dec 9, 2020
40d53c4
experiment data and analysis results
jyu00 Jan 14, 2021
e0ac327
add type and source
jyu00 Jan 19, 2021
b480ff0
update with review comments
jyu00 Jan 21, 2021
177f1e4
remove local service
jyu00 Mar 17, 2021
f5b1421
fix typo
jyu00 Mar 17, 2021
a07e547
add tests
jyu00 Apr 2, 2021
6de8bc0
Merge remote-tracking branch 'upstream/main' into experiment-class
jyu00 May 11, 2021
42833a9
address review comments
jyu00 May 12, 2021
254b3cb
fix tests
jyu00 May 12, 2021
95bbd70
Merge remote-tracking branch 'upstream/main' into experiment-class
jyu00 May 12, 2021
bee807b
add more tests
jyu00 May 13, 2021
f2221e1
add delete
jyu00 May 14, 2021
b51a158
more tests
jyu00 May 19, 2021
995435e
fix lint
jyu00 May 19, 2021
3024bf7
Merge remote-tracking branch 'upstream/main' into experiment-class
jyu00 May 19, 2021
6fd2a08
run black
jyu00 May 19, 2021
d31993f
add job error message
jyu00 May 19, 2021
0c60f26
fix accidental updates
jyu00 May 19, 2021
a75b662
fix service
jyu00 May 21, 2021
00af86a
add from data
jyu00 May 25, 2021
d94ca2c
fix tests
jyu00 May 25, 2021
e2373ec
add additional callback args
jyu00 May 25, 2021
5bbfff7
remove callback args
jyu00 May 25, 2021
f5ded7c
allow saving pyplot figures
jyu00 May 28, 2021
30f847a
fix saving plots
jyu00 May 28, 2021
fc53978
always call post processing
jyu00 Jun 2, 2021
bccfe4c
make figure background opaque
jyu00 Jun 3, 2021
689f3d7
Merge remote-tracking branch 'upstream/main' into experiment-class
jyu00 Jun 3, 2021
ce8d65c
compare backend name not instance
jyu00 Jun 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions qiskit/providers/experiment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
=========================================================
Experiment Interface (:mod:`qiskit.providers.experiment`)
=========================================================

.. currentmodule:: qiskit.providers.experiment

This module contains the classes used to build experiment services, which
allow users to store experiment data and metadata in databases. An experiment
typically has one or more jobs, analysis results, and graphs associated with it.

An experiment service provider can inherit the
:class:`~qiskit.providers.experiment.ExperimentService` class. An
experiment service consumer can inherit the
:class:`~qiskit.providers.experiment.ExperimentData` class, which already
has methods that interacts with the service implemented.


Abstract Classes
================

Service Provider
----------------

.. autosummary::
:toctree: ../stubs/

ExperimentService
ExperimentServiceV1
LocalExperimentService

Service Consumer
----------------

.. autosummary::
:toctree: ../stubs/

ExperimentData
ExperimentDataV1
AnalysisResult
AnalysisResultV1


Exceptions
==========

.. autosummary::
:toctree: ../stubs/

ExperimentError
ExperimentDataNotFound
ExperimentDataExists
"""

from .constants import ResultQuality
from .experiment_data import ExperimentData, ExperimentDataV1
from .analysis_result import AnalysisResult, AnalysisResultV1
from .experiment_service import ExperimentService, ExperimentServiceV1
from .exceptions import ExperimentError, ExperimentEntryExists, ExperimentEntryNotFound
Loading